Last active
October 24, 2019 14:59
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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