Over 1 million tech questions and answers.

Force user logoff after 3 days of inactivity

Q: Force user logoff after 3 days of inactivity

Just want to start off by saying I'm a noob so bear with me.

Background: We have multiple fire stations running Vista Business where there could be 20 users logged onto the PC at any given time, thanks to "fast user switching" We encourage fast user switching its just, the users never log off and after weeks of not rebooting its starting to cause issues.

Goal: I' am trying to write a script or a task that will run that would log off users who have been inactive for 2-3 days. I do not want this to affect the others users who are already logged on the the PC.


Preferred Solution: Force user logoff after 3 days of inactivity

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Force user logoff after 3 days of inactivity

Hello Alex, and welcome to Vista Forums.

I'm not sure how to do what you are wanting, but as a workaround for now, you can use Task Manager in an administrator account to log off these users.

Task Manager Users - Log Off a Local User

Hope this helps some,

Read other 3 answers

Is there any way for an administrator to force a user to log off a locked workstation when Fast User Switching is disabled? 

A:Administrator force logoff of locked workstation without Fast User Switching

I assume you've "disabled" Fast User Switching by the Group Policy Hide entry points for Fast User Switching.
Very good question.  There is certainly no way at the "locked" screen to enter an alternate user or force a logoff.
I suppose you could connect in remotely via RDP, or maybe (if you want to get tricky) schedule a SHUTDOWN /L command to run via remote connection to the Task Scheduler (e.g., via MMC).
It's occurred to me that the above policy change isn't really disabling Fast User Switching at all, but just the points of control.  What is it you're specifically trying to protect against by "disabling" Fast User Switching?

Read other 15 answers

I've got a machine with multiple users. Is there someplace in Win7 where I can set the user to logoff after an hour of inactivity?

This should be a clean logout with any programs open to be closed and auto saved as needed.


A:Logoff After Inactivity (Not Scn Svr or Power)

Welcome to Seven Forums PeteMc. You can create a task to do this. Take a look here:

automatic logout after inactivity/idle

A Guy

Read other 2 answers

I need to have a workstation automatically logoff a user after a defined period of inactivity.

I have looked in Local Security Policy and have only found an Automatic Logoff option for when the users Logon times expire.

Suggestions ?

Thank you

A:Auto Logoff Win2K after inactivity

You have a couple of options. One is a utiulity that comes with the resource kit called the winexit screensaver. It takes a little setting up for non-admin users, but it does work.
The other would be this freeware program that will also do this and is easier to setup. They have complete instructions on thier site.


Read other 3 answers

We have some people who sometimes forget to logoff after the work is done. So I'm looking for a way of forcing logoff to users after some amount of inactivity. Any GPO avialable or any other way ?

We use AD, Win 2003 Server, Win XP Clients.

Thanks, Zero7

A:Forcing logoff to users after some time of inactivity

Look here.

In the future, for Windows related stuff, Microsoft's site is great for info.

Read other 7 answers

This is my first post. I'm desparate...I really really hope somone here can help me! I have Win 8 basic (so no gpedit at my disposal). I need to let some students use this machine and log in to the guest account. I want to use this account so that users cannot save to the desktop, and I want the browser settings to be totally cleared for the next user.

I tried using the task scheduler to run a .bat to force log off after inactivity. But I can only get it to work with my administrator account.

I also tried pointing the task scheduler to Karen's Show Stopper (KSS) to log it off. Again, it will not work!

Can task schedular be used with the guest account? (BTW, i put the .bat file and KSS .lnk file in windows/task folder.)

Does anyone have any ideas on how I can make this work?

Read other answers

is it possible to prevent an administrator from logging you off from a local computer?

A:force logoff

Nope, the administrator has complete control over the system. The only way to do that would be to remove the administrator account from the local system and from the domain.

Even then, all the administrator would have to do, is to issue a remote shutdown with a force kill all applications and the system would just reboot.

