Create a New Managed Path
Scenario/Problem: You want to create a new managed path in a web application on the SharePoint farm.
Solution: Use the New-SPManagedPath
cmdlet.
Using the New-SPManagedPath
cmdlet enables you to create a new managed path on the specified web application, as shown in Listing 4.11.
New-SPManagedPath -WebApplication "SharePoint - 80"-RelativeURL "/teamsites/"
The forward slashes (/
) in the name of the managed path are optional but provide a visual queue (similar to manually creating a managed path through Central Administration).
By default, the managed path is created as a wildcard inclusion type. You can use the Explicit
switch parameter to generate the managed path as an ...
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.