The other day, instead of reset (Stop and then Start again) the Business Data Connectivity Service in Services on Server page, I accidentally stop the Central Administration Service (well we are all human...) So I turned to PowerShell again...
List all SharePoint Services on the Server
Get-SPServiceInstance
To Start and Stop a SharePoont service you need
Start-SPServiceInstance [GUID] -Confirm
Stop-SPServiceInstance [GUID] -Confirm
Or You can pipe the Service Name to filter the Type Name and confirm your action.
Get-SPServiceInstance | Where-Object {$_.TypeName –eq ‘Central Administration’} | Start-SPServiceInstance -Confirm
This should save a day :)
No comments:
Post a Comment