How do I create a shortcut to Lock my Windows Server?

I know how to create a shortcut to lock a Windows XP/7 machine, but the same thing doesn't work on my server. How can i create a desktop shortcut to Lock my Windows Server?
Who is Participating?
arnoldConnect With a Mentor Commented:
I think if you create a .bat file with the contents being:
rundll32.exe user32.dll,LockWorkStation
It works on win2k3? Which server do you have?
What do you mean, running the rundll with a command or simply hitting the start+L?
coptechsAuthor Commented:
I want to be able to have a desktop shortcut/icon that when I double-click on it, it locks the server computer just as if I hit start+L

I know this can be done on a regular Windows OS, but the same command does not work on the server.
coptechsAuthor Commented:
Thanks Arnold. I was missing the "LockWorkStation" parameter. It works perfectly.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.