Send Email using Powershell

Recently having problems getting Windows Tasks to generate log files correctly. Ended up accepting email as a means of confirming actions have taken place with details that can be retrieved from a Sharepoint Document Library (suitably named “Logs”) function sendMail{ Read more ›

Categories

Get Summary of Sharepoint Task Status via Powershell

You might need to run this as administrator if your task size exceeds the soft limit. Add-PSSnapin Microsoft.SharePoint.PowerShell $sharepointSite = “http://my.sharepoint.website”; $spWeb = Get-SPWeb $sharepointSite; $spSite = Get-SPSite $sharepointSite; $result = New-Object PSObject; foreach($item in $spWeb.Lists[“Tasks”].Items) { $status = $item[“Status”].ToString(); Read more ›

Categories