programming4us
programming4us
WEBSITE

Sharepoint 2013 : Farm Management - Rename a Server on the Farm, Display the Configured Managed Paths

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
6/23/2014 8:56:50 PM

Rename a Server on the Farm


Scenario/Problem: You want to rename a server that participates in the SharePoint farm.


Solution: Use the Rename-SPServer cmdlet.

The Rename-SPServer cmdlet renames a server in the farm. However, note that it renames the server only from a SharePoint standpoint and does not actually rename the physical server. Use the current name as the Identity parameter and the new name for the Name parameter, as shown in Listing 1.

Listing 1. Renaming a Server on the Farm


Rename-SPServer -Identity "OldServerName" -Name "NewServerName"



Warning

If the rename procedure does not complete successfully, the server being renamed may no longer function as a SharePoint server. Running the SharePoint 2013 Products Configuration Wizard may resolve any issues; however, there is the potential of configuration database corruption forcing you to rebuild the SharePoint farm.



Display the Configured Managed Paths


Scenario/Problem: You need to display the current managed paths configured on a web application in the farm.


Solution: Use the Get-SPManagedPath cmdlet with an associated web application.

Issuing the Get-SPManagedPath cmdlet with the WebApplication parameter (as shown in Listing 2) displays all configured managed paths on the SharePoint farm, as shown in Figure 1.

Listing 2. Retrieving Configured Managed Paths


Get-SPManagedPath -WebApplication "SharePoint - 80"


Image

Figure 1. Get-SPManagedPath displays all configured managed paths.

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 3.

Listing 3. Creating a New Managed Path


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 explicit inclusion type, as shown in Listing 4.

Listing 4. Creating a New Managed Path with Explicit Inclusion


New-SPManagedPath -WebApplication "SharePoint - 80" -RelativeURL
"/departments/" -Explicit



Tip

You may also create a managed path using the HostHeader parameter instead of the WebApplication parameter. New-SPManagedPath has two parameter sets for this purpose.

Other  
  •  Sharepoint 2013 : Farm Management - Retrieve the System Accounts, Retrieve Managed Accounts
  •  Sharepoint 2013 : Farm Management - Refresh Installed Products,Change the Port of Central Admin,Change the Farm Passphrase
  •  Sharepoint 2013 : Farm Management - Review Farm Configuration Values,Set the Farm Configuration Values
  •  Web User’s Best Buys March 2014
  •  Sharepoint 2013 : Using SkyDrive Pro - Discontinuing sync between SkyDrive Pro and your local device
  •  Sharepoint 2013 : Using SkyDrive Pro - Locating followed documents by using SkyDrive Pro, Synchronizing SkyDrive Pro to your local computer
  •  Sharepoint 2013 : Using SkyDrive Pro - Following SkyDrive Pro documents, Locating followed documents by using the newsfeed
  •  Sharepoint 2013 : Using SkyDrive Pro - Sharing SkyDrive Pro files
  •  Sharepoint 2013 : Using SkyDrive Pro - Saving files to be accessible only to you
  •  Sharepoint 2013 : Using SkyDrive Pro - Accessing your SkyDrive Pro account, Saving files to SkyDrive Pro
  •  
    Top 10
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
    - Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
    - Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    programming4us programming4us
    programming4us
     
     
    programming4us