NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

New-NaUser... don't see a couple of properties that I would like to set... am I missing something ?

raol
3,540 Views

I am on v1.7 of the PS Toolkit...

Want to create a new local user on the Filer...

I want to set 2 parameters available on the console CLI... -M & -m (useradmin user add/modify)

Did not see anything in the New-NaUser for that... has that not been implemented ?

Also, Get-NaUser does not seem to bring those properties as well... and also some others...

I am talking about the following properties...

Allowed Capabilites

Password Min/Max age

Status

While on this subject... Set-NaUser also is lacking in its ability to set those properties either...

Any plans to get that ability ?

Currently, relegated to using Invoke-NaSSH

1 ACCEPTED SOLUTION

beam
3,540 Views

New-NaUser and Set-NaUser do not currently have the ability to set minimum and maximum password ages.  I have logged this request for consideration in a future release.

In order to get those properties returned, you need to use the "-GetCapabilities" switch on Get-NaUser:

PS C:\> Get-NaUser steven -GetCapabilities | fl *

   

Groups                      : {Administrators}

AllowedCapabilities         : {login-*, cli-*, api-*, security-*}

Comment                     :

FullName                    :

Name                        : steven

PasswordMaximumAge          : 4294967295

PasswordMaximumAgeTS        : 10675199.02:48:05.4775807

PasswordMinimumAge          : 0

PasswordMinimumAgeTS        : 00:00:00

Rid                         : 131075

Status                      : enabled

UseradminGroups             : {Administrators}

PasswordMaximumAgeSpecified : True

PasswordMinimumAgeSpecified : True

-Steven

View solution in original post

1 REPLY 1

beam
3,541 Views

New-NaUser and Set-NaUser do not currently have the ability to set minimum and maximum password ages.  I have logged this request for consideration in a future release.

In order to get those properties returned, you need to use the "-GetCapabilities" switch on Get-NaUser:

PS C:\> Get-NaUser steven -GetCapabilities | fl *

   

Groups                      : {Administrators}

AllowedCapabilities         : {login-*, cli-*, api-*, security-*}

Comment                     :

FullName                    :

Name                        : steven

PasswordMaximumAge          : 4294967295

PasswordMaximumAgeTS        : 10675199.02:48:05.4775807

PasswordMinimumAge          : 0

PasswordMinimumAgeTS        : 00:00:00

Rid                         : 131075

Status                      : enabled

UseradminGroups             : {Administrators}

PasswordMaximumAgeSpecified : True

PasswordMinimumAgeSpecified : True

-Steven

Public