C
C
chief2020-12-02 13:15:19
PowerShell
chief, 2020-12-02 13:15:19

How to force PC to update group policies via AD?

The most banal situation: I changed a couple of settings in group policy.
Some PCs almost immediately (1-2 reboots) updated and applied the changes.
But most of them have not been using it for more than a week now.
Going manually on each prescribe gpupdate / force is not an option.
What do you advise? Maybe somehow a logon script? Or is there a setting in the registry somewhere? Or maybe even in group policy?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander, 2020-12-02
@StupidQuestion

psexec \\192.168.1.1 cmd gpupdate /force

D
Dim, 2020-12-02
@Dee3

No need for any psexec out of the box everything works Powerhell
Invoke-GPUpdate -Computer WKS0456 = RandomDelayMinutes 0

K
Keffer, 2020-12-02
@Keffer

This setting is in Default Domain Policy, group policy update interval

D
Dmitry, 2020-12-03
@Dorofeevdima

As an option, you can also consider adding a scheduled task with gpupdate on the machines.

M
mniAlex, 2020-12-14
@mniAlex

something like this:

Import-Module ServerManager;
Add-WindowsFeature -Name "RSAT-AD-PowerShell" –IncludeAllSubFeature;
(Get-ADComputer -Filter *).name | % { Invoke-Command -ComputerName $_ -ScriptBlock {gpupdate /force}

winRm should also work, the first two lines are installing the library with cmdlets (can be skipped if already installed, and Get-ADComputer -Filter * gives the result)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question