Or he could just reach down and turn the system off and after it rebooted just log on in.

Read other 1 answers

Hi all. I can use the shutdown -l in a batch file, but not over RPC.

example: shutdown -l -m \\computername

This would work using shutdown -i, but that will not run in a batch file, unless there are paremeters that can be added


A:Solved: Force logoff.

Try PSShutdown from these tools: http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsTools.mspx

Read other 3 answers

I use below to set logoff time to 10:

net accounts /forcelogoff:10
C:\>net accounts
Force user logoff how long after time expires?:       10
Minimum password age (days):                          1
Maximum password age (days):                          45
Minimum password length:                              8
Length of password history maintained:                4
Lockout threshold:                                    6
Lockout duration (minutes):                           30
Lockout observation window (minutes):                 30
Computer role:        &... Read more

Read other answers

Hi everyone,

I'm not sure if this thread is in the right forum, if not, feel free to move it.

We are currently migrating our organisation to Windows 8.1 Entreprise with Novell Client 2 SP3 IR10. In Windows XP, couple years ago, we added a Force Logoff button to the unlock screen using this value in registry :


I'm trying to add the same button to the unlock screen in Windows 8.1 but this value won't work anymore. I'm trying to find a solution. Please, keep in mind that Fast User Switching is disabled and that our users aren't administrators.

I've made some research on Google. I've read some things about the Force Logoff option being removed from Windows 6.x and replaced by Fast User Switching. I've seen some posts talking about installing some program to add the possibility to unluck using an account
that is administrator but this won't do it because our users need to be able to do it on their own, without having to call helpdesk. I'd rather not install any program or plugin on my workstations.

Is there any solution? Or should my users keep shutting down workstation to login?

Read other answers

Friends nice day
I need to force the logoff of sessions that are with the status disconnected, locally on workstations.
This occurs when users perform interactive login and do not make the off, only block the workstations and the new user makes trading account and logs on.
How do I force the logoff of these accounts?


A:How to force logoff local users with status disconnected

I haven't found a way to automatically logoff the local disconnected sessions at a scheduled time, cause it's hard to detrermine which user session is disconnected at that specific time. but we can use  "query seesion" and "logoff"
command in a local machine or remote machine to manually logoff the disconnected sessions.

The following is an example to exectue this from another remote machine, use psexec command

Yolanda Zhu
TechNet Community Support

Read other 8 answers

On windows 7 professional 64-bit sp1,
if a current user is screen locked, the lock screen indicates the current user name and account is logged on and the computer is locked. I am using Classic Logon in group policy,
and under local policy-security options-interactive logon i have it set to display username and account info (the option with most information).

the problem i have is say a user is logged in and then I need to use the computer,
at that point the lock screen says so and so is logged in and locked,
I do a switch user, log in and do my thing, then log out.
Now the screen goes back to the base login screen saying 'ctrl-alt-del' not saying any user is currently logged in.
Now if that original user does log back in, all his stuff is still here and everything acted like a basic screen lock happened so no problem there... but what i want to happen is after a switch user logs out the screen goes back to the lock screen displaying who has the computer locked. is there a way to do that?

A:Switch User then logoff, back to ctrl-alt-del login not previous user

At a guess, I'd say Classic Logon is the culprit here, as I do not have this issue with Windows 7 64-bit SP1 with the default login screen. Changing this is likely impractical next to the simple solution of ditching Classic Logon (It's an ancient artifact by now)

Read other 1 answers

Here's my issue, I would like to RDP to a Windows 7 laptop. Even with Administrative privledges, it will tell me "Waiting for user to respond". I would like to either switch users via RDP, or force them to log off without prompting.

Server is SBS 2008. I already have "Set Rules for remote control of Terminal Services user sessions" to Full Control without user's permission.

A:Forcing user logoff/switch user with Remote Desktop


Read other 2 answers

I have Vista attached to a domain. All users login to the domain from the Vista machine.

