I want to automate some Windows OS settings in Group policy (Run -> gpedit.msc). I want to use PowerShell for automating the below OS settings. Curious to know how do we automate it ?
• Go to Run-> gpedit.msc •
Administrative Templates --> System -> Device Guard -> Turn on Virtualization Based Security --> Enabled
• Select platform Security level -> Secure Boot and DMA Protection
• Virtualization Based Protection of Code Integrity - > Enabled with UEFI Clock • Credential Guard Configuration --> Enabled with UEFI Clock
I found the LINK to be having some documentation in this regard. But couldn't make out how to use it to achieve the automation of the above settings. I'm very new to Powershell scripting & in general OS settings. Can anyone help me here ?