Solved

Setting Security Policy => Log on as a service

Posted on 2002-05-31
4
189 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
Comment Utility
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
Comment Utility
You can use the "Net Add" command in your batch file to add users to specific groups.
0
 

Author Comment

by:Tougas
Comment Utility
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
Comment Utility
Glad I could help !
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now