I have verified:
On the domain that certain users have logon hour restrictions.
The domain policy is "enabled"
The domain controller policy is enabled
The local policy on the domain controller is enabled.

Yet the users do not get logged out automatically when their hours expire. The local policy on Vista is "disabled", and I cannot change it, as it says I have to make the change on the DC, but that is already enabled. I've run a "gpupdate /force" and still no changes.

Can anyone help?

A:Solved: Vista "Force Logoff when hours expire" issue

I'm now getting the following error when trying to force a gpupdate:

Log Name: System
Source: Microsoft-Windows-GroupPolicy
Date: 5/8/2008 7:16:22 AM
Event ID: 1058
Task Category: None
Level: Error
Computer: familypc.domain.local
The processing of Group Policy failed. Windows attempted to read the file \\domain.local\sysvol\domain.local\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\gpt.ini from a domain controller and was not successful. Group Policy settings may not be applied until this event is resolved. This issue may be transient and could be caused by one or more of the following:
a) Name Resolution/Network Connectivity to the current domain controller.
b) File Replication Service Latency (a file created on another domain controller has not replicated to the current domain controller).
c) The Distributed File System (DFS) client has been disabled.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<Provider Name="Microsoft-Windows-GroupPolicy" Guid="{aea1b4fa-97d1-45f2-a64c-4d69fffd92c9}" />
<TimeCreated SystemTime="2008-05-08T11:16:22.293Z" />
<Correlation ActivityI... Read more

Read other 2 answers

Those of you who have read my posts over the past couple of weeks know what am doing on a computer belonging to an Assisted Living facility.
I have the user accounts set up plus I have removed the "Switch User and Sleep menu items from the context menu of "START.......SHUTDOWN. I have reminded the users to log off several times. I have used BRINKS tutorial to create a LOG OFF shortcut and pinned the shortcut to the task bar. Some of the users STILL fail to logoff when they are done using the computer. I am now wanting to log them out of their account after an adjustable period of inactivity Maybe you wizards can come up with a tutorial to accomplish this.
What I am thinking is a screensaver type of auto log-off. The screensaver would come on after a predetermined period of inactivity. It would have a warning msg and display a countdown. At the end of the countdown the log-off command would be initiated.
External (administrator) inputs
1. Length of inactivity.
2. Length of warning, time it is displayed.
3. Maybe text of the warning.

A:Batch file to automatically log a user off after a time of inactivity

Hi Blockie -

Since Sleep or Hibernate would save the same user session and not Log Off it's probably not what you want even though the PC would be suspended until awakened or resumed.

Doing a search I found two methods that might work for you that also provide templates for either Task Scheduler in any version, or Group Policy controls if you have Pro or Ultimate.

automatic logout after inactivity/idle using Task Scheduler

WizardSoft - AutoLogoff cleanup & end inactive Windows sessions using Group Policy.

Read other 9 answers

One of my older Windows 7 machines has two users: Administrator and Me. For as long as I've had it, Me is taken back to the login screen after a very short period of inactivity, perhaps 5 or 10 minutes. I cannot find anywhere to tell it to stop doing this.

There is no password set for Me, nor for Administrator.

When I say it takes me back to the login screen, I mean the icon for Me is displayed (only the icon for Me -- as opposed to the boot-up screen that shows the icons for both Administrator and Me) and below it is a button that says Switch User.

I just have to click the icon for Me to go back to my desktop or work, but it's a hassle.

For reasons I cannot understand, my two new Windows 7 machines are not doing that even though they, too, have two users, Administrator and Me, and those also do not have passwords. Very perplexing. I've looked in every place I can think of, from User Account settings to Power Options settings (which are now all set to "Samsung" profile for the SSDs I've installed in all these machines -- though I've then drilled through all conceivable settings within that and nothing seems to apply to this issue).


EDIT: I created a password for Me and that didn't help.

A:Solved: Login screen reappears after brief user inactivity

