Get-NAVServerSession
Returns information about active sessions for a Microsoft Dynamics NAV Server instance.
Syntax
Default (Default)
Get-NAVServerSession
[-Tenant <TenantId>]
[-ServerInstance] <String>
[-Force]
[<CommonParameters>]
Description
Use the Get-NAVServerSession cmdlet to return information about active sessions for a Microsoft Dynamics NAV Server instance. The following information is returned for each session:
Server Instance ID Session ID User SID Server Instance Name Server Computer Name User ID Client Type Client Computer Name Login Datetime Database Name
Examples
EXAMPLE 1
Get-NAVServerSession -ServerInstance DynamicsNAV -Tenant default
ServerInstanceID : 1
SessionID : 1
UserSID : DE8B398E-C154-45BC-931A-3A74A8AF5A85
ServerInstanceName : DynamicsNAV90
ServerComputerName : MyServer
UserID : CRONUSNavUser1
ClientType : WindowsClient
ClientComputerName : MyComputer
LoginDatetime : 21-09-2013 13:06:24
DatabaseName : Demo Database NAV
ServerInstanceID : 1
SessionID : 2
UserSID : DE8B398E-C154-45BC-931A-3A74A8AF5A85
ServerInstanceName : DynamicsNAV90
ServerComputerName : MyServer
UserID : CRONUSNavUser2
ClientType : WindowsClient
ClientComputerName : MyOtherComputer
LoginDatetime : 21-09-2013 10:28:40
DatabaseName : Demo Database NAV
The example returns a list of all client connections for the Microsoft Dynamics NAV Server instance DynamicsNAV. The return data shows two Windows client users.
Parameters
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ServerInstance
Specifies the name of a Dynamics NAV Server instance, for example, DynamicsNAV or myinstance. You can specify either the full name of an instance, such as MicrosoftDynamicsNavServer$myinstance or the short name such as myinstance.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Tenant
Specifies the ID of the tenant that you want to get the active sessions for, such as Tenant1. This parameter is required unless the specified service instance is not configured to run multiple tenants.
Parameter properties
Type: | TenantId |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Id |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
System.String
You can pipe a string that contains a Microsoft Dynamics NAV Server instance name to the cmdlet.
Outputs
System.Data.DataTable
Returns the active session information as a table.