Powershell command to stop Project Application Service in a farm setup

Proposed Answer Powershell command to stop Project Application Service in a farm setup

  • Wednesday, May 02, 2012 2:57 PM
     
     

    hi,

    we have 2 project application servers in a single farm set-up.

    We have a request to start and stop "Project Application Service" using Powershell from an remote server.

    We know that we can use the following commands: "Start-SPServiceInstance -Identity" to start and stop the service, though we need to login in two servers thru RDP and run the command.

    Is there a way where we can provide the server name as a parameter to the above command?

All Replies

  • Wednesday, May 02, 2012 4:37 PM
     
     Proposed Answer

    Hi there,

    To find out the identity execute following command

    get-SPserviceinstance

    Look for Project Server Application Service and copy the ID

    Execute following command to stop the service

    Stop-SPServiceinstance -identity {paste ID here}

    To start the service

    Start-Spserviceinstance -identity {paste ID here}


    Hrishi Deshpande – DeltaBahn Senior Consultant
    Blog | < | LinkedIn

  • Wednesday, May 02, 2012 7:01 PM
     
     

    Hi there,

    Following on from the reply above, use the -server parameter only get the services from that particular server as shown below:

    Get-SPServiceInstance –Server <servername>

    Thanks

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com