Ask the Expert

Can I automatically execute a 'batch file' on logout in WinXP?

I am wondering if you can help me with a scenario where I would like to automatically execute a 'Batch File' on logout in Windows XP. On launch, I can easily put a shortcut into the startup folder, yet I don't think there's any such mechanism for logout situations (well it's not easy to find!). If possible, I would like to find a way of doing this without utilizing any third-party tools.

Requires Free Membership to View

Yes, it is possible to set something (like a script) to run at shutdown by creating a Group Policy configuration for it, provided your computer hasn't been locked down from doing so bya n administrator. Select Start | Run and type gpedit.msc, then click OK; then look in Computer | Configuration | Windows Settings | Scripts (Startup/Shutdown). Double click Shutdown in the right-hand pane, then click Add to add one or more scripts as needed.

This was first published in July 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: