Sylver SCHORGEN Blog's

Articles, astuces et news sur les technologies Microsoft et plus particulièrement tournant autour de Powershell
  • [SharePoint] Modify SharePoint Web Application Name using PowerShell

    Hello,

     

    One of my client needed to rename one of its web application. For the exemple, the name of the web application was "Demi" and he wanted to rename it to "Demo". To modify the name of the web application, use the following commands :

    $webApplication=Get-SPWebApplication | where {$_.Name -eq "Demi"}
    $webApplication.Name="Demo"
    $webApplication.Update()

    To verify that the name has been correctly modify, you can use the following command : Get-SPWebApplication | where {$_.Name -eq "Demo"}

  • [SharePoint] Modifier le nom d'une application web en PowerShell

    Bonjour tout le monde,

     

    Lors d'une de mes dernières prestations, une application web SharePoint avait été déployée avec le mauvais nom. Pour l'exemple, on va dire qu'elle était nommée "Demi" au lieu de "Demo". Voici les commandes PowerShell à taper afin de modifier le nom d'une application web :

    $webApplication=Get-SPWebApplication | where {$_.Name -eq "Demi"}
    $webApplication.Name="Demo"
    $webApplication.Update()

    Une fois ces commandes entrées, nous pouvons vérifier le nom de l'application web en PowerShell avec la commande suivante : Get-SPWebApplication | where {$_.Name -eq "Demo"}