Well, you could do it the old-fashioned way and just save that as it is as Whatever.cmd, and assign it as a logon (not startup!) script:
Create System Startup / Shutdown and User Logon / Logoff Scripts https://technet.microsoft.com/en-us/magazine/dd630947.aspx
thanks oBdA - yes i went through adding to the registry but its not working - after its added via GPO it not showing up on the client PC's that is why i went with the script
oBdA
Did you check whether the GPO in question was applied to the user(!) in question?
Either through the GPMC (can run remotely against a client), or locally on the client with rsop.msc?
i added the script to logon in the GPO and its not even showing up the the GPresults. the logs are not showing up on the user PC either. its about 20 minutes now since
Going from memory here: select the GPO (not a link) in the left pane; in the right pane, under one of the tabs, you should see the replication state of this GPO for your DCs.
Start troubleshooting from there.
IT Guy
ASKER
well - replication looks fine . i will check other way s to deploy. thanks for all your help oBdA
IT Guy
ASKER
set it as a logon script and attach it to user profile
Create System Startup / Shutdown and User Logon / Logoff Scripts
https://technet.microsoft.com/en-us/magazine/dd630947.aspx
But since Server 2008, there are Group Policy Preferences, which allow you to configure registry settings as required, without using scripts:
Configure a Registry Item
https://technet.microsoft.com/en-us/library/cc753092.aspx