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


MrAlan

98 posts

Master Geek


#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
freitasm
BDFL - Memuneh
68890 posts

Uber Geek

Administrator
Trusted
Geekzone
Lifetime subscriber

#185294 20-Dec-2008 12:36
Send private message

Have you tried right-click and Run As...?




 

 

These links are referral codes

 

Geekzone broadband switch | Eletcricity comparison and switch | Hatch investment (NZ$ 10 bonus if NZ$100 deposited within 30 days) | Sharesies | Mighty Ape | Backblaze | Coinbase | TheMarket | My technology disclosure


freitasm
BDFL - Memuneh
68890 posts

Uber Geek

Administrator
Trusted
Geekzone
Lifetime subscriber

  #185295 20-Dec-2008 12:36
Send private message

Ooops, sorry, only saw the update later...




 

 

These links are referral codes

 

Geekzone broadband switch | Eletcricity comparison and switch | Hatch investment (NZ$ 10 bonus if NZ$100 deposited within 30 days) | Sharesies | Mighty Ape | Backblaze | Coinbase | TheMarket | My technology disclosure


Create new topic





News »

Huawei launches IdeaHub Pro in New Zealand
Posted 27-Oct-2020 16:41


Southland-based IT specialist providing virtual services worldwide
Posted 27-Oct-2020 15:55


NASA discovers water on sunlit surface of Moon
Posted 27-Oct-2020 08:30


Huawei introduces new features to Petal Search, Maps and Docs
Posted 26-Oct-2020 18:05


Nokia selected by NASA to build first ever cellular network on the Moon
Posted 21-Oct-2020 08:34


Nanoleaf enhances lighting line with launch of Triangles and Mini Triangles
Posted 17-Oct-2020 20:18


Synology unveils DS16211+
Posted 17-Oct-2020 20:12


Ingram Micro introduces FootfallCam to New Zealand channel
Posted 17-Oct-2020 20:06


Dropbox adopts Virtual First working policy
Posted 17-Oct-2020 19:47


OPPO announces Reno4 Series 5G line-up in NZ
Posted 16-Oct-2020 08:52


Microsoft Highway to a Hundred expands to Asia Pacific
Posted 14-Oct-2020 09:34


Spark turns on 5G in Auckland
Posted 14-Oct-2020 09:29


AMD Launches AMD Ryzen 5000 Series Desktop Processors
Posted 9-Oct-2020 10:13


Teletrac Navman launches integrated multi-camera solution for transport and logistics industry
Posted 8-Oct-2020 10:57


Farmside hits 10,000 RBI customers
Posted 7-Oct-2020 15:32









Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.