SIGN UP MEMBER LOGIN:    
ARTICLE

Managed Paths in SharePoint 2010 using PowerShell

Posted by Vijai Anand Articles | SharePoint February 01, 2011
In this article we will be seeing about Define Managed paths in SharePoint 2010.
Reader Level:


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.

    1.gif
     
  • In the ribbon, click on "Managed Paths" and you could see all the defined managed paths for the web application.

    2.gif

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.

    3.gif

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.

    4.gif
     
  • 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

    5.gif

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.

    6.gif
     
  • 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".

    7.gif

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
     

Login to add your contents and source code to this article
share this article :
post comment
 

Thank You sapna:-)

Posted by Vijai Anand Feb 02, 2011

The article is explained in a good way, great work.

Posted by Sapna Feb 01, 2011
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor