Client Computers update Group Policies every 90 minutes. In this blog post I force gupdate on all client computer of an organizational unit by running a PowerShell command from a remote computer.
Run the following command on a Domain Controller of the domain pagr.inet to force gpupdate on all client computer of the OU workstations:
Get-ADComputer -Filter * -SearchBase "OU=Workstations,DC=pagr,DC=com" | Foreach-Object {Invoke-GPUpdate -Computer $_.name -Force -RandomDelayInMinutes 0}
A quick glance at the client computer shows what happens: cmd pops up and gpupdate is running. Cool.
To force gpupdate on all domain computers just run
Get-ADComputer -Filter * | Foreach-Object {Invoke-GPUpdate -Computer $_.name -Force -RandomDelayInMinutes 0}
Note: This command will force gpupdate on client computers and server systems.
Related Links
For restarting all domain computers see my post: Restart all Domain Computers by using PowerShell.
For documenting your environment see: PowerShell: Documenting your environment by running systeminfo on all Domain-Computers
Categories: PowerShell, Windows Server
Hatte probleme das der DC nicht verbunden werden konnte mit den clients! Daher habe ich gesucht und was gefunden (RPC)
Ich musste eine Regel erstellen per GPO:
diese 3 aktivieren:
1. Remoteverwaltug geplanter Aufgaben RPC-EPMAP
2. Remoteverwaltug geplanter Aufgaben RPC
3. Windows Verwaltungsinstrumentation WMI
Dann ging es auch mit den Clients ein gleichzeitiges GPupdate zu machen.
LikeLiked by 1 person