Azure PowerShell cmdlets don’t like string values with upper-case or special characters, so you need to “sanitize” them before sending them to any of Azure’s PowerShell cmdlets. Yes, I know, there are *SOME* Azure PowerShell cmdlets that work just fine with mixed-case string values; but, ask yourself this question: do I really want to waste […]
I recently ran across a situation in which I had to verify that some C# code designed with the objective of taking an instance of a C# object representing a Country and converting it to equivalent JSON string notation still worked as we transitioned some custom C# code (.Net Framework 3.5 SP1) from SharePoint 2007 (Visual […]
There are thousands of articles on the internet and dozens of books about how to read an XML file (or other source) using the built-in [xml] capabilities of PowerShell (version 2.0, the most widely used). The best way to illustrate why so many of those articles and books are flat out wrong is to illustrate with […]
Thou shalt make sure thou art a Site Collection Administrator when running STSADM -o ActivateFeature that creates new sites or else thou art doomed to suffer painfully with Access Denied errors and half-baked sites. On 2011-05-27. on a SharePoint 2007 SP2 project I was working on, the Farm Administrator was running a series of STSADM commands […]
I’ve seen a lot of information about how to run a PowerShell script from inside a BAT file, but most seem very outdated, using the “&” (ampersand) character together with a difficult to remember set of single and double quotes. For me at least, the simple answer is something like the following, where we assume […]
restart all SharePoint services via a single line of PowerShell
Disable unused SQL Server Jobs after reconfiguring your SharePoint SSP’s.