Hyper-V Server 2012 R2 Disable Local Password Complexity

posted 26 Jan 2015, 01:11 by Tristan Self
If you like me like a more simple password for your local administrator password on your servers in a test lab or production :) then you can change it using the local security policy.

Problem is on Hyper-V Server 2012 R2, you don't have the MMC snap-ins to do it, so you need to use the command line as follows:

Disable Local Password Expiry:

> net accounts /maxpwage:unlimited

Disable Password Complexity

First export your security configuration using the following command:
> secedit /export /cfg C:\securityconfig.cfg

Open the exported file with notepad.

Change the line:
PasswordComplexity = 1
PasswordComplexity = 0
and save the file:

> secedit /configure /db C:\Windows\security\new.sdb /cfg C:\securityconfig.cfg /areas SECURITYPOLICY

Now you can set your local administrator password to something simple! ;)