Voici une fonction PowerShell, basée sur un script posté par ZACHARY MILLIS sur son Blog : Create a SQL Alias with a PowerShell Script Il a été amélioré pour ajouter les exceptions via gestion d’erreur, et les mises à jour. Function AddSQLServerAlias { # SQL Server client alias Based on this message # From Zach's post: http://habaneroconsulting.com/Insights/Create-a-SQL-Alias-with-a-PowerShell-Script.aspx Try { [string]$AliasName = "SQLServerForSharePoint" [string]$ServerName = "MySQLServerFullQulifiedName" #$env:computername #These are the two Registry locations for the SQL Alias locations [string]$x86 = "HKLM:\Software\Microsoft\MSSQLServer\Client\ConnectTo" ...