Answered by:
Instant Script execution GPO

-
We have an environment which consists of 1 domain in 1 forst managed by a 2003 (Primary DC) and 2012 server (backup DC). Clients are a range of Windows 7, 8 and 10.
Is it possible to push a batch script to all domain clients without asking them to log off or restart ? This would make my life relatively easier.
Thanks in advance for any help.
Question
Answers
-
The Group Policy scripts extensions (eg Startup Scripts and Logon Scripts) are only triggered by those Startup or Logon events.
Also, Group Policy in general, requires that the GPOs are linked/deployed, at the time of the Startup or Logon, for the GPOs to be enumerated and then processed.
If you link a GPO after the Startup or Logon process has occurred, the new GPO may not be "detected" during background refresh, depending upon your general GP environment.
An alternative might be to use psexec to remotely "push" a script execution, or, PowerShell Remoting or some similar approach, unless you have some other management agent deployed on the computers (e.g. ConfigMgr or something like that)
Don [doesn't work for MSFT, and they're probably glad about that ;]
- Proposed as answer by AlvwanMicrosoft contingent staff, Moderator Friday, February 05, 2016 8:31 AM
- Marked as answer by Steven_Lee0510Moderator Monday, February 15, 2016 5:54 AM
-
Hi,
Regarding your requirement, you could try the VBS script available below:
VB Script to run gpupdate.exe /force silently without a reboot
http://joejoeinc.blogspot.jp/2010/11/it-took-me-while-to-figure-this-one-out.html
The VB script will run Gpupdate.exe /force without any user interaction it will also not show any log off or reboot requests.
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Also if you need any help regarding scripting, we can seek help in our scripting forum:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=ITCG
Best Regards,
Alvin Wang
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
- Proposed as answer by AlvwanMicrosoft contingent staff, Moderator Friday, February 05, 2016 8:31 AM
- Marked as answer by Steven_Lee0510Moderator Monday, February 15, 2016 5:54 AM
All replies
-
The Group Policy scripts extensions (eg Startup Scripts and Logon Scripts) are only triggered by those Startup or Logon events.
Also, Group Policy in general, requires that the GPOs are linked/deployed, at the time of the Startup or Logon, for the GPOs to be enumerated and then processed.
If you link a GPO after the Startup or Logon process has occurred, the new GPO may not be "detected" during background refresh, depending upon your general GP environment.
An alternative might be to use psexec to remotely "push" a script execution, or, PowerShell Remoting or some similar approach, unless you have some other management agent deployed on the computers (e.g. ConfigMgr or something like that)
Don [doesn't work for MSFT, and they're probably glad about that ;]
- Proposed as answer by AlvwanMicrosoft contingent staff, Moderator Friday, February 05, 2016 8:31 AM
- Marked as answer by Steven_Lee0510Moderator Monday, February 15, 2016 5:54 AM
-
Hi,
Regarding your requirement, you could try the VBS script available below:
VB Script to run gpupdate.exe /force silently without a reboot
http://joejoeinc.blogspot.jp/2010/11/it-took-me-while-to-figure-this-one-out.html
The VB script will run Gpupdate.exe /force without any user interaction it will also not show any log off or reboot requests.
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Also if you need any help regarding scripting, we can seek help in our scripting forum:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=ITCG
Best Regards,
Alvin Wang
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
- Proposed as answer by AlvwanMicrosoft contingent staff, Moderator Friday, February 05, 2016 8:31 AM
- Marked as answer by Steven_Lee0510Moderator Monday, February 15, 2016 5:54 AM