This could be a problem with screen-saver options.

Go to Start > Control Panel > type in the search box "screen saver" > now uncheck the "on resume, display logon screen" and you can also set off the screen saver.

Read other 2 answers

Is there any way that I can change the length of time that Windows XP will disconned myself when I am not by the computer?

A:User Logoff

hello ,

can you please be a little more specific in what you want to do ?

it sounds like you want windows to shut down when you are not at the pc

also it sounds like you want windows to shut down faster

need a little more input !!!


Read other 3 answers

Does anyone know how to force Windows 10 to perform its user preparation steps after a user already has a profile. I'm attempting to migrate a profile from Windows 7 to Windows 10, but the Start menu isn't working. I suspect this is because the OS never performs its preparations. Any ideas?

A:Force User Preparation on User Logon

Hi Chekmayte, welcome to Ten Forums. The start menu not working is a known bug that sometimes occurs. You could try using the system file checker command (SFC) to check system file integrity. This is from the tutorial forum. SFC Command - Run in Windows 10 - Windows 10 Forums . See if that gets your start menu working.

Read other answers

I just upgraded to XP - so far so good. BUT!

I created four accounts (3 users and 1 "root"). When one has been left idle, and I log them off to then logon mine, the screen goes black and doesn't return to the logon menu. I have waited 15 minutes, but nothing happens. I hit the reset and reboot the system o get a logon. It hasn't complained, but I'm wondering: did I set something up improperly, incompletely, wrong?

Is there a remedy for this? Please give me some insights!


A:logoff user hang?

Read other 9 answers

Hopefully I can find some help here.

I have XP SP2 and have two users on it. Both have Admin Rights if that makes a difference . When I do a log off to log back in as the other user, the password field does not contain the blinking cursor bar so that I am able to type the password. Even clicking on it, doesn't change anything.

I can shut the computer off using the quicklink in the left corner. But that is it. On the reboot, everything is fine until I try to log off/on as the other user.

Is there a patch that is missing?

Read other answers

If a user signs on and does not match a list of authorized users, signoff.

example valid users are administrator, joe, mary or jack; signon is OK, anyother user id, signoff the user.

this bat file would be the first thing run in start up for all users.

Read other answers

I am looking for a program something like what my library has on their computers. I want to be able to give each of the kids a username and password then when they log on a timer will automatically log them off say 30 min. but will also allow me to give them a max daily time limit. Or if this is possible within win 8 itself


A:user auto logoff

What you're looking for is built into Windows 8 called family safety

Family Safety - Setup and Use in Windows 8

you can set time limits and times of day they are allowed or not allowed to use the computer

Read other 6 answers

Operating system: windows xp sp2

When any user account logs off most of the time the following window appears:

program "hv4tK3y7d9DD89Cr1Je1w24+defaultCFG+DesktopSearchEngine" not responding,click "end now" or "cancel" . Clicking either of these options allows the logoff to complete.

You can logon and then logoff without doing anything and there is no problem, but using IE or AOL etc the problem is generated, but you don't know it until you attempt to logoff.

I have run various virus and adware/spyware programs and nothing is found, so it looks like the system is clean right now.

Thanks for any suggestions.


A:User account logoff problem

Read other 8 answers


Okay heres the deal (I hope this is easy for all u smart guys) When I'm logged on to my User account, I can't logoff or powerdown from the start menu. The only way for me to power down (forget about loggin off) is to select the switch user prompt. I am then directed to the Login Menu that comes up after my comp starts up. I want to be able to Logout, and or Shutdown from my desktop no matter what user I happen to be. Any help you may have I would be much obliged for. Thank you.



A:Can't Shutdown or Logoff from User Desktop

Read other 8 answers

Hi Experts,

One of our domain user is facing a weird problem that is when he tries to login a computer he is loged off immediately after enter credentials, he can log in to other computer with his profile.

When I made the user the member of local admin group he was able to login to the computer normally.

