diff --git a/dbatools.psm1 b/dbatools.psm1 index 509259ee66..d8c63068f0 100644 --- a/dbatools.psm1 +++ b/dbatools.psm1 @@ -295,6 +295,18 @@ $forever = @{ foreach ($_ in $forever.GetEnumerator()) { Set-Alias -Name $_.Key -Value $_.Value } + +# Replication Aliases +$replAliases = @{ + 'Get-DbaRepServer' = 'Get-DbaReplServer' + 'Export-DbaRepServerSetting' = 'Export-DbaReplServerSetting' + 'Get-DbaRepDistributor' = 'Get-DbaReplDistributor' + 'Test-DbaRepLatency' = 'Test-DbaReplLatency' + 'Get-DbaRepPublication' = 'Get-DbaReplPublication' +} +foreach ($_ in $replAliases.GetEnumerator()) { + Set-Alias -Name $_.Key -Value $_.Value +} #endregion Aliases # apparently this is no longer required? :O @@ -846,7 +858,7 @@ if ($PSVersionTable.PSVersion.Major -lt 5) { ) $script:noncoresmo = @( # SMO issues - 'Get-DbaRepDistributor', + 'Get-DbaReplDistributor', 'Copy-DbaPolicyManagement', 'Copy-DbaDataCollector', 'Get-DbaPbmCategory', @@ -855,10 +867,10 @@ if ($PSVersionTable.PSVersion.Major -lt 5) { 'Get-DbaPbmObjectSet', 'Get-DbaPbmPolicy', 'Get-DbaPbmStore', - 'Get-DbaRepPublication', - 'Test-DbaRepLatency', - 'Export-DbaRepServerSetting', - 'Get-DbaRepServer', + 'Get-DbaReplPublication', + 'Test-DbaReplLatency', + 'Export-DbaReplServerSetting', + 'Get-DbaReplServer', 'Sync-DbaLoginPassword' ) $script:windowsonly = @( @@ -1104,4 +1116,4 @@ Register-DbatoolsConfig' } } -[Dataplat.Dbatools.dbaSystem.SystemHost]::ModuleImported = $true \ No newline at end of file +[Dataplat.Dbatools.dbaSystem.SystemHost]::ModuleImported = $true