Start Central Administration Via PowerShell

Start the Central Administration via PowerShell

To list the Central Admin list in Farm

Get-SPServiceInstance | Where-Object {$_.TypeName –eq ‘Central Administration’}

 following code will start the Central Admin if its not started, if its started and online already it will show you a warning message.

# This command loads the Microsoft.SharePoint.PowerShell DLL.
# This DLL is required if you are using Windows PowerShell.
if ((Get-PSSnapin $Snapin -ErrorAction SilentlyContinue) -eq $null)
Write-Host "Loading Snapin: $Snapin";
Add-PSSnapin $Snapin
Write-Host "Snapin already loaded: $Snapin";

Get-SPServiceInstance | Where-Object {$_.TypeName –eq ‘Central Administration’} | Start-SPServiceInstance

Hope this helps.  


Popular posts from this blog

ASP.NET website "Cannot read configuration file due to insufficient permissions" in IIS 7 and Windows Server 2008

Error occurred in deployment step 'Install app for SharePoint': The System Account cannot perform this action.

Windows Server AppFabric: installation error , While installing SharePoint prerequisite installer