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!

Any way of Automating a LOCAL Script when PC logs off?

Status
Not open for further replies.

Sharpharp

IS-IT--Management
Jun 9, 2009
29
GB
Hi,

I have a batch file i want to run on PCs when the user logs off or shuts down.

The PCs are NOT in a domain, so I can't use group policy.

I don't want to manually run gpedit.msc and add the batch file to users-logoff-scripts.

Is there a way to do it using vbscript which could add an entry into the shutdown/logoff scripts folder (like you would manually using gpedit)??

Thanks
Sharpy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top