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: Remote Logoff Users?

09 May 2011   #1
SonicAngel

Win 7 Ultimate 64 Bit
 
 
Remote Logoff Users?

Hello everyone, first post here.

So here's the pickle: I work in a hospital with a pretty big network. Till now our help desk computers were all Win XP and were recently upgraded to Win 7.

Now in Win XP if the help desk person wanted to remote logoff a user (which happens a lot as computers are sometimes locked by a certain user but must be released) they simply remote managed that computer and clicked properties -> shutdown -> logoff and that would do the trick. In Win 7 however there is no Shutdown in Remote Manage and it's no longer possible to do this.

I was going to create a batch file using shutdown.exe but it turns out the -l trigger of that command is limited and won't allow the usage of -m in the same command.

Any other ideas?


My System SpecsSystem Spec
.
09 May 2011   #2
JubeiITSS8

Windows XP Professionnal 32-bits
 
 

You should be able to shut it down like that:

  1. Click Start, click All Programs, click Accessories, and click Command Prompt.
  2. Type shutdown /i to display the Remote Shutdown dialog box (Shutdown.exe).
  3. Under Computers, click Add to enter computer names, or click Browse to open the Find Computers dialog box.
  4. Under What do you want these computers to do, click Restart or Shut down.
  5. Select the appropriate reason for the restart or shutdown from the list.
My System SpecsSystem Spec
09 May 2011   #3
tgerbert

Windows 7 Ultimate x64
 
 

psshutdown from SysInternals (www.sysinternals.com) has an option to logoff the console user of a remote user.
My System SpecsSystem Spec
.

10 May 2011   #4
SonicAngel

Win 7 Ultimate 64 Bit
 
 

Quote   Quote: Originally Posted by JubeiITSS8 View Post
You should be able to shut it down like that:

  1. Click Start, click All Programs, click Accessories, and click Command Prompt.
  2. Type shutdown /i to display the Remote Shutdown dialog box (Shutdown.exe).
  3. Under Computers, click Add to enter computer names, or click Browse to open the Find Computers dialog box.
  4. Under What do you want these computers to do, click Restart or Shut down.
  5. Select the appropriate reason for the restart or shutdown from the list.
That would restart the computer, I just want to log off the user from the remote computer. (BTW I shoulda mentioned the workstations are all Win XP).

Quote   Quote: Originally Posted by tgerbert View Post
psshutdown from SysInternals (www.sysinternals.com) has an option to logoff the console user of a remote user.
Thanks, I'll check it out. I was kinda hoping there was a built in option to do this though.
My System SpecsSystem Spec
10 May 2011   #5
tgerbert

Windows 7 Ultimate x64
 
 

Sysinternals is almost built-in - Microsoft bought'em up a little while ago and hired the guys that developed the tools.

You might be able to accomplish the same thing using at or schtasks and the builtin shutdown, but it'd just be much easier to use psshutdown.
My System SpecsSystem Spec
10 May 2011   #6
JDobbsy1987

Windows 8.1 Pro x64
 
 

I have a VBScript that does this.

remote logoff.vbs

Run It >> Enter I.P Address or Computer Name >> Click OK

Hope this helps.


Regards,
JDobbsy1987


My System SpecsSystem Spec
11 May 2011   #7
SonicAngel

Win 7 Ultimate 64 Bit
 
 

Quote   Quote: Originally Posted by JDobbsy1987 View Post
I have a VBScript that does this.

Attachment 153854

Run It >> Enter I.P Address or Computer Name >> Click OK

Hope this helps.


Regards,
JDobbsy1987
That is just great! Just what i was looking for. Thanks a lot Dobbsy
My System SpecsSystem Spec
11 May 2011   #8
JDobbsy1987

Windows 8.1 Pro x64
 
 

Glad i could be of help
My System SpecsSystem Spec
31 Jan 2012   #9
ws6driver

win 7 pro 32bit
 
 

Quote   Quote: Originally Posted by JDobbsy1987 View Post
I have a VBScript that does this.

Attachment 153854

Run It >> Enter I.P Address or Computer Name >> Click OK

Hope this helps.


Regards,
JDobbsy1987
DUDE thank you so much! i have been working on a vb app for my network! unfortunately i know nothing of programming. AMAZING job. you take donations?
My System SpecsSystem Spec
02 Mar 2012   #10
the9thwonder

Win7 64-bit
 
 

Besides entering the IP address of the computer you are trying to log off, are there any changes you need to make to the script for it to work?

Also, does it work on separate vlans?
My System SpecsSystem Spec
Reply

 Remote Logoff Users?




Thread Tools




Similar help and support threads
Thread Forum
Specifying restricted access for remote users
Hi, I want to allow a remote user to access my windows 7 machine, but need to heavily restrict the session. The catch is that want to allow the remote user to have online access to my company VPN. Therefore I donít want any undesirable internet activity undertaken. Similarly I donít want...
Network & Sharing
Forcing user logoff/switch user with Remote Desktop
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...
Network & Sharing
Controlling/restricting multiple users remote file access.
I established a computer just for clients to login to for their data files. I just getting ready to go live, but noticed under the Properties>Security Tab for several of the more critical folders (Program Files, Users, Windows), includes the following "Group or user names": Users; Administrators;...
Network & Sharing
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
Detecting Users from remote Computers/Machines
Hey guys I'm having trouble setting up my home network. What I'm trying to do is to add my remote PC' s User(myLaptop-Kevin) to the folder permission settings.. Tidbits: 1. myLaptop is detected in my Network. So I guess the physical connection is good. See picture. ...
Network & Sharing


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 11:54.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App