1- using System ;
21using System . ComponentModel ;
32using System . Management . Automation ;
43using System . Net ;
54using System . Security ;
65using DSInternals . Common . Interop ;
7- using DSInternals . PowerShell ;
86using DSInternals . Replication . Model ;
97
108namespace 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