Subscribe
Accepted Solution

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

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

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

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