I've been having my computers auto-logon and then lock using a .cmd file containing "%windir%\System32\rundll32.exe user32.dll,LockWorkStation" added under the start up group policies.
However, on my 64-bit win7 this doesn't do anything. As in it logs on, but does not lock. I know the .cmd works as it locks when I run it individually, and I have also tried using the .cmd "%windir%\SysWOW64\rundll32.exe user32.dll,LockWorkStation", which makes no difference.
Does anyone know why this doesn't work? Is there a different command for 64-bit or something?
-
I know it doesn't work on x64 vista because LockWorkStation was never intended to be used from the command line in this manner. I don't remember the solution, but I can try to dig up where I read that.
-
Odd, I tried it on my Win7 VM and it works fine. You might want to double check it.
-
The command works on its own. But for whatever reason it does sod all in the group policy
-
Bump
Btw, I have also tried using a .vbs file, which again works when ran, but not from group policy. Is group policy disabled by default or something? -
(Bump)
Having now got Windows 7 RC 32bit on another computer, I can confirm it doesn't work on 32bit either so I'm now pretty sure the issue is with group policy (+me trying to use it)
Anyone have any suggestions?
Lock workstation & Group policy - Windows 7 64-bit
Discussion in 'Windows OS and Software' started by aKarma, May 14, 2009.