From 1e3e8ea87909f4bce55fa08124dbb5bebdc57a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Andr=C3=A9e=20=5BMSFT=5D?= Date: Wed, 10 Jul 2019 16:53:32 -0700 Subject: [PATCH] Fixing a bug defining PowerShell aliases --- NTFSSecurity/AccessCmdlets/AddAccess.cs | 2 +- NTFSSecurity/AccessCmdlets/GetAccess.cs | 2 +- NTFSSecurity/AccessCmdlets/RemoveAccess.cs | 2 +- NTFSSecurity/AuditCmdlets/AddAudit.cs | 2 +- NTFSSecurity/AuditCmdlets/GetAudit.cs | 2 +- NTFSSecurity/AuditCmdlets/RemoveAudit.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/NTFSSecurity/AccessCmdlets/AddAccess.cs b/NTFSSecurity/AccessCmdlets/AddAccess.cs index b48f7f8..56e3833 100644 --- a/NTFSSecurity/AccessCmdlets/AddAccess.cs +++ b/NTFSSecurity/AccessCmdlets/AddAccess.cs @@ -47,7 +47,7 @@ namespace NTFSSecurity } [Parameter(Mandatory = true, Position = 2, ValueFromPipelineByPropertyName = true)] - [Alias("IdentityReference, ID")] + [Alias("IdentityReference", "ID")] public IdentityReference2[] Account { get { return account; } diff --git a/NTFSSecurity/AccessCmdlets/GetAccess.cs b/NTFSSecurity/AccessCmdlets/GetAccess.cs index 0f091b4..7013487 100644 --- a/NTFSSecurity/AccessCmdlets/GetAccess.cs +++ b/NTFSSecurity/AccessCmdlets/GetAccess.cs @@ -43,7 +43,7 @@ namespace NTFSSecurity } [Parameter(ValueFromRemainingArguments = true)] - [Alias("IdentityReference, ID")] + [Alias("IdentityReference", "ID")] [ValidateNotNullOrEmpty] public IdentityReference2 Account { diff --git a/NTFSSecurity/AccessCmdlets/RemoveAccess.cs b/NTFSSecurity/AccessCmdlets/RemoveAccess.cs index d7770a8..e2c6bf2 100644 --- a/NTFSSecurity/AccessCmdlets/RemoveAccess.cs +++ b/NTFSSecurity/AccessCmdlets/RemoveAccess.cs @@ -48,7 +48,7 @@ namespace NTFSSecurity } [Parameter(Mandatory = true, Position = 2, ValueFromPipelineByPropertyName = true)] - [Alias("IdentityReference, ID")] + [Alias("IdentityReference", "ID")] public IdentityReference2[] Account { get { return account; } diff --git a/NTFSSecurity/AuditCmdlets/AddAudit.cs b/NTFSSecurity/AuditCmdlets/AddAudit.cs index 2d2d140..1b1aa6d 100644 --- a/NTFSSecurity/AuditCmdlets/AddAudit.cs +++ b/NTFSSecurity/AuditCmdlets/AddAudit.cs @@ -47,7 +47,7 @@ namespace NTFSSecurity } [Parameter(Mandatory = true, Position = 2, ValueFromPipelineByPropertyName = true)] - [Alias("IdentityReference, ID")] + [Alias("IdentityReference", "ID")] public IdentityReference2[] Account { get { return account; } diff --git a/NTFSSecurity/AuditCmdlets/GetAudit.cs b/NTFSSecurity/AuditCmdlets/GetAudit.cs index 1f8cd61..394417e 100644 --- a/NTFSSecurity/AuditCmdlets/GetAudit.cs +++ b/NTFSSecurity/AuditCmdlets/GetAudit.cs @@ -43,7 +43,7 @@ namespace NTFSSecurity } [Parameter(ValueFromRemainingArguments = true)] - [Alias("IdentityReference, ID")] + [Alias("IdentityReference", "ID")] [ValidateNotNullOrEmpty] public IdentityReference2 Account { diff --git a/NTFSSecurity/AuditCmdlets/RemoveAudit.cs b/NTFSSecurity/AuditCmdlets/RemoveAudit.cs index dcff030..8ce78b0 100644 --- a/NTFSSecurity/AuditCmdlets/RemoveAudit.cs +++ b/NTFSSecurity/AuditCmdlets/RemoveAudit.cs @@ -48,7 +48,7 @@ namespace NTFSSecurity } [Parameter(Mandatory = true, Position = 2, ValueFromPipelineByPropertyName = true)] - [Alias("IdentityReference, ID")] + [Alias("IdentityReference", "ID")] public IdentityReference2[] Account { get { return account; }