Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

98 posts

Master Geek

Topic # 29040 20-Dec-2008 12:10
Send private message

I have recently updated one of my machines to Vista. I have a batch file which I need to run that uses the SC command but whenever I run it I get an Access Denied message.

The user I am logged in as is part of the Administrators group and has the necessary rights assigned to the services registry keys and if I open the services MMC snap-in and manual stop/start the service I have no problems. The access denied message only occurs when trying to stop/start a service from the command line using SC.

I have a feeling it has something to do with the Vista security thing that keeps prompting me to verify I'm an Administrator even when logged in as a user of the Administrators group and it not working in with command line functions or something. Strangely If I log in as the administrator and run the sc command then it works.

***edit: SOLVED***
It appears I was correct in thinking that the 'Administrator Approval Mode' was interfering with the ability to control services from the command line. For anyone else that is having the problem or that just wants to disable the constant prompting of Windows Vista confirming your status as an administrator you can turn it off by doing the following:
  --> Open Control Panel
  --> Open Administrative Tools
  --> Open the Local Security Policy
  --> Expand the Local Policies key
  --> Select Security Options
  --> Scroll to the bottom and find and disable 'User Account Control: Run All Administrators in Admin Approval Mode'

Create new topic
BDFL - Memuneh
60592 posts

Uber Geek
+1 received by user: 11525

Lifetime subscriber

BDFL - Memuneh
60592 posts

Uber Geek
+1 received by user: 11525

Lifetime subscriber

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08

Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03

Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27

Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13

Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00

Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12

Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52 to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34

Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07

All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21

Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54

Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15

IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12

New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17

Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.