"Sanitize" New-AzureStorageAccount's -StorageAccountName Parameter

If you automate New-AzureStorageAccount in a PowerShell script you ensure you only lowercase letters and digits for the value of the -StorageAccountName parameter. If you base that value on other parameters or variables (for example the name of one of your websites)...

PowerShell one-liners to identify large Workflow History lists

One-liners PowerShell script that will identify all Workflow History lists in the farm: $farm = Get-SPFarm; $websvcs = $farm.Services | where -FilterScript {$_.GetType() -eq [Microsoft.SharePoint.Administration.SPWebService]}; foreach ($websvc in $websvcs) { foreach...

PowerShell one-liner to populate a SharePoint 2010 document library

One-liner Just replace the values in $webName, $docLibName, $docFileName and $docCount with the website URL of your existing site, the existing document library you want to populate, the existing document you want to use for all items created, and the number of items...
Bitnami