Posts

Showing posts from March, 2015

STSADM Cmds for Cancel and redeploy Farm Solution

STSADM Cmds for Cancel and redeploy Farm Solution

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\BIN>
stsadm -o execadmsvcjobs stsadm -o enumdeployments stsadm -o canceldeployment -id stsadm -o deletesolution -name .wsp -override

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.

cls
# This command loads the Microsoft.SharePoint.PowerShell DLL.
# This DLL is required if you are using Windows PowerShell.
[string]$Snapin="Microsoft.SharePoint.PowerShell"
if ((Get-PSSnapin$Snapin-ErrorActionSilentlyContinue) -eq$null)
{
Write-Host"Loading Snapin: