Not able to modify Local Group Policy with powershell commands

  • Thread starter Thread starter Iman_Y
  • Start date Start date
I

Iman_Y

Guest
Hi,I'm trying to modify Local Group Policy on my windows machine using PowerShell commands but not able to do so in both windows 10 and windows server 2022.As an example, I set the automatic update as below in gpedit: Running PowerShell as Administrator, I am able to view the changes made in gpedit being reflected in local registry:PS C:\Windows\system32> $registryPath = "HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU"PS C:\Windows\system32> Get-ItemProperty -Path $registryPath -Name "AUOptions" , "ScheduledInstallDay", "ScheduledInstallTime" AUOptions : 3 Schedu

Continue reading...
 
Back
Top