Command to Lock XP Workstation.

Apart from the common ways of locking an XP workstation, another way is to run the following command:

%windir%\System32\rundll32.exe user32.dll,LockWorkStation

To create a script that includes this command:

On Error Resume

NextSet objShell = CreateObject(“Wscript.Shell”)
objShell.Run “%windir%\System32\rundll32.exe user32.dll,LockWorkStation”

To enable the script to run on a remote computer see the following link…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: