I am working on automating group policy settings using PowerShell in Windows Server 2012 R2.
I have lot of local group policy settings to achieve through PowerShell. As an example I am showing this
Press Windows key > type Run and type gpedit.msc. Expand Computer Configuration > Windows Settings > Security Settings >
Account Policy > Password Policy or Account Lockout Policy container
In this I need to enable the setting called Passwords Must Meet Complexity Requirements using PowerShell.
I achieved automating services start-up type using the cmdlets. As an example
Set-Service -name vds -StartupType disabled
But I am struggling to start with local group policy settings. I have also attached a screenshot regarding this.
If anyone have any idea on this Please help me.