From 080b50f88770f105a3043256cf3412dc29096bd7 Mon Sep 17 00:00:00 2001 From: Mike Richmond Date: Wed, 14 Sep 2016 09:09:02 -0700 Subject: [PATCH] Removing length restriction on Description since SAM allows greater than 48 characters --- .../LocalAccounts/Commands/NewLocalGroupCommand.cs | 3 +-- .../LocalAccounts/Commands/NewLocalUserCommand.cs | 3 +-- .../LocalAccounts/Commands/SetLocalGroupCommand.cs | 3 +-- .../LocalAccounts/Commands/SetLocalUserCommand.cs | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/NewLocalGroupCommand.cs b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/NewLocalGroupCommand.cs index a9f2f58c38..582a4171c6 100644 --- a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/NewLocalGroupCommand.cs +++ b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/NewLocalGroupCommand.cs @@ -28,11 +28,10 @@ namespace Microsoft.PowerShell.Commands #region Parameter Properties /// /// The following is the definition of the input parameter "Description". - /// A descriptive comment (48 characters). + /// A descriptive comment. /// [Parameter(ValueFromPipelineByPropertyName = true)] [ValidateNotNull] - [ValidateLength(0, 48)] public string Description { get { return this.description;} diff --git a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/NewLocalUserCommand.cs b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/NewLocalUserCommand.cs index bc98a58c41..589a2c2e38 100644 --- a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/NewLocalUserCommand.cs +++ b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/NewLocalUserCommand.cs @@ -67,11 +67,10 @@ namespace Microsoft.PowerShell.Commands /// /// The following is the definition of the input parameter "Description". - /// A descriptive comment for this user account (48 characters). + /// A descriptive comment for this user account. /// [Parameter(ValueFromPipelineByPropertyName = true)] [ValidateNotNull] - [ValidateLength(0, 48)] public string Description { get { return this.description;} diff --git a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalGroupCommand.cs b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalGroupCommand.cs index 8feea5efb7..eb442de940 100644 --- a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalGroupCommand.cs +++ b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalGroupCommand.cs @@ -28,11 +28,10 @@ namespace Microsoft.PowerShell.Commands #region Parameter Properties /// /// The following is the definition of the input parameter "Description". - /// A descriptive comment (48 characters). + /// A descriptive comment. /// [Parameter(Mandatory = true)] [ValidateNotNull] - [ValidateLength(0, 48)] public string Description { get { return this.description;} diff --git a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalUserCommand.cs b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalUserCommand.cs index c5a8a03618..f7dfba2588 100644 --- a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalUserCommand.cs +++ b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalUserCommand.cs @@ -70,11 +70,10 @@ namespace Microsoft.PowerShell.Commands /// /// The following is the definition of the input parameter "Description". - /// A descriptive comment for this user account (48 characters). + /// A descriptive comment for this user account. /// [Parameter] [ValidateNotNull] - [ValidateLength(0, 48)] public string Description { get { return this.description;}