Get SharePoint 2010 Managed paths with PowerShell

You created an environment with a couple of web applications that each have their own unique managed paths. With this PowerShell code you can view which managed paths you have used for each web application. You dont have to click trough SharePoint 2010 anymore.

This oneliner gets all managed paths per web application:

get-spwebapplication | %{$url = $_.url; write-host “`nWeb app: $($_.url)”; get-spmanagedpath -webapplication $_ | %{write-host ”     Type: $($_.type) – url: $($url)$($_.name)”}}

 

It first gets all web applications and displays the url, then it will get all managed paths per web application and displays the type and url.

image

Leave a Reply

Your email address will not be published. Required fields are marked *