Skip to main content

Posts

Featured

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...

Latest Posts

Windows Server in Azure: a surprise cautionary tale in cipher suites

A simple remote application uninstall thing

SQL Server Auto update statistics - and why I dont advocate for it.

Find OS patch events in Log Analytics

Azure - List resources of a resource group without "the noise"

SQL Server: Output service accounts with system roles

Fixing column names when importing CSV using SSMS

Powershell for the DBA (intro)

Azure Ultra SSD Cost Calculator

Using Powershell to Install and Patch SQL Server