Get LoggedOnUser
Get session details for all local and RDP logged on users.
Get-LoggedOnUser [<CommonParameters>]
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
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
-------------------------- EXAMPLE 1 --------------------------
PS C:>Get-LoggedOnUser
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
- Home
- Toolkit Functionality
- Toolkit Components
-
Toolkit Usage
- Launching the Toolkit
- Customizing the Toolkit
-
Example Deployments
- Building an Adobe Reader installation with the PowerShell App Deployment Toolkit
- Deploy the Adobe Reader installation using SCCM 2007 / SCCM 2012 package
- Deploy the Adobe Reader installation using SCCM 2012 Application Model
- An advanced Office 2013 SP1 installation with the PowerShell App Deployment Toolkit
- Zero-Config MSI Install
- Toolkit Variables
- Toolkit Exit Codes
-
Toolkit Functions
- Convert-RegistryPath
- Copy-File
- Disable-TerminalServerInstallMode
- Enable-TerminalServerInstallMode
- Execute-MSI
- Execute-MSP
- Execute-Process
- Execute-ProcessAsUser
- Exit-Script
- Get-FileVersion
- Get-FreeDiskSpace
- Get-HardwarePlatform
- Get-IniValue
- Get-InstalledApplication
- Get-LoggedOnUser
- Get-PendingReboot
- Get-RegistryKey
- Get-ScheduledTask
- Get-ServiceStartMode
- Get-UniversalDate
- Get-UserProfiles
- Get-WindowTitle
- Install-MSUpdates
- Install-SCCMSoftwareUpdates
- Invoke-HKCURegistrySettingsForAllUsers
- Invoke-RegisterOrUnregisterDLL
- Invoke-SCCMTask
- New-Folder
- New-MsiTransform
- New-Shortcut
- Remove-File
- Remove-Folder
- Remove-MSIApplications
- Remove-RegistryKey
- Resolve-Error
- Send-Keys
- Set-ActiveSetup
- Set-IniValue
- Set-PinnedApplication
- Set-RegistryKey
- Set-ServiceStartMode
- Show-BalloonTip
- Show-DialogBox
- Show-InstallationProgress
- Show-InstallationPrompt
- Show-InstallationRestartPrompt
- Show-InstallationWelcome
- Start-ServiceAndDependencies
- Stop-ServiceAndDependencies
- Test-Battery
- Test-MSUpdates
- Test-NetworkConnection
- Test-PowerPoint
- Test-RegistryValue
- Test-ServiceExists
- Update-Desktop
- Update-GroupPolicy
- Update-SessionEnvironmentVariables
- Write-Log