From 937c9c3657be8d48c631e79fd0bbd74e41fb8199 Mon Sep 17 00:00:00 2001 From: JB Lewis Date: Mon, 1 Oct 2018 09:24:52 -0500 Subject: [PATCH 1/2] Proposed Solution to #18 --- 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; } From f91a9086162687df154ba4dfcabcd996d5f6d136 Mon Sep 17 00:00:00 2001 From: JB Lewis Date: Mon, 1 Oct 2018 09:57:01 -0500 Subject: [PATCH 2/2] Proposed Solution to #36 --- 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 56e3833..b48f7f8 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 7013487..0f091b4 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 e2c6bf2..d7770a8 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 1b1aa6d..2d2d140 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 394417e..1f8cd61 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 8ce78b0..dcff030 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; }