Skip to content

Instantly share code, notes, and snippets.

@jcallaghan
Last active October 24, 2019 14:59
Show Gist options
  • Save jcallaghan/f3eb26c10164a6aa3645f309d149dfaa to your computer and use it in GitHub Desktop.
Save jcallaghan/f3eb26c10164a6aa3645f309d149dfaa to your computer and use it in GitHub Desktop.
Administer managed paths in SharePoint using PowerShell. See https://jcallaghan.com/2011/11/working-with-managed-paths-in-sharepoint-using-powershell/ for more information. #Website
# Administer managed paths in SharePoint using PowerShell.
# https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/get-spmanagedpath?view=sharepoint-ps
# Get managed paths
Get-SPManagedPath -WebApplication https://sharepoint.jcallaghan.com
## New explicit managed path
New-SPManagedPath -RelativeURL "projectsdirectory" -Explicit -WebApplication https://sharepoint.jcallaghan.com
## New wildcard managed path
New-SPManagedPath -RelativeURL "projects" -WebApplication https://sharepoint.jcallghan.com
## Remove existing managed path
Remove-SPManagedPath "sites" -WebApplication https://sharepoint.jcallaghan.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment