Use the resource kit utility called ntrights. Here is the syntax for this
util:
NTRights.Exe
Grants/Revokes NT-Rights to a user/group
usage: -u xxx User/Group
-m \\xxx machine to perform the operation on (default local machine)
-e xxxxx Add xxxxx to the event log
-r xxx revokes the xxx right
+r xxx grants the xxx right
valid NTRights are:
SeCreateTokenPrivilege
SeAssignPrimaryTokenPrivilege
SeLockMemoryPrivilege
SeIncreaseQuotaPrivilege
SeUnsolicitedInputPrivilege
SeMachineAccountPrivilege
SeTcbPrivilege
SeSecurityPrivilege
SeTakeOwnershipPrivilege
SeLoadDriverPrivilege
SeSystemProfilePrivilege
SeSystemtimePrivilege
SeProfileSingleProcessPrivilege
SeIncreaseBasePriorityPrivilege
SeCreatePagefilePrivilege
SeCreatePermanentPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeShutdownPrivilege
SeAuditPrivilege
SeSystemEnvironmentPrivilege
SeChangeNotifyPrivilege
SeRemoteShutdownPrivilege
I believe the right you want to add the users into is SeSystemtimePrivilege.
Thanks
Steve Roberts
<steve.roberts@mu To: "NT System Admin Issues"
ir.org.uk> <[EMAIL PROTECTED]>
cc:
08/24/2001 10:04 Subject: NTW system rights
AM
Please respond to
"NT System Admin
Issues"
> At the moment I have to manually add the system rights so a domain user
> can change the time via the login script. Is there any way to script this
> or do it via the command line with a batch file etc...
>
> Thanks in advance
>
> Steve
>
This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient or the person responsible
for delivering the email to the intended recipient, please immediately
notify the Muir Group IT Help Desk on +44 (0) 1244 606139
http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
http://www.sunbelt-software.com/ntsysadmin_list_charter.htm