Article View: borland.public.cppbuilder.nativeapi
Article #4441Re: Create a account and Add Run as Service
From: Remy Lebeau (TeamB)
Date: Tue, 24 Jan 2006 17:20
Date: Tue, 24 Jan 2006 17:20
19 lines
1577 bytes
1577 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:43d636c5@newsgroups.borland.com... > Hi all, I need to programatically create an admin > account with 'Run as Service' privileges. Look at the Net...() functions, such as NetUserAdd() and NetUserSetGroups(). Have a look at #Q140165 (http://support.microsoft.com/kb/140165/en-us) for considerations regarding creating new accounts programmably. > I want to install a service but not run it in the LOCAL SYSTEM > account but another account with fewer privileges. There are pre-installed accounts for that, such as LOCALSERVICE and NETWORKSERVICE. Gambit
Technical Details
Message-ID:
<43d66234$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43d636c5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,93314a3c4240bc37 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43d636c5@newsgroups.borland.com> Subject: Re: Create a account and Add Run as Service Date: Tue, 24 Jan 2006 09:20:58 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43d66234$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138123316 68.69.17.41 (24 Jan 2006 09:21:56 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail