Last active
January 8, 2019 15:07
-
-
Save andikrueger/9d16a2c88c3c6e39f203f049723dea04 to your computer and use it in GitHub Desktop.
Create a SQL Server Alias basd on Configuration Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ConfigurationData.NonNodeData.SqlServerAlias | ForEach-Object -Process { | |
SqlAlias $_.Name | |
{ | |
Name = $_.Name | |
ServerName = $_.ServerName | |
Protocol = $_.Protocol | |
UseDynamicTcpPort = $_.UseDynamicTcpPort | |
TcpPort = $_.TcpPort | |
Ensure = 'Present' | |
PsDscRunAsCredential = $SpSetupAccount | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment