Archive

Posts Tagged ‘Remoting’

HowTo: Reboot remote Windows computer with unresponsive RDP

I recently had an issue with an older Windows Server 2008 R2 server that couldn’t logout which had resulted to Remote Desktop not connecting to it anymore (not even with the “admin session” option). Luckily I had an admin go and physically cycle its power since it was a physial one without any lower level control available.

When the same issue occured at its twin machine, I decided before asking for another physical intervention to first try various other ways to reboot it remotely (e.g. via Windows Shutdown command and via the Computer Management console), but to no avail.

Eventually what worked was SysInternals PsShutdown tool. The syntax I used was:

PsShutdown –u AdminUserName –p AdminPassword –f –r \\MachineIPaddress

According to its command-line reference:

-u
Specifies optional user name for login to remote computer.

-p
Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.

-f
Forces all running applications to exit during the shutdown instead of giving them a chance to gracefully save their data.

-r
Reboot after shutdown.

I could maybe have used

-o
Logoff the console user.

instead of –r, but it didn’t help when I first tried without the –f option.

Guess if I had passed –f too in the first place with –o it might have worked, but it never hurts to do a reboot, unless you have any critical services you’re not sure will restart correctly. However, I would worry more about such a thing on a Unix machine rather than on a Windows one where periodic rebooting usually gives a “breath of fresh air” to the OS.

Most probably some application was preventing logoff, however I’d expect Remote Desktop / Terminal Service to be more robust in such a case.

HowTo: Group offline computers in separate group at TeamViewer

TeamViewer is a very handy remote control / remote support and screen sharing application with a free version for personal use only. I’ve been using it for some time now since friends and family tend to contact me for support issues and I’m very pleased with its simple installation and use (a user can even run it without installing it on their machine – if they choose to install it they can optionally select to have it also work unattended, where the remote controller can even see and use the system login screen).

Having many computers grouped in my contact list (I use a group for my home machines, one for family contacts and one for machines of friends), I prefer to tell it to show offline machines at a separate group. That option is available at “TeamViewer options” dialog, at “Computer & Contacts”, as shown below:

TeamViewer_GroupOfflineContacts

On the left image below you can see (obviously I’ve hidden machine aliases from my contacts list) how contacts appear by default, and on the right you can see Offline Computers grouped separately, letting you easily focus onto online ones and easily see if a certain computer has come up online (btw TeamViewer by default also shows you Toast notifications at the taskbar tray when contacts go online).

TeamViewer_OfflineComputersInAnyGroupTeamViewer_OfflineComputersInSeparateGroup

Categories: Posts Tags: , , , ,
%d bloggers like this: