509.949.2162 jeremy@bondbyte.com

Run C# code in PowerShell

Ever wanted to run a snippet of C# code in PowerShell? Some times this is useful for testing code in environments without requiring a full deployment of software. This can also be used and an advanced troubleshooting technique. Open a PowerShell Prompt with Elevated...
Error occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available.

Powershell – Get Site Template ID

The following PowerShell script will return Template Name and the Internal ID. $url = “http://sp2013/” $site= new-Object Microsoft.SharePoint.SPSite($url ) $loc= [System.Int32]::Parse(1033) $templates= $site.GetWebTemplates($loc) foreach ($child in $templates){...