question

darkbluelion-0140 avatar image
0 Votes"
darkbluelion-0140 asked IanXue-MSFT answered

GPupdate win10 when user logon with delay

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-generalwindows-group-policy
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered

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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.