Resetting the Windows Server Domain Controller password on an Azure VM
We all have small labs in Azure that we keep around for testing purposes. If you dont have one, perhaps today's your notice to create one. AD DS isn't going away any time soon, at least not for all purposes, so it's completely reasonable to have a tiny VM for this purpose. However, it's also possible that you've forgotten your password. If this were in your homelab, I'd argue that you're in worse shape than you are in Azure. Fortunately, the Azure Agent allows you to run Remote Powershell scripts through the Azure Portal. Framing that command correctly can get you right back in! $cmd = @" " $ScriptDir net user mydomainadminusername mynewpasswordbutkeepitsimple "@ & cmd.exe /c $cmd Wrapping the net.exe command in a block ensures that your parameters get passed correctly or otherwise intercepted by the Powershell run as interpreter. I recommend using a relatively basic password (within the minimum requirements of your domain config) to...