Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Managed Paths in SharePoint 2010 using PowerShell
WhatsApp
Vijai Anand Ramalingam
13y
21.4k
0
0
100
Article
In this article we will be seeing about Define Managed paths in SharePoint 2010.
In this article:
How to get all the managed paths for a web application
How to create a new managed path for a web application
How to remove a defined managed path from a web application
How to get all the managed paths for a web application:
Using Central Administration:
Go to Central Administration => Application Management => Manage web applications.
Select the web application for which you want to see all the defined managed paths.
In the ribbon, click on "Managed Paths" and you could see all the defined managed paths for the web application.
Using Powershell:
On the Start menu, click All Programs.
Click Microsoft SharePoint 2010 Products.
Click SharePoint 2010 Management Shell.
Type the following command.
Get-SPManagedPath -WebApplication "http://serverName:2010/"
All the defined managed paths for the web application will be retrieved as shown in the following.
How to create a new managed path for a web application:
Using Central Administration:
Go to Central Administration => Application Management => Manage web applications.
Select the web application for which you want to create a new managed path.
In the ribbon, click on "Managed Paths" and you could see all the defined managed paths for the web application.
Type the Path, for example "/HR".
Select the type of inclusion from the drop down.
Click on "Add Path", a new managed path is created successfully.
Using Powershell:
On the Start menu, click All Programs.
Click Microsoft SharePoint 2010 Products.
Click SharePoint 2010 Management Shell.
Type the following command to create a new managed path with "Wildcard inclusion".
New-SPManagedPath "/Chennai" -WebApplication "
http://serverName:2010/
"
Type the following command to create a new managed path with "Exclusion inclusion".
New-SPManagedPath "/Pune" -WebApplication "http://serverName:2010/" -explicit
How to remove a defined managed path from a web application:
Using Central Administration:
Go to Central Administration => Application Management => Manage web applications.
Select the web application for which you want to delete a defined managed path.
In the ribbon, click on "Managed Paths" and you could see all the defined managed paths for the web application.
Select the Managed path that you want to delete and click on "Delete selected Paths".
Using Powershell:
On the Start menu, click All Programs.
Click Microsoft SharePoint 2010 Products.
Click SharePoint 2010 Management Shell.
Type the following command to remove a managed path with confirmation prompt.
Remove-SPManagedPath -Identity "/Pune" -WebApplication "
http://serverName:2010/
"
Type the following command to remove a managed path without confirmation prompt.
Remove-SPManagedPath -Identity "/Pune" -WebApplication "http://serverName:2010/" -confirm:$false
Defined Managed Paths
Managed Paths
sharepoint
SharePoint 2010
Up Next
Ebook Download
View all
Configure MinRole Search and Cloud Hybrid Features in SharePoint Server 2016 and Office 365
Read by 1.6k people
Download Now!
Learn
View all
Membership not found