Solved

Setting Security Policy => Log on as a service

Posted on 2002-05-31
4
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

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…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

624 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