The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Lock workstation & Group policy - Windows 7 64-bit

    Discussion in 'Windows OS and Software' started by aKarma, May 14, 2009.

  1. aKarma

    aKarma Notebook Enthusiast

    Reputations:
    0
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    15
    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?
     
  2. surfasb

    surfasb Titles Shmm-itles

    Reputations:
    2,637
    Messages:
    6,370
    Likes Received:
    0
    Trophy Points:
    205
    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.
     
  3. surfasb

    surfasb Titles Shmm-itles

    Reputations:
    2,637
    Messages:
    6,370
    Likes Received:
    0
    Trophy Points:
    205
    Odd, I tried it on my Win7 VM and it works fine. You might want to double check it.
     
  4. aKarma

    aKarma Notebook Enthusiast

    Reputations:
    0
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    15
    The command works on its own. But for whatever reason it does sod all in the group policy :(
     
  5. aKarma

    aKarma Notebook Enthusiast

    Reputations:
    0
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    15
    Bump :p

    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?
     
  6. aKarma

    aKarma Notebook Enthusiast

    Reputations:
    0
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    15
    (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 :p)

    Anyone have any suggestions?