You know how you have some of those users who need a shortcut to log off their session on your server? Well, now you can make them one.
Just create a “log me off.bat” file on the desktop and edit it to contain the following string: shutdown /l
Notice: This is the letter “l” and not the number 1.
When they double click on that, they are out!
Oh, you can also customize the shortcut and change the ugly icon of bat files to something more relevant to the purpose of the code.