Deny Access - NT 4.0
Is there a way to prevent one member of local Administrators group to logon locally?
This right must not be removed from the group itself and this user must be in Administrators group.
Any help would be appreciated.
Windows Forum
Is there a way to prevent one member of local Administrators group to logon locally?
This right must not be removed from the group itself and this user must be in Administrators group.
Any help would be appreciated.
The only way you could accomplish something similar would be if instead of giving the administrator group the logon locally right, you give each individual useraccount (ie the other admins) the logon locally right and remove the administator group from the list.
It has to be removed from the group, there is no other way.
regards,
Leopold
by vagab0nd
by turambar386
Because this is a right that can only be given or not given (as opposed to being able to be specifically rejected), there is no way to do this under NT.
Workarounds are: create a new group that contains all the admins except that one person, and assign the log on locally to the new group.
or
use the "Logon To" option in User Manager to assign which workstations that particular user can log onto.
Hope that helps.
by vagab0nd
This won't work, sorry. He HAS to be in local Admin group and and need to be able to logon as service and remotely so Logon to won't help also.
Thank you anyway.
by tamj123
There is no way to remove the Logon locally user right from the administrators group. You can prevent them from logging on locally by using NFTS permissions on the files listed at:
HKEY_LOCAL_MACHINE\HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Userinit
For each of these files (in %SystemRoot%\System32), grant the specific UserName (not a group) No Access. Make sure that at least one Admin Account can logon locally. The easiest way is to run a batch ( Nolocalaccess"Username"):
cacls %SystemRoot%\System32\nddagnt.exe /E /D "%1"
cacls %SystemRoot%\System32\userinit.exe /E /D "%1"
cacls %SystemRoot%\System32\win.com /E /D "%1"
cacls %SystemRoot%\System32\wowexec.exe /E /D "%1"
exit
hope this will help
by vagab0nd
Had no chance to try it but your answer is not ordinary so you get your points for interesting solution.
I changed the way to accomplish the task so I don't need this user any more.
Thanx for your time.
No way. Since the user belongs to the local administrator group, there's no way to prevent him to log on locally.
You have the chance to make another admin group with all permissions but with the logon locally disable.
You will loose in this casethe ability to be a local administrator of the workstations on the network.
Hope it helps
by vagab0nd
I know it already, a week of thorough testing made me shure in this.
Thanx for your efforts anyway.
by vagab0nd
This discussion is closed to new replies.
Sort by Trending