SYNOPSIS
Get session details for all local and RDP logged on users.
SYNTAX
Get-LoggedOnUser [<CommonParameters>]
DESCRIPTION
Get session details for all local and RDP logged on users using Win32 APIs. Get the following session details:
NTAccount, SID, UserName, DomainName, SessionId, SessionName, ConnectState, IsCurrentSession, IsConsoleSession, IsUserSession, IsActiveUserSession
IsRdpSession, IsLocalAdmin, LogonTime, IdleTime, DisconnectTime, ClientName, ClientProtocolType, ClientDirectory, ClientBuildNumber
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
-------------------------- EXAMPLE 1 --------------------------
PS C:\>Get-LoggedOnUser
REMARKS
To see the examples, type: "get-help Get-LoggedOnUser -examples".
For more information, type: "get-help Get-LoggedOnUser -detailed".
For technical information, type: "get-help Get-LoggedOnUser -full".
For online help, type: "get-help Get-LoggedOnUser -online"