What is the exact issue...???

Any suggestions....

A:User Account Logoff in Windows 7

The userinit.exe in that particular computer is somewhat corrupted. i have faced that problem before. my solution is to copy the userinit.exe of the other computer in my domain.

you can find this at C:\Windows\System32 find userinit.exe.

or any one else has a better solution to that.

Read other 4 answers

OK. Here I go again. I am having a problem with logging off and switching off of user accounts. I have two user acccounts in my computer and am running Windows XP Home Edition. Both of the user accounts are admin accounts and one of them is passowrd-protected and the other one is not. I usually use the account that is not password-protected and my bro uses the one that is. The problem starts when he or I switch/logoff to his account. It takes hell lot of time to just come up. And then when hes done working on his stuff or whatever hes gotta do and tries to switch back, a popup comes up and says there is a DSL connection would like to close it and we always click yes. And after that the screen goes blank and thats it. The PC stops responding to anything at all even if I wait a long time for it to come around. I am then just stuck there untill I keep the power button on the processor pressed down for a while to shut it down. The restarting keys (Ctrl + Alt + Del) won't work. The PCs is pretty fast (1.99 GHz with 256 MB of RAM) but it works VERY slow once I have restarted after it got stuck. Even though I've got DSL the pages come up just like I'm using a 28.8 kbps modem connection. I've no idea whats causing this since there aren't many programs in the startup to cause the computer to be slow. I have a lot of songs on my PC and might that be causing the slowness....? Not sure though since they are just taking up space not the memory. I don't really... Read more

A:XP User Logon Logoff Problems

Read other 6 answers

I am working on a computer with Windows Xp Professional SP3. I was going through the group policy to familiarize myself with its capabilities. I saw an option to restart the computer when a user logs off. I was curious to see this option in action and chose it. I do not know where in the gpedit.msc I found it before and now I don't know how to shut it off. I did not type any code or add a txt file as many of the options suggest when I Googled my situation. It was simply an option to enable. Please let me know where to find this to shut it off. It is really starting to get on my nerves. I appreciate any constructive input. Thanks.

A:Auto Restart after user Logoff

Please review This M/soft Topic as it may help -

Read other 1 answers

I believe that I inadvertantly downloaded or opened a virus or malware of some kind that is now preventing me from accessing my laptop. When I logon under any user I am automatically logged off again. I have tried booting in safe mode and to command prompt, but to no avail. Still the same problem.

I have looked on line and many people including Microsoft say that this is because 'userinit.exe' is missing in the registry. I have accessed the registry using bartPE and userinit is there.

Unfortunately I cannot locate my XP disk for this laptop; however I have a recovery disk from an older laptop, but when trying this I get a blue screen saying ' A problemhas been detected and windows has shut down to prevent damage to your computer'???? This error does give some further info, but without being able to access the laptop I cannot do anything about it.

Can you offer any advice?

A:Auto Logoff after user Logon

your userinit.exe is located in C:\Windows\System32

You can get a copy of the userinit.exe from another computer, or boot into recovery console from a XP disc, and log in. You should be at a c:\windows prompt. Type the following:


You should be at a c:\windows\system32 prompt.

copy userinit.exe wsaupdater.exe

Allow it to overwrite.

Type exit and allow it to reboot, pull the CD.

Read other 10 answers

