Re: WMI - User - Log On As A Service
From: Daniel Pravat [MSFT] (dpravat@online.microsoft.com)
Date: 02/18/03
- Next message: Ryan Schreiber: "Re: WMI - User - Log On As A Service"
- Previous message: Joe Kaplan: "Re: Security at an object instance"
- In reply to: Ryan Schreiber: "WMI - User - Log On As A Service"
- Next in thread: Ryan Schreiber: "Re: WMI - User - Log On As A Service"
- Reply: Ryan Schreiber: "Re: WMI - User - Log On As A Service"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Daniel Pravat [MSFT]" <dpravat@online.microsoft.com> Date: Mon, 17 Feb 2003 23:34:57 -0800
WMI does not expose the apis required to accomplish this.
You can look into P/Invoke LsaAddAccountRights.
-- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "Ryan Schreiber" <rschreiber@deloitte.co.za> wrote in message news:uunfFJq0CHA.1636@TK2MSFTNGP10... > I'm using WMI to create a user account, register an application as a NT > service and set the RunAs user for this service. The user created doesn't > have the "Log On As A Service" right and the service then fails to start > with a permission error. > > Is there any way of giving the user this permission programmatically via WMI > (or something else)? > > Thanx, > Ryan > >
- Next message: Ryan Schreiber: "Re: WMI - User - Log On As A Service"
- Previous message: Joe Kaplan: "Re: Security at an object instance"
- In reply to: Ryan Schreiber: "WMI - User - Log On As A Service"
- Next in thread: Ryan Schreiber: "Re: WMI - User - Log On As A Service"
- Reply: Ryan Schreiber: "Re: WMI - User - Log On As A Service"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|