Archive for category How To

How-To log off a user from remote computer

If you work in IT, I’m sure you’ve run across a time that you needed to log off a user from a remote computers – even if it’s yourself (especially when it’s time to change your password).  Personally, I have to change my network password every 30 days, and there are times that I may be logged into any of 150 computers.  I try to remember to use the log off button, but sometimes, I have idle sessions on computers.

This being said, I needed a way to log off any session I was logged into, in a list of computers I knew I might be logged into.  My first thought was to use PSLOGGEDON.exe (from Sysinternals) which is a fantastic tool, but I don’t want to search the entire domain, plus I might be logged in to multiple domains.

So, I found a nice little utility built right into windows – quser.exe

image

Quser.exe can be used to show what user is logged in to a remote computer, as well as the localhost.  Use quser.exe /SERVER:servername to query a remote system.

image

If you want to specify just one user account instead of finding all users logged in, user this syntax:  quser.exe user6 /SERVER:servername

image

Now to log off this user, or session, you can use another built-in utility in Windows – Logoff.exe

Logoff.exe can either log off a session ID, or SessionName remotely – not by username (username works locally though).   The syntax is similar to quser.exe:

LOGOFF [sessionname | sessionid] [/SERVER:servername]

So to log off user6 from the example above, I can use either the session name (rdp-rcp#443 – or I can use the ID – 2 – I’ll go with the ID

loggoff 2 /SERVER:server1

image

That was easy!  Now, to check to see if I’m logged any of the 150 servers I manage, I create a quick bat file using excel (more on that here) and now I can run it at any time, and see what remote systems I’m logged into, and log my session off if needed.

This is a really simple way to do this, but if you have another way to do it, please post below!  I’d love to see how you handle this problem!

No Comments

New “How To” posted

Have you backed up your pictures lately? or ever?  Go read the newest How To, and get to backing up those pictures!

Read:  How to backup your pictures using Picasa

No Comments

New How-To added: How to secure your wireless network

image

Most wireless networks are unsecured, which can cause major security concerns.  Go check out the new How To here on EverydayNerd.com

How to Secure your Wireless Network ]

No Comments

New How-to added: 10 ways to protect your computer from Malware

Just added – 10 ways to protect your computer from Malware

No Comments

Create a font of your own handwriting

I was just talking to some friends of mine that past week, and we were talking about how hard it is to write letters, and how much easier it is to type them.  I’ve seen commercial software that does this before, but I found a website that does it for free!  Print the template page, write each letter out, scan it to your computer, upload to their website, and BAM!  There’s your font!

My handwriting is pretty messy, and I did the template in a hurry with a fat sharpie (I’d use a fine tip sharpie if I were you) and this is what the outcome is:

image

This sure makes letter writing a whole lot easier!!!

[ Font Capture ]

No Comments