Solved

NT Service 'Access denied'

Posted on 2004-04-02
4
346 Views
Last Modified: 2013-12-04
I have made a NT Service that is very simple.
Writes to a log on c:\temp\ and runs a COM component at a certain time.
When I try to start it on Services I get an 'Access denied' message.
Can you help me?
0
Comment
Question by:pmanso
  • 3
4 Comments
 
LVL 12

Accepted Solution

by:
trywaredk earned 500 total points
ID: 10739398
Choose properties on your service in servicemanager
Set it to run as system-account (builtin)

BTW: Anything in your eventlog about it?

Many Regards
Jorgen Malmgren
IT-Supervisor
Denmark

:o) Your brain is like a parachute. It works best when it's open
0
 
LVL 7

Expert Comment

by:Chatable
ID: 10740618
I know it's pretty dumb answer but are you running as Administrator?
(Only administrators can start/stop services by default...)
0
 
LVL 12

Expert Comment

by:trywaredk
ID: 10740784
Builtin and predefined groups in Windows 2000 Pro
http://www.microsoft.com/windows2000/en/professional/help/default.asp?url=/windows2000/en/professional/help/windows_security_default_settings.htm

Builtin and predefined groups in Windows XP
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/proddocs/lsm_local_groups.asp

members of the local admin group
1. Start / Run
2. Input CMD
3. Press ENTER
4. Input NET LOCALGROUP ADMINISTRATORS
5. Press ENTER
0
 
LVL 12

Expert Comment

by:trywaredk
ID: 10775784
:o) Glad I could help you - thank you for the points
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

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

735 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