Like Us
Plus One
Follow Us
 Author Tahir Naveed  Views 727 View Original Article

Description:Following powershell reads the list of site collections from the file and deleted them:Add-PSSnapin "Microsoft.SharePoint.PowerShell"function WriteLog{ Param([string]$message, [string]$logFilePath) Add-Content -Path $logFilePath -Value $message}$LogFile = "G:\DeletedSites.log"$ListFile = "G:\List.csv"$Sites = Import-CSV $ListFileForEach ($S in $Sites) { try { $URL = $S.URL $Now = [System.DateTime]::Now $MSG = $Now.ToString() + " | Deleting site…
View Original Article

Recent Articles from SharePoint Blue

Date Articles Visits
2017-Jun-12 Microsoft Flow - HTTP REST Call 847     
2017-May-25 SharePoint Online Page Load Time with JavaScript 558     
2016-Nov-02 Microsoft Graph vs Office Graph 630     
2016-Oct-26 Office365 Subsite Logo Redirection 679     
2016-Sep-14 PowerShell Script Analyzer 734     
2016-Jun-12 SharePoint DSC 824     
2016-Mar-10 SharePoint Online - JavaScript Injection with PowerShell 968     
2016-Mar-03 SharePoint - Export/Import Subsite 847     
2016-Feb-10 SharePoint - PowerApps (Mobile Apps) 886     
2015-Dec-04 SharePoint - Responsive Design (Framework) 1164