mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2025-05-02 07:48:33 +00:00
- Added the UserPrincipalName parameter to Get-ADReplAccount cmdlet - Improved DRS_MSG_GETCHGREQ_V8 delete - Fixed Set-ADDBBootKey cmdlet output type - Fixed some formatting inconsistencies
43 lines
1004 B
C#
43 lines
1004 B
C#
using System;
|
|
using System.Management.Automation;
|
|
|
|
namespace DSInternals.PowerShell.Commands
|
|
{
|
|
public abstract class ADReplObjectCommandBase : ADReplCommandBase
|
|
{
|
|
protected const string ParameterSetByGuid = "ByGuid";
|
|
protected const string ParameterSetByDN = "ByDN";
|
|
|
|
#region Parameters
|
|
|
|
[Parameter(
|
|
Mandatory = true,
|
|
Position = 0,
|
|
ValueFromPipelineByPropertyName = true,
|
|
ParameterSetName = ParameterSetByDN
|
|
)]
|
|
[ValidateNotNullOrEmpty]
|
|
[Alias("dn")]
|
|
public string DistinguishedName
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Parameter(
|
|
Mandatory = true,
|
|
ValueFromPipelineByPropertyName = true,
|
|
ParameterSetName = ParameterSetByGuid
|
|
)]
|
|
[ValidateNotNullOrEmpty]
|
|
[Alias("Guid")]
|
|
public Guid ObjectGuid
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
#endregion Parameters
|
|
}
|
|
}
|