Get-NAVServerUser

Get-NAVServerUser

Returns information about all users created in the current Microsoft Dynamics NAV database.

Syntax

Parameter Set: __AllParameterSets
Get-NAVServerUser [-ServerInstance] <String> [-AsXml] [ <CommonParameters>]




Detailed Description

Use the Get-NAVServerUser cmdlet to return information about all users created in the current Microsoft Dynamics NAV database. Currently, only Windows users are included.

The following information is returned for each user:


User Security ID
User Name
Full Name
State
Expiry Date
Windows Security ID
Change Password
License Type

For more information about these values, see the Help for the User page in the Microsoft Dynamics NAV Windows client.

Parameters

-AsXml

Formats cmdlet output as an XML node.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServerInstance<String>

Specifies the name of a Microsoft Dynamics NAV Server instance. The default instance name is DynamicsNAV70. You can specify either the full name of an instance (such as MicrosoftDynamicsNavServer$myinstance) or the short name (such as myinstance).


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

    You can pipe a string that contains a Microsoft Dynamics NAV Server instance name to the cmdlet.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.Data.DataTable

    Returns the user information as a table.


  • System.Xml.XmlElement

    If you use the AsXml parameter, then the cmdlet returns the user information as an XML element.


Examples

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

This example returns information about Microsoft Dynamics NAV users. Only Windows users are included.


C:\PS>Get-NAVServerUser DynamicsNav70


User Security ID : b5013678-36e5-4469-8f07-dcc453fed66f
User Name : MyDomain_x005C_User1
Full Name : MyDomain_x005C_User1
State : Enabled
Expiry Date : 1/1/0001 12:00:00 AM
Windows Security ID : S-1-5-21-xxxxxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxx
Change Password : False
License Type : Full User

-------------------------- EXAMPLE 2 --------------------------

Description

-----------

This example returns information about Microsoft Dynamics NAV users. Only Windows users are included. Information is returned in XML format.


C:\PS>Get-NAVServerUser DynamicsNav70 -AsXml | fc


class XmlElement
{
User =
class XmlElement
{
User_x0020_Security_x0020_ID = b5013678-36e5-4469-8f07-dcc453fed66f
User_x0020_Name = MyDomain_x005C_User1
Full_x0020_Name = MyDomain_x005C_User1
State = Enabled
Expiry_x0020_Date = 1/1/0001 12:00:00 AM
Windows_x0020_Security_x0020_ID = S-1-5-21-xxxxxxxxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxx
Change_x0020_Password = False
License_x0020_Type = Full User
}
}



Show: