ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

how to use alias / cmd lock pc

(1/1)

beethoven:
I would like to use FA to activate a screensaver on command (when I leave my pc) and have this screensaver password protect my pc.
Noticing in FA  under alias a cmd function that allows for the activation of the screensaver and also a function to lock pc. Can someone please tell me
a) what exactly happens when I use : lock PC | c:\windows\nircmd.exe lockws. I am a bit too scared to test it not knowing if I can unlock it again.
b) assuming that this allows me to lock my pc, how to combine this with my screensaver command and where I would have to set up the lock and unlock commands.

   8)

Babis:
The best way to lock pc is to create a shortcut for:


--- ---%windir%\system32\rundll32.exe user32.dll,LockWorkStation
then place the shortcut in "My Documents" folder or wherever you like and name it somth easy to remember, such as "lock pc" and finally launch FARR and type lock pc.

nontroppo:
a) what exactly happens when I use : lock PC | nircmd.exe lockws. I am a bit too scared to test it not knowing if I can unlock it again.
-beethoven (August 19, 2006, 11:44 PM)
--- End quote ---

Don't be scared! ;) All it does is go to the login screen where you have to type your password — it is a standard windows thing nothing custom. You can get nircmd to ask a question first; for example:


--- ---reboot | c:\windows\nircmd.exe qboxcom "Do you want to lock your workstation?" "question" lockws
b) assuming that this allows me to lock my pc, how to combine this with my screensaver command and where I would have to set up the lock and unlock commands.-beethoven (August 19, 2006, 11:44 PM)
--- End quote ---

You don't need both, just get nircmd to run your screensaver (after configuring it to ask password) and the screensaver will ask for your password, so:


--- ---screensaver | c:\windows\nircmd.exe screensaver
is all you need...

Navigation

[0] Message Index

Go to full version