Re: "Log on as a service" policy
From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 12/16/03
- Next message: Shawn Lawrence: "Re: Restricting Access..."
- Previous message: Bob Brannon: "Re: My Document folder"
- In reply to: TC: ""Log on as a service" policy"
- Next in thread: IBTerry [MSFT]: "RE: "Log on as a service" policy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 16 Dec 2003 15:48:51 +0100
TC wrote:
> How can I change the Policy "Log on as a service" without using the "Local Security Settings" snapin ?
> I need to change this policy as part of an installation where a new service user is added for running of a service. This user must then be added to the "Log on as a service" user list.
>
> Is there any way to do this with a command line tool ? I have tried to look at secedit.exe but due to lack of documentation from MS I couldn't figure out how to do this.
Hi
You can do a call-out to the resource kit tool ntrights.exe for this I
would think:
ntrights.exe +r SeInteractiveLogonRight -u <username/groupname>
How to Set Logon User Rights with the Ntrights.exe Utility
http://support.microsoft.com/?kbid=279664
How to: Determine NTRIGHTS Names and Meanings
http://support.microsoft.com/?kbid=245207
Ntrights.exe is in the free Win2k3 resource kit (it works on Win2k as
well):
Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
(The kit will install on WinXP or later)
-- torgeir Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter
- Next message: Shawn Lawrence: "Re: Restricting Access..."
- Previous message: Bob Brannon: "Re: My Document folder"
- In reply to: TC: ""Log on as a service" policy"
- Next in thread: IBTerry [MSFT]: "RE: "Log on as a service" policy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|