Support
 
Phone Get Quote
 
Support
 
US: +1 888 720 9500
US: +1 888 791 1189
Intl: +1 925 924 9500
Aus: +1 800 631 268
UK: 0800 028 6590
CN: +86 400 660 8680

Direct Inward Dialing: +1 408 916 9892

How to find the computers a user is logged on to

The following is a comparison between the procedures for identifying the computers a user is logged on into with Windows PowerShell and ADAudit Plus:

PowerShell

Steps to identify the computers a user is logged on into using PowerShell:

  • Define the domain from which you want to retrieve the report.
  • Identify the primary DC to retrieve the report.
  • Compile the script.
  • Execute it in Windows PowerShell.

Sample Windows PowerShell script

$Computers =  Get-ADComputer  -Filter {(enabled -eq "true") -and (OperatingSystem -Like "*XP*")} | Select-Object -ExpandProperty Name
$output=@()
ForEach($PSItem in $Computers) {
$User = Get-CimInstance Win32_ComputerSystem -ComputerName $PSItem | Select-Object -ExpandProperty UserName
$Obj = New-Object -TypeName PSObject -Property @{
        "Computer" = $PSItem
        "User" = $User
    }
$output+=$Obj    
}

$output
 Copied
Click to copy entire script

ADAudit Plus

To obtain the report,

  • 1. Reports -> User Logon Reports -> Users logged into multiple computers
  • Select the required 'Domain'.
  • Select 'Export as' to export the report in any of the preferred formats (CSV, PDF, HTML, and XLS).

Screenshot

powershell-find-what-computer-user-logged-into-1
 

Following are the limitations in obtaining reports of all the computers the users are logged on to using native tools like Windows PowerShell:

  • We can run this script only from the computers which has Active Directory Domain Services role.
  • In order to change the date formats, the script needs to be modified each time.
  • Applying different time zones on the results is also challenging as the functionalities aren't predefined.
  • The script has to be modified, every time the report has to be exported in a different format.
  • Applying more filters, like OU or 'User name starts with' will increase the LDAP query complexity

ADAudit Plus will automatically scan all DCs in the domain to retrieve information about all the computers that users are logged on to a computer, generate the report and present it in a simple and intuitively designed UI.

  • Avoid complex PowerShell-scripting, and simplify AD change auditing with ADAudit Plus.
  • Avoid complex PowerShell-scripting, and simplify AD change auditing with ADAudit Plus.
  •  
  • By clicking 'Get Your Free Trial', you agree to processing of personal data according to the Privacy Policy.
  •  
  • Thanks!
  • Your download is in progress and it will be completed in just a few seconds! If you face any issues, download manually here.

Related Resources

ADAudit Plus Trusted By