Friday, May 29, 2015

Get Active sites from content database in PowerShell

Get Active sites from content database in PowerShell

$Sites = Get-SPSite -ContentDatabase -Limit All -Filter {$_.LockState -ne "NoAccess"}
$Sites | Export-CSV ".\sites.csv" -NoTypeInformation

Select and Delete text vertically in bigger text OR flat file

If you want to Select and Delete text vertically in bigger text OR any flat file use below command to do it. Example below: A BCEDF CDEF...