https://superuser.com/questions/1843499 ... cal-policyToto nevím jestli fungovalo:
Given that gpedit.msc and RDP were mentioned, I'll assume you're referring to locally set group policies for Windows Update settings, not domain policies setting them.
To reset all user and computer local group policies including those related to Windows Update, you can delete two specific folders and a registry key using an elevated PowerShell session, as you are already familiar with.
PowerShell
Stop-Service wuauserv -Force;
Remove-Item "C:\Windows\System32\GroupPolicyUsers" -Recurse -Force ;
Remove-Item "C:\Windows\System32\GroupPolicy" -Recurse -Force;
Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force;
Start-Service wuauserv;
Ale po tomto se aktualizace rozjely:
Actually I dig into LGPO.exe once more and found it pretty simple at the end. RTFM was key.. reading the documentation really helps..
What I did for my specific case:
Created a file "clear.txt" with the following content:
; ----------------------------------------------------------------------
; PARSING Computer POLICY
; Source file: .\Registry.pol
Computer
Software\Policies\Microsoft\Windows\WindowsUpdate\AU
*
CLEAR
; PARSING COMPLETED.
; ----------------------------------------------------------------------
Executed the following command:
.\LGPO.exe /t .\clear.txt
The result is that the registry entry above is deleted, but in addition the respective local policy entry is deleted as well.