If you’ve got DirectAccess running in your environment for remote access you’ll know how great and seamless it is for your end users. This will then trigger the script to run in the Virtual Machine and we’ll get notified when it is created and run. ![]() This will now allow us to upload the script.ps1 we created earlier, so browse to it and then hit Upload. We now want to add in a new Extension so click on the Add button at the top, in the Add Extension blade, find and select Script Extension and click on Create. Log into the Azure Portal and then select the Virtual Machine you want to change domain password for, under the main menu blade for that Virtual Machine find Extensions and enter it. Firstly, open up Notepad and enter a net user reset password command like below replacing the username and password with the one you want to reset. So what happens when you have a domain controller, that only has a single Domain Admin account and we’ve forgotten the password? In comes Virtual Machines Extensions to the rescue. The downside is this tool does not support running against Domain Controllers (to reset the in-built Administrator account). The Reset password utility for Virtual Machines has come in handy on the odd occasion when we never recorded or misplaced the password for a VM running in Azure. If only Microsoft kept Disk Cleanup on Windows Server to make life easier. So after all that I was easily able to reclaim a whole bunch of disk space by issuing the following command. You may find that will be all you need and can issue the rmdir otherwise, run this additional command cacls c:\Windows.old\*.* /T /grant administrators:F Firstly, take owernship by issuing takeown /F c:\Windows.old\* /R /A /D Y Once that is done we can begin to clean up. We then execute the PowerShell file we saved earlier with the text file we just created with the Junction utility. junction -s C:\Windows.old > junctions.txt On a majority of systems this should actually come back empty indicating that the Windows upgrade has gone smoothly. The above code will iterate through the junction list we can extract with the below command. $file = $line -replace "(: JUNCTION)|(: SYMBOLIC LINK)","" foreach ($line in ::ReadLines("c:\temp\junctions.txt")) You can get anywhere from 6 GB to 15 GB back by removing the windows.old folder which is where everything Windows based is moved to if you decide to upgrade your Windows Server.ĭownload the SysInternals Junction utility which we will use to find and delete and directory symbolic links (or NTFS Junctions) that may still exist in the directory structure, expand the zip file and create a PowerShell file with the following code and save it under a C:\temp location (which is where we will work from). They were starting to run low on disk space on the C drive, so I’ve outlined the below process for removing the windows.old directory. Microsoft generally recommends you always do fresh installations and migrate, except for Configuration Manager servers where it is a supported configuration to upgrade Windows versions. I was at a customer site and they had a single Hyper-V host (running Server Hyper-V edition) and had done an in-place upgrade. Once installed we can start building our configuration file. This little TLS/SSL proxy tool allows for us to listen for standard For our purposes we will install the Service instance so that it is always running whenever the server reboots. Grab the latest version from the stunnel website and install it. This is where stunnel, which is a TLS Proxy comes in handy. They had identified a path forward however we still needed to keep the app running for around 6 months post migration to Office 365. Working with one SMB recently, they had a critical Line of Business application that was written internally and can no longer be maintained by anyone in-house. Every single one is different and while many are straightforward, In some cases, you will find applications or devices that don’t support the requirements for connecting to Office 365 using TLS or SSL or they may not even work over standard ports such as 587. I’ve been busy lately assisting with a number of Office 365 migrations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |