programming4us
programming4us
WEBSITE

Sharepoint 2013 : Farm Management - Refresh Installed Products,Change the Port of Central Admin,Change the Farm Passphrase

6/23/2014 8:53:45 PM

Refresh Installed Products


Scenario/Problem: You need to ensure that the SharePoint products installed on a farm server are properly registered.


Solution: Use the Set-SPFarmConfig cmdlet with the InstalledProductsRefresh switch parameter.

Using the InstalledProductsRefresh switch parameter with the Set-SPFarmConfig cmdlet refreshes the current server’s license state with the products installed on the SharePoint farm. Listing 1 shows a sample command line.

Listing 1. Refreshing the Installed Products


Set-SPFarmConfig -InstalledProductsRefresh

Change the Port of Central Admin


Scenario/Problem: You want to change the HTTP port value for Central Administration.


Solution: Use the Set-SPCentralAdministration cmdlet with the Port parameter.

The Set-SPCentralAdministration cmdlet is used solely to change the port number configured for the Central Administration web application. Provide a valid port number, as shown in Listing 2.

Listing 2. Changing the Port of Central Admin


Set-SPCentralAdministration -Port 20222

Change the Farm Passphrase


Scenario/Problem: You want to change the farm passphrase.


Solution: Use the Set-SPPassPhrase cmdlet with the PassPhrase parameter.

The Set-SPPassPhrase cmdlet is used solely to change the SharePoint farm passphrase. This passphrase was initially entered during the installation of the SharePoint farm. Provide a secure string value with the PassPhrase parameter, as shown in Listing 3.

Listing 3. Changing the Farm Passphrase


Set-SPPassPhrase -PassPhrase (ConvertTo-SecureString -asplaintext
-force -string "SharePoint1")


For scripting purposes, if you do not want to be prompted to confirm the passphrase entry, include the ConfirmPassPhrase parameter and switch off the general confirmation, as shown in Listing 4.6.

Listing 4.6. Changing the Farm Passphrase Without Prompts


Set-SPPassPhrase -PassPhrase (ConvertTo-SecureString -asplaintext
-force -string "SharePoint1") -ConfirmPassPhrase
(ConvertTo-SecureString -asplaintext -force -string "SharePoint1")
-Confirm:$false



Tip

The default operation performs the passphrase modification for the entire farm. If you run into issues, use the LocalServerOnly switch parameter to perform the modification on only the current server. Continue on each server in the farm to pinpoint the problem.

Other  
  •  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
  •  PowerShell for Microsoft SharePoint 2010 : Flow Control and Object Disposal - Object Disposal
  •  PowerShell for Microsoft SharePoint 2010 : Flow Control and Object Disposal - Flow-Control Cmdlets
  •  
    Video
    PS4 game trailer XBox One game trailer
    WiiU game trailer 3ds game trailer
    Top 10 Video Game
    -   Minecraft Mods - MAD PACK #10 'NETHER DOOM!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
    -   Minecraft Mods - MAD PACK #9 'KING SLIME!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
    -   Minecraft Mods - MAD PACK #2 'LAVA LOBBERS!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
    -   Minecraft Mods - MAD PACK #3 'OBSIDIAN LONGSWORD!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
    -   Total War: Warhammer [PC] Demigryph Trailer
    -   Minecraft | MINIONS MOVIE MOD! (Despicable Me, Minions Movie)
    -   Minecraft | Crazy Craft 3.0 - Ep 3! "TITANS ATTACK"
    -   Minecraft | Crazy Craft 3.0 - Ep 2! "THIEVING FROM THE CRAZIES"
    -   Minecraft | MORPH HIDE AND SEEK - Minions Despicable Me Mod
    -   Minecraft | Dream Craft - Star Wars Modded Survival Ep 92 "IS JOE DEAD?!"
    -   Minecraft | Dream Craft - Star Wars Modded Survival Ep 93 "JEDI STRIKE BACK"
    -   Minecraft | Dream Craft - Star Wars Modded Survival Ep 94 "TATOOINE PLANET DESTRUCTION"
    -   Minecraft | Dream Craft - Star Wars Modded Survival Ep 95 "TATOOINE CAPTIVES"
    -   Hitman [PS4/XOne/PC] Alpha Gameplay Trailer
    -   Satellite Reign [PC] Release Date Trailer
    Game of War | Kate Upton Commercial
    programming4us
     
     
    programming4us