Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AD OU startup script to run once only

Status
Not open for further replies.

helsknight

IS-IT--Management
Nov 10, 2004
72
US
I have a script I like to run once only. In AD I create an policy for the OU computer config\windows settings\startup. I think this is running everytime on startup. How can I tell the policy to just run once, if already ran disregard the script. Thanks

Hels
 
Write a custom registry setting to determine that the script has alreaady run. Read the registry and if the key is configured, use WSCRIPT.QUIT to end script execution.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
thanks Mark, I just thought that windows would have a run once function. I'll try what you suggested.

Hels
 
Windows does, GPOs do not.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top