Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In this question I figured out how to disable the Lock feature in Windows XP throught the registry. Just by creating a DWORD key named DisableLockWorkstation with value 1 in:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System

But in this solution, the current user can also re-enable this feature in the same way (by setting the value of DisableLockWorkstation to 0 or even deleting it).

I know there is ACLs for registry and it is possible to restrict the user access and deny write access to this path. But I am searching for a simpler solution.

Is there any other solution to disable lock feature (for example by setting a value in HKLM instead of HKCU hive)?

share|improve this question
1  
I'm curious as to why you think using ACL's for this is not simple, it seems fairly trivial to me. Also it might help clarify your thinking if you would explain why you need to disable the locking feature, is this a shared user environment where users might try to hog the systems by locking them? –  Helvick Jan 30 '10 at 18:26
    
ACL's are simple in by using GUI of windows. But i should disable/enable lockworkstation programatically. –  Isaac Jan 31 '10 at 7:16

1 Answer 1

up vote 1 down vote accepted

If the user has "Administrator" rights then there's nothing you can do to prevent them from making any changes they want to the computer.

Assuming you're doing the Right Thing(tm) and your user accounts are all limited users, setting this value (hopefully using the Group Policy setting "Remove Lock Computer" from User Configuration / Administrative Templates / System / Ctrl-Alt-Del Options) will do fine.

By default, inheritance is blocked and an ACL placed in the user's registry at "HKCR\Software\Microsoft\Windows\CurrentVersion\Policies" to grant the user "Read" access only to that subtree. Microsoft already though of what you're thinking about and prepared for me... >smile<

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.