Skip to content

Commit eaf99b1

Browse files
SID history param aliases
1 parent aac5553 commit eaf99b1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Src/DSInternals.PowerShell/Commands/Replication/AddADReplSidHistoryCommand.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
using System;
21
using System.ComponentModel;
32
using System.Management.Automation;
43
using System.Net;
54
using System.Security;
65
using DSInternals.Common.Interop;
7-
using DSInternals.PowerShell;
86
using DSInternals.Replication.Model;
97

108
namespace DSInternals.PowerShell.Commands;
@@ -26,6 +24,7 @@ public class AddADReplSidHistoryCommand : ADReplCommandBase
2624
/// </summary>
2725
[Parameter(Mandatory = true, ParameterSetName = ParameterSetCrossForest)]
2826
[ValidateNotNullOrEmpty]
27+
[Alias("SrcDomain")]
2928
public string SourceDomain
3029
{
3130
get;
@@ -38,6 +37,7 @@ public string SourceDomain
3837
[Parameter(Mandatory = true, ParameterSetName = ParameterSetCrossForest, ValueFromPipelineByPropertyName = true)]
3938
[Parameter(Mandatory = true, ParameterSetName = ParameterSetIntraDomain, ValueFromPipelineByPropertyName = true)]
4039
[ValidateNotNullOrEmpty]
40+
[Alias("SrcPrincipal")]
4141
public string SourcePrincipal
4242
{
4343
get;
@@ -49,6 +49,7 @@ public string SourcePrincipal
4949
/// </summary>
5050
[Parameter(Mandatory = false, ParameterSetName = ParameterSetCrossForest)]
5151
[ValidateNotNullOrEmpty]
52+
[Alias("SrcDomainController", "SourceServer")]
5253
public string SourceDomainController
5354
{
5455
get;
@@ -60,6 +61,7 @@ public string SourceDomainController
6061
/// </summary>
6162
[Parameter(Mandatory = false, ParameterSetName = ParameterSetCrossForest)]
6263
[ValidateNotNull]
64+
[Alias("SrcCreds")]
6365
public PSCredential SourceCredential
6466
{
6567
get;
@@ -71,6 +73,7 @@ public PSCredential SourceCredential
7173
/// </summary>
7274
[Parameter(Mandatory = true, ParameterSetName = ParameterSetCrossForest)]
7375
[ValidateNotNullOrEmpty]
76+
[Alias("DstDomain")]
7477
public string DestinationDomain
7578
{
7679
get;
@@ -83,6 +86,7 @@ public string DestinationDomain
8386
[Parameter(Mandatory = true, ParameterSetName = ParameterSetCrossForest, ValueFromPipelineByPropertyName = true)]
8487
[Parameter(Mandatory = true, ParameterSetName = ParameterSetIntraDomain, ValueFromPipelineByPropertyName = true)]
8588
[ValidateNotNullOrEmpty]
89+
[Alias("DstPrincipal")]
8690
public string DestinationPrincipal
8791
{
8892
get;
@@ -128,7 +132,7 @@ protected override void ProcessRecord()
128132
}
129133
else
130134
{
131-
this.WriteVerbose($"Performing cross-domain SID history migration from '{this.SourcePrincipal}' to '{this.DestinationPrincipal}'.");
135+
this.WriteVerbose($"Performing cross-forest SID history migration from '{this.SourcePrincipal}' to '{this.DestinationPrincipal}'.");
132136
}
133137

134138
// Build optional source credentials only for the cross-forest flow.

0 commit comments

Comments
 (0)