Public/Get-LoggedOnDomainUser.ps1
|
function Get-LoggedOnDomainUser { <# .SYNOPSIS Gets a list of domain users who have logged on to this computer. .DESCRIPTION Enumerates the user profile list to find all domain users who have previously logged on to the local machine. .EXAMPLE Get-LoggedOnDomainUser Returns all domain users who have logged on to this computer. #> [CmdletBinding()] param() process { return [LoginScreenHelper]::GetLoggedOnDomainUsers() } } |