none
[SC] OpenSCManager FAILED 5: Access is denied.

    Question

  • Hi guys,
    above error raised when i try to execute the command " sc \\server1 query messenger" from a windows XP host.
    server1 is a windows 2003 sp1 standard edition server.

    But I can execute the same command for server2, server3 etc. where server2 and server3 have the same OS as in server1.

    please let me know what are the steps (changes) should be taken to work above command in server1?


    Friday, November 06, 2009 6:15 AM

Answers

  • Hi,

    Please run the command with an account that is member of domain admins group and check the result.


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, November 10, 2009 10:35 AM
    Moderator

All replies

  • Hi,

    Please run the command with an account that is member of domain admins group and check the result.


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, November 10, 2009 10:35 AM
    Moderator
  • hi Bujacmb Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
    did running as domain admins fix your problem?
    Wednesday, December 30, 2009 6:30 AM
  • it did work for me when an account  is member of domain admins group. Win2k8 seems to be case sensitive on the service names where as win2k3 is not. make sure you get the service name correctly.

    - Kaladhar B 

    Tuesday, August 17, 2010 12:06 PM
  • Hi,

    My requirement is to execute window service command in cmd as administrator using C#.

     I tried to give passord but it unable to accept as string.
    Please provide sample code to run  cmd as admin  in C#.

    Thanks in advance


    • Edited by Ganbote Monday, July 08, 2013 1:07 PM To exectude cmd command in C#
    Monday, July 08, 2013 1:04 PM
  • Can someone help with code so as to open the batch file cmd as Admin

    Thanks in advance, Jis

    Wednesday, January 01, 2014 9:37 AM