PDA

View Full Version : remote desktop lock


Jefrey Silang
August 24th 05, 03:28 PM
i'm connecting from a windows xp sp2 to another windows xp sp2 thru remote
desktop. how can i send ctr+alt+del command to the remote pc to be able to
lock it. i dont want to use the screen saver of windows. thank in advance
for your help.

Torgeir Bakken \(MVP\)
August 24th 05, 03:44 PM
Jefrey Silang wrote:
> i'm connecting from a windows xp sp2 to another windows xp sp2 thru remote
> desktop. how can i send ctr+alt+del command to the remote pc to be able to
> lock it. i dont want to use the screen saver of windows. thank in advance
> for your help.
>
>
Hi,

You can use the following command:

rundll32.exe user32.dll,LockWorkStation

(note: the LockWorkStation part is case sensitive)



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Jefrey Silang
August 25th 05, 02:19 AM
Thanks a lot!

"Torgeir Bakken (MVP)" > wrote in message
...
> Jefrey Silang wrote:
>> i'm connecting from a windows xp sp2 to another windows xp sp2 thru
>> remote desktop. how can i send ctr+alt+del command to the remote pc to be
>> able to lock it. i dont want to use the screen saver of windows. thank in
>> advance for your help.
>>
>>
> Hi,
>
> You can use the following command:
>
> rundll32.exe user32.dll,LockWorkStation
>
> (note: the LockWorkStation part is case sensitive)
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx

Google