-
-
Save eirikb/78df4e220782e7f9d9df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-PSSnapin Microsoft.SharePoint.PowerShell | |
clear | |
Write-Host "Starting..." | |
Start-SPAssignment -Global | Out-Null | |
try{Start-Transcript -Path "C:\Log\log-$((Get-Date).ToString('yyyy-MM-dd')).txt" -Append}catch {} | |
// HERE BE CODE | |
try{Stop-Transcript}catch{} | |
Stop-SPAssignment -Global | Out-Null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment