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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force specific user to logoff local machine (Vista Business)

Status
Not open for further replies.

melfineo

IS-IT--Management
Feb 19, 2008
83
FR
Is this possible on a standalone machine ? I have set net user /times and this stops log on outside of those times. I tried to set up force logoff by using the net accounts /Forcelogoff for a specific user but this does not seem to work. Is there another command I could schedule to do it? The thing is I only want to log off the specific user and not anyone else ie me if I happen to be using the machine at that time or if I have programs running under my name while the other person is logged on.

Is there a simple vb script I could use?
 
Can you use the Users Tab in Task Manager when it is running Elevated, for example if you click on the Button to show all users, or start it via a right-click and Run As Administrator?
 
I want this to be automated, enforced whilst I am not there. Its a curfew for the user. I can get the users tab up yes but I need them booted off if they are using it at a certain time when I am not there. How ever if any other user is on I don't want them forced to logoff so I don't think I can do it using logoff.exe as I cant see how to make it run only for a specific user.
 
Figured it out, just used scheduled shutdown -l task that runs with the users credentials. Does the trick, only logs them out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top