Examples/Resources/SqlServerReplication/1-ConfigureInstanceAsDistributor.ps1
<#
.EXAMPLE This example shows how to configure a SQL Server instance as the distributor. #> Configuration Example { param ( [Parameter(Mandatory = $true)] [System.Management.Automation.PSCredential] $SqlAdministratorCredential ) Import-DscResource -ModuleName SqlServerDsc node localhost { SqlServerReplication distributor { Ensure = 'Present' InstanceName = 'MSSQLSERVER' AdminLinkCredentials = $SqlAdministratorCredential DistributorMode = 'Local' WorkingDirectory = 'C:\Temp' PsDscRunAsCredential = $SqlAdministratorCredential } } } |