Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Is there a way to execute a prgm/script at user logoff/shutdown?

14 Apr 2011   #1

win7pro 64bit
Is there a way to execute a prgm/script at user logoff/shutdown?

In old WinXP there was a tricky feature in Group Policy editor to execute a script when a User logs off resp. the computer was shutdown.

I do not find this feature in Windos 7 (pro).

is there another way to execute a *.bat batch script at
a) user logoff
b) shutdown?

My System SpecsSystem Spec
14 Apr 2011   #2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86

You can do it in pro and above with gpedit.

Use Startup, Shutdown, Logon, and Logoff Scripts
My System SpecsSystem Spec

Thread Tools

Similar help and support threads
Thread Forum
Logoff Script failing to run for local users.
Hey everyone. We've been experimenting with running a batch script to backup incremental files for users within our domain. We've found that, when the script is run using an Admin account, or by adding the local user to the Admin's group, the script will kick off and run as it should during...
General Discussion
Enable user account at logoff/shutdown - server 2008 R2
Hi folks. I've got Server 2008 R2 laptop that I need to transfer files to. Frequently, when I reconnect the mapped drive on the source computer, it disables my account on the laptop. Sometimes I forget to check & re-enable it, causing me to get someone to re-enable my account. I created a...
General Discussion
Logoff script not running at shutdown
I have a script that launches Ccleaner and needs to run at shutdown. Shutdown scripts do not run within the user space as I understand, so I figured I'd use a logoff script which will run while the user is still logged in. The logoff script works when logging off as expected, but does not run...
General Discussion
Logoff script timeout?
Just wondering if anyone has come across this before. As part of our logoff script we run a backup application to backup users data to the network. In XP we never had a problem, in Windows 7 a few power users have come across a problem. If they have lots of data that's changed, when the script...
General Discussion
Logoff users with a script?
Hello, The issue I have is my co-workers and I share a VM which we remote into, only one person needs access to it at a time. I have been searching for a way that I could set a script to run when I log on which would log off all other users on the system. I have tried to do it with a simple...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 04:00.
Twitter Facebook