Basic Powershell scripts for SharePoint Developer
//Get error Log, with correlationID
get-splogevent | ?{$_.Correlation -eq "correlationIDhere"} | select Area, Category, Level, EventID,Message | Format-List > C:\myError.log
//Add Solution
Add-SPSolution -LiteralPath "C:\RKU\test.wsp"
//install solution
Install-SPSolution –Identity test.wsp –GACDeployment
//Update Solution
Update-SPSolution -Identity test.wsp -LiteralPath C:\RKU\test.wsp -GACDeployment
//Uninstall solution
Uninstall-SPSolution -Identity test.wsp
//Remove solution
Remove-SPSolution -Identity test.wsp
No comments:
Post a Comment