Like Us
Plus One
Follow Us
 Author Tahir Naveed  Views 797 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 948     
2017-May-25 SharePoint Online Page Load Time with JavaScript 643     
2016-Nov-02 Microsoft Graph vs Office Graph 712     
2016-Oct-26 Office365 Subsite Logo Redirection 767     
2016-Sep-14 PowerShell Script Analyzer 823     
2016-Jun-12 SharePoint DSC 922     
2016-Mar-10 SharePoint Online - JavaScript Injection with PowerShell 1053     
2016-Mar-03 SharePoint - Export/Import Subsite 933     
2016-Feb-10 SharePoint - PowerApps (Mobile Apps) 969     
2015-Dec-04 SharePoint - Responsive Design (Framework) 1259