GPupdate win10 when user logon with delay

darkbluelion 21 Reputation points
2022-03-01T03:08:49.813+00:00

Hi all,

Some background first,

We have a group of Win10 hyperV VM running on the laptops. These VMs are set to go into save state when users log out.
As the VMs are in save state and not boot up, GPupdate would not trigger at the start.
we can't be sure when user would logon these VMs and how long would they be logon for thus difficult to ensure 90 to 120 mins random interval would trigger GPupdate.
These laptops were dispatched out and it would be tedious to manually trigger the GPupdate from the laptops itself.

I would like these win10 VMs to pull GPO from our AD after user logon with some delay so network could establish connection first.
1 way i am trying is to periodically invoke GP-update from AD but i'm afraid it would load up the network bandwidth.

Is there any other better way to make sure GPO can be pull almost immediately (1 min delay) when users logon to the VMs?

Thank you.

Mark

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,560 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,723 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,476 Reputation points Microsoft Vendor
    2022-03-16T05:52:56.073+00:00

    Hi,

    You can create a logon script in the NETLOGON share "%SystemRoot%\SYSVOL\SYSVOL\<domain name>\scripts" on the domain controller to update group policy settings and then assign it to the AD users in the profile tab of the AD user properties. The script could be like this

    timeout /t 60  
    gpupdate /force  
    

    183467-screenshot-2022-03-16-133603.png

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments