Re: WMI - User - Log On As A Service
From: Ryan Schreiber (rschreiber@deloitte.co.za)
Date: 02/18/03
- Next message: Beauclair Kempa: "Validate Serial Number"
- Previous message: Daniel Pravat [MSFT]: "Re: WMI - User - Log On As A Service"
- In reply to: Daniel Pravat [MSFT]: "Re: WMI - User - Log On As A Service"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Ryan Schreiber" <rschreiber@deloitte.co.za> Date: Tue, 18 Feb 2003 13:59:30 +0200
I've only managed to find examples in C++. Does anyone have a C# example
that is usable.
TIA,
Ryan
"Daniel Pravat [MSFT]" <dpravat@online.microsoft.com> wrote in message
news:#vO6uAy1CHA.1424@TK2MSFTNGP12...
> 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: Beauclair Kempa: "Validate Serial Number"
- Previous message: Daniel Pravat [MSFT]: "Re: WMI - User - Log On As A Service"
- In reply to: Daniel Pravat [MSFT]: "Re: WMI - User - Log On As A Service"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|