Add the SharePoint snap in :
Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
Set a path :
Set-location "path"
Output the PS command in a formatted table
"randomPS-command" | Format-Table –AutoSize
Check DB status for upgrade status
Get-SPDatabase | ?{$_.NeedsUpgrade –eq $true} | Select Name
Install SP Solution to all web applications
Add-SPSolution -LiteralPath "c:\source\CodeMonkeySolution.wsp"
Install SP Solution to all web applications, to the GAC and force it in
Install-SPSolution -Identity CodeMonkeySolution.wsp -allwebapplications -GACDeployment -force
No comments:
Post a Comment