Solved

Setting Security Policy => Log on as a service

Posted on 2002-05-31
4
192 Views
Last Modified: 2010-04-13
Hello all,
     I've created a service application with "srvany.exe" and i've set this service to Log On as a specific user, because it needed more then the Local System account. All of this process was done in a .bat file.

But after that, when i'm trying to start the service, it gives an error : "Error 1069 - The service did not start due to a logon failure".

This problem is caused because the user associated to the service is not part of the security policy "Log on as a service". Manually, i now how to add this user to solve the problem...
- but how can i add this user to this policy within a .bat file ??
- is there any application or utility that could do the job ??
- any programming type so that to the extreme i build my own .exe to do it ??

thanks in advance,
js
0
Comment
Question by:Tougas
  • 2
4 Comments
 
LVL 63

Accepted Solution

by:
SysExpert earned 450 total points
ID: 7047419
I would Check the win 2K resource kit, I'm sure there must be something in it that will help out.

Other places to search

http://www.sysinternals.com/

http://www.sysinternals.com/ntw2k/freeware/ntfsdospro.shtml  NTFS for DOS
http://www.systemtools.com/
http://www.winternals.com
 www.bhs.com
http://www.bhs.com/soft_index.asp

http://www.sunbelt-software.com/search_category.cfm


I hope this helps !
0
 
LVL 6

Expert Comment

by:st_steve
ID: 7048280
You can use the "Net Add" command in your batch file to add users to specific groups.
0
 

Author Comment

by:Tougas
ID: 7050774
Thanks a lot !
"http://www.bhs.com/" got me the perfect utility for it!!

I didn't know these Windows Utilities sites! I'm more of a programmer.... so i only know a lot of programming ones!

it really helped !

have a good week!
js
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 7052695
Glad I could help !
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question