Having a TON of problems with my wireless I hooked up. M laptop does not recognize wireless OR the LAN anymore. IT says "Unidentified Network" My laptop connects to the network but the network doesn't connect to the internet. Before I got it and added a password it worked fine! Except it said
Limited Connectivity" I'm not sure what happened?
Here are the system settings for my laptop (I don't think wifi works for my PC either):

Manufacturer: TOSHIBA
Model: Satellite A215
Windows Vista
Rating 3.0
Processor: AMD Turion (tm) 64 x2 Mobile Technology TL-52 1,60 GHz
Memory: 894 MB
System Type: 32-bit Operating System

Full/Comp Name: Amanda-PC
Workgroup: WORKGROUP

Windows is Activated
Product ID: 89578-OEM-7332157-00237

I thought IP Routing had to be enabled but I don't know how to do so.
Problem is I can't do the "config/'' thing since I can't access the internet OR turn it on here. This is really irritating and I'm so dumb at trying to fix it.

This is what I typed from IPCONFIG /ALL since I cannot access internet to paste it directly to you guys.
I can tell you from the .cmd IPCONFIG /ALL that it does say:

IP Routing Enabled: No
WINS Proxy Enabled: No
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix:
Description: Atheros AR5007EG Wireless Network Adapter
Physical Address: 00-1B-9E-2C-EE-0F
DHCP Enabled: Yes
Autoconfiguration enabled: Yes
Link-local IPv6 Address: fe80::e923:97... Read more

A:Ugh, netgear wireless inactivity/limited inactivity?

Read other 13 answers

I'm simply looking for a way to automatically log off users after a period of inactivity. I have been able to create a scheduled task that runs at logon via domain GPO, and it works. The trouble is it doesn't display a warning to the user, indicating they
are about to be logged off. I need that. I can't have user sessions interrupted, or work lost because the computer automatically logged them off. What if the user is watching a movie, or reading a long document? Is there a way to display a message to the user
before an automatic logoff occurs? I know about the winexit.scr tool, but it is 15 years old. There has to be a newer approach to this.


Read other answers

I'm having a bit strange issue on one laptop (HP 6440b) running Windows 7 Professional. Problem is logging in with a user that doesn't have administrative rights, once i try to log on with a regular user it automatically logs me off after logon.
Problem occurs on both domain and local accounts. This problem occurs only on one computer in the domain and there are no special policys applying to it. There's no real errors on the eventvwr logs, just notifications of logon and logoff.
Anyone have any ideas what might be causing this?
 Triuvare Oy www.triuvare.fi

A:Forced automatic logoff after logging on with new user

Thanks for posting in Microsoft TechNet forums.
This issue occurs if the Userinit key in the Windows registry has been modified.
 Please follow these steps:
1. Log on the computer as an administrator.
2. Start Registry Editor, locate the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
3. In the right pane, right click Userinit – Modify.
4. In the Value data box, type hard_disk:\Windows\System32\userinit.exe 
(hard_disk refers to the disk on which Windows 7 is installed), Click Ok.
Note: Before you change the registry, please backup the original key in case of unexpected issue.
Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems
can be solved.
Best Regards,
Miya Yao
TechNet Subscriber Support
in forum. If you have any feedback on our support, please contact
[email protected] posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer
your question. This can be beneficial to other community members reading the thread.

Read other 5 answers

the most common functions used are hidden behind a little arrow in the start menu. the system I am setting up is constantly being switched between users, and they don't want to know anything about pressing the windows -s keys to switch to their accounts. they want to click on a big icon that is handy to see. while I'm at it they also want a Log Off icon on the desktop and don't want to go clicking around looking for it.
the only command that I can remember is shutdown -r that I can put in a macro, link to the desktop via short cut, and change the icon. what are the commands for fast user switching and logoff?
btw, I had to shut off UAC control because the users had to confirm every icon the clicked on before they can use the program. The red security shield comes up and won't go away so I had to shut that off too. I hope that they still get warnings for the other features that are still active...

A:How do I put a 'logoff' and 'switch user' icon on desktop???

You can also make an instant Lock Computer by clicking the "Windows Logo Key + L", for further shortcuts, check Help And Support Section in your Windows.
Good luck

Read other 6 answers

I have been tasked with tracking down the login and logoff events from a user post fact.
I believe this information would be located in the event log on the users computer. I also believe it should be logged in the AD server as well.

Q1. Are these two premises correct? 
Q2. If so, where would the actual files be located so I could parse out the login/logout data for the specific user (from the AD server especially).
Q2b. For the local system, where is the event file located? or what is the actual file name so I could search the system for it?
Any assistance in this task would be greatly appreciated.
Thanks in advance.

Read other answers


I am unable to shutdown or restart my XP. It doesn't even begin the shutdown process. I just get this message: 'Windows cannot find '/idlist,:480:1656,C:\windows\system32\grouppolicy\user\scripts\logoff.' I tried finding and opening this logoff folder and I find it empty. I don't know if this is normal or not. Any assistance on this issue would be very much appreciated. Thanks in advance for any replies

A:Solved: Windows cannot find user/scripts/logoff

I happened to be looking in My Documents and I was lucky enough to find a fairly-recent registry cab file that I saved from Registry Expert Cleaner in January that I was able to restore, which put things back the way they were a couple of months ago. Things can get so easily messed up with all the junk that's out there to download. I still have a few programs to reinstall but most things are basically back to normal.

Read other 1 answers

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?


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

You can do it in pro and above with gpedit.

Use Startup, Shutdown, Logon, and Logoff Scripts

Read other 1 answers


Due to an ongoing issue with Windows Live Family Safety time limits not working (for many people), I have been using the net user command to set time restrictions for my kids to logon. It works really well except that it doesn't log them off automatically or even prompt them to logoff when their time restrictions come into effect.

Does anyone know if this is possible to do and if it is, how to do it please?


A:Enforce user logoff when time restrictions apply

Are they using Windows 7 Pro or higher? If so, then we can look around for a Group Policy solution. Or maybe just a scheduled task using the shutdown -l command.

Read other 9 answers

I have about 500 workstations on a domain running a critical 24/7 application. I need to be able to prevent the users from Logging off, Shutting down, or restarting the workstation from the Windows Desktop. I have been able to do this with Windows XP for
years but I am not able to prevent Logoff and Shutown/Restart at the same time on Windows 7. I can disable one or the other but not both via doman GPO and/or Registry settings.
Does anybody know how to prevent a specific user from logging off, shutting down, or restarting a workstation from the windows desktop?
Thank you.

Read other answers

I have a Windows 7 machine here that needs to stay logged on 24/7 due to a program that needs to receive and send files constantly with a remote server.
We noticed that CEIP would routinely log off and leave the application off, so we disabled it 
But it's still restarting on a regular basis, and is disrupting our workflow
Please tell me I'm not the only one with this issue! I could only find threads that were solved by disabling CEIP in the first image, but not ones where it keeps happening even after the disable.
Thanks in advance for your help!

A:User Logoff Notification for Customer Experience Improvement Program


I would like to suggest you confirm the CEIP is disabled.

Disable the Windows Customer Experience Improvement Program

1.  In the Windows 7 guest operating system, start the control panel and click Action Center > Change Action Center settings.

2.  Click Customer Experience Improvement Program settings.

3.  Select No, I don't want to participate in the program and click Save changes.

4.  Start the control panel and click Administrative Tools > Task Scheduler.

5.  In the Task Scheduler (Local) pane of the Task Scheduler dialog box, expand the Task Scheduler Library > Microsoft > Windows nodes and open the Application Experience folder.

6.  Disable the AITAgent and ProgramDataUpdater tasks.

7.  In the Task Scheduler Library > Microsoft > Windows node, open the Customer Experience Improvement Program folder.

8.  Disable the Consolidator, KernelCEIPTask, and Use CEIP tasks.

You may refer to the following link to check it:

Windows Customer Experience Improvement Program and Resulting Internet Communication in Windows Vista

Please note the section "Procedures for Controlling the Windows Customer Experience Improvement Program".


Blair Deng
                Blair Deng
TechNet Community Support

Read other 6 answers

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 batch file using net user account /active:yes. Running that batch file seems to work fine.

The question is, how do I automate that batch file to run on logoff or shutdown?


A:Enable user account at logoff/shutdown - server 2008 R2

windows 8 - Schedule a command at logoff before applications terminate - Super User

Read other 1 answers

Hi folks. I want to put a batch file together that will delete all files at the user profile in the following directories when my users log off:

C:\Users\USER\AppData\Local\Microsoft\Windows\Temporary Internet Files

Help would be appreciated!  Thanks.

A:Help creating batch file that will delete all user profile temp files on logoff.

A simple del command line may not work, because you do not have access on the temp files of other users. If you still encounter problems after trying this suggestion, I recommend that you discuss it in our Script Center, you may need a VB script that can
ignore UAC.
The Official Scripting Guys Forum! 
Arthur Xie
TechNet Subscriber Support in forum  

If you have any feedback on our support, please contact
[email protected] remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?

Read other 6 answers

This link contains WinRar software (wrar501.exe 1.68MB):
WinRAR download and support: Pre-Download
This software can be installed on Windows XP by a standard user (not administrator). It will ask which folder to install into.
But on Windows 8 I can't install the same software as standard user. It always prompts for administrator's password to continue (let's just say I do not have the password).
How can I force to install software as standard user on Windows 8 ?

A:How to force installing as standard user?

You cannot install software without administrative rights. A great deal of work went into the design to ensure that this would not be possible. There is no workaround.

Read other 2 answers

I have a problem with my unattend files for the sysprep (Windows 7 Pro x64).

What I want  to do is to force the user just to enter the product key in the first boot.
Now i have two unattend files. With one of those files Windows is just asking for the product key in the first boot.
With the other one, the user must enter user name, Password and key.
But, as I said, Windows should just ask for the key.
This is the file which works:
<?xml version='1.0' encoding='utf-8'?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<component name="Microsoft-Windows-powercpl" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<... Read more

Read other answers


i typed: expand d:\i386\userinit.ex_ c:\
then copy c:\userinit.exe c:\wimdows\system32\

then i was able to log back into windows but now I've lost all my original desktop settings and programs. How do i get that back?

Your help would be appreciated


Read other answers

I have a machine with a fresh install of windows seven. After creating the user, I decided that they should not be an administrator so I enabled the administrator account for me, and set their user privileges to standard. I wanted to force the user to have to change their password the next time they log in. For some reason when I go through the computer management to the user and go to the properties of the standard user, I am not able to check the box to force them to change their password at next log in. This may be a simple thing to fix, but I am still not used to all of the UAC on seven and am unsure of how to resolve this. Thank you.

A:Force user to change password at login

U will need to uncheck the other two boxes("User cannot change password"and "Password never expires.") before you can click the "User must change password at next logon"

Read other 2 answers

Hi there

I've trying to invoke a fix on the fly and have got a mixed windows workstation environment on my network. For particular reasons, I don't want my windows XP users to use a Windows 7 machine and equally I don't want a Windows 7 user to use a Windows XP machine. Silly I know but there you go.

I've set up a couple of WMI filters that determine the machine type and have used the following script to ensure that each user type is logged off and the PC restarted.

Option Explicit
Dim objShell
MsgBox"The detected logon method is not supported " & chr(13) & chr(13) & "Please revert to using your own computer." & chr(13) & chr(13) & "This computer will now restart" & chr(13) & chr(13),0,"Invalid Logon Detected."
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "C:\WINDOWS\system32\shutdown.exe -r -f -t 0"

For the Windows XP users on Windows 7 machines it works fine, however when a Windows 7 user logs into a Windows XP machine, it displays the message but won't do the restart bit on the Windows 7 machines.

Do I need to create some elevated permissions for my windows 7 machines.

A:Can I force a user to log off automatically through a logon script?

Try to run interactively.

C:\WINDOWS\system32\shutdown.exe -r -f -t 0

works on winxp?
Why did you create those user accounts? You don't let them logon! You don't simply log them off but even shutdown.

Read other 8 answers