DSInternals/Src/DSInternals.PowerShell/Commands/Base/ADReplObjectCommandBase.cs
Michael Grafnetter 85b48b32df - Added the Add-ADReplNgcKey cmdlet
- Added the UserPrincipalName parameter to Get-ADReplAccount cmdlet
- Improved DRS_MSG_GETCHGREQ_V8 delete
- Fixed Set-ADDBBootKey cmdlet output type
- Fixed some formatting inconsistencies
2019-08-24 23:07:57 +02:00

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
}
}