Solved Remote Logoff Users?

SonicAngel

New member
Local time
2:09 AM
Messages
6
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 Computer

OS
Win 7 Ultimate 64 Bit
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 Computer

OS
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.

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).

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 Computer

OS
Win 7 Ultimate 64 Bit
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 Computer

OS
Windows 7 Ultimate x64
I have a VBScript that does this.

View attachment remote logoff.vbs

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

Hope this helps.
:thumbsup:

Regards,
JDobbsy1987
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome
Glad i could be of help :thumbsup:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome
I have a VBScript that does this.

View attachment 153854

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

Hope this helps.
:thumbsup:

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 Computer

OS
win 7 pro 32bit
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 Computer

OS
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?

it worked for me on the same network. Vlans i dont know about
 

My Computer

OS
win 7 pro 32bit
Works for me on different Vlans with no problems at all.
 

My Computer

OS
Win 7 Ultimate 64 Bit
I get this error when trying to run it....

Script: location
Line: 2
Char: 1
Error: the remote server machine does nit exist or is unavailable: 'GetObject'
Code: 800A01CE
Source: Microsoft VBScript runtime error
 

My Computer

OS
Win7 64-bit
Maybe you entered a wrong PCname or IP address?

Sounds like it.
 

My Computer

OS
Win 7 Ultimate 64 Bit
I get the same error no matter what IP address or computer name I put in.
 

My Computer

OS
Win7 64-bit
I'm running it from a Windows 7 Pro 64-bit service pack 1 pc to XP Pro service pack 2 pcs.

Is there something that might be blocking it, something on the network or destination pc? Are there permissions I need to check?
 

My Computer

OS
Win7 64-bit
I've been searching this for days. Thank you
 

My Computer

Computer type
PC/Desktop
OS
7
getting error message:

Line: 2
Car: 1
Error: 0x80041003
Code: 80041003
Source: (null)

can't run the script as admin, could be why?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Home Premium 64bit
CPU
Intel i5
Motherboard
Asus
Memory
16GB
Graphics Card(s)
GTX660 ti
Hard Drives
1TB seagate
120GB velociraptor 10krpm
Antivirus
MSE
Browser
Chrome
It was because of admin.

I ran it via a command prompt window (that I ran as admin)

It works perfectly! Thank you very very much!
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Home Premium 64bit
CPU
Intel i5
Motherboard
Asus
Memory
16GB
Graphics Card(s)
GTX660 ti
Hard Drives
1TB seagate
120GB velociraptor 10krpm
Antivirus
MSE
Browser
Chrome
Apparently this is still a problem?

I get this error when trying to run it....

Script: location
Line: 2
Char: 1
Error: the remote server machine does nit exist or is unavailable: 'GetObject'
Code: 800A01CE
Source: Microsoft VBScript runtime error

I am left with the same situation as the9thwonder, and asking the same questions in order to try to get this working. And, like 9th I am sure of the IP addresses and machine names. I am trying this on my local LAN, though I would ultimately like to implement this on my VLAN.

Anyone ever found the answer on this old thread?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Asus CM6630
OS
Windows 7 Pro x64
CPU
Intel(R) Core(TM) i5-3350P CPU @ 3.10GHz
Memory
6GB
Graphics Card(s)
ASUS HD7470 Series (onboard)
Hard Drives
500 GB
Antivirus
AVG Free
Browser
Chrome
Back
Top