Powershell.exe is not starting or stopping any windows services??


  • Hi,

    I am using windows vista Business Edition. I installed PowerShell 1.0 on my machine...

    I am running start-service sqlserveragent command , but powershell.exe could not able to start the service.. i m getting the below errror:

    PS C:\Users\Khaja> start-service sqlserveragent

    Start-Service : Service 'SQLSERVERAGENT (SQLSERVERAGENT)' cannot be started due to the following error: Cannot open SQL
    SERVERAGENT service on computer '.'.
    At line:1 char:14
    + start-service <<<<  sqlserveragent

    Basically through my powershell.exe i am not able to start or stop any service.

    please help me regarding this,, it is highly appreicated..

    Saturday, November 22, 2008 6:27 PM


All replies

  • Are you starting the PowerShell console with elevated privileges (as administrator)?

    Saturday, November 22, 2008 8:13 PM
  • Thanks Marco.. I am running my powershell window with administrator privilage it is resolved,,, thanks a lot :)
    Tuesday, November 25, 2008 9:04 AM