NetNXT Logo

JumpCloud: List All User Profiles on All Machines

List all local user profiles across Windows, macOS, and Linux using JumpCloud Commands. Then consolidate results in PowerShell via the JumpCloud module, export to CSV, and troubleshoot inactive devices or noisy system accounts.

November 7, 2025
2 min read
ByNetNXT
On this page
Share this article

This guide will help you fetch all local user accounts from every machine (Windows / Mac / Linux) using JumpCloud Commands + PowerShell.

This is especially useful for IT Infra Managers, Network Security Heads & Admins who want quick visibility for audit, compliance, access cleanup, and insider threat checks.

STEP 1 — Run OS-specific Commands in JumpCloud

JumpCloud supports running commands per OS. Below are the exact commands you must use:

Windows

$UserAccounts = Get-WmiObject -Class Win32_UserAccount -Filter {LocalAccount = "True"} | select Name, Disabled
Write-Output $UserAccounts

macOS

dscl . list /Users | grep -v '^_' | grep -v 'daemon' | grep -v 'nobody' | grep -v 'root'

Linux

awk -F'[/:]' '{if ($3 >= 1000 && $3 != 65534) print $1}' /etc/passwd

Now go to:

JumpCloud → Commands

Create 3 commands (one for each OS), paste the respective code and assign the target devices.

Run the command → it will only run on Active devices.

Now go to Results in JumpCloud and select the relevant executed command.

Click on View to see the list.

Step 1 complete.

You now have user profile data from each device stored inside JumpCloud command history.

STEP 2 — Pull Everything in PowerShell (Central Single View)

Now consolidate all machines’ output into one PowerShell view.

Make sure JumpCloud PowerShell Module is installed first.

Then run:

Get-JCCommandResult | Where-Object Name -eq "NAME OF THE COMMAND" | Get-JCCommandResult -ByID | Select-Object system, exitCode,requestTime, output | Format-Table -Wrap

Replace "NAME OF THE COMMAND" with the name you saved earlier.

Example I used → "List Users - Windows"

FAQs

Q1. Why do I need three separate commands for Windows, Mac, Linux?

Because each OS stores user profiles differently. JumpCloud cannot auto-normalize unless you standardize inputs.

Q2. Will this run on inactive or offline devices?

No. Commands only run on Active agents.

Q3. What if my PowerShell output is empty?

Most common reasons: wrong command name, wrong case sensitivity, or command hasn’t been executed yet inside JumpCloud.

Q4. Can I export final results to CSV?

Yes — in PowerShell you can append | Export-CSV filename.csv to dump results instantly.

Need help securing your environment?

Talk to a NetNXT security expert
Was this article helpful?

Stay ahead of the next vulnerability

New KB guides, threat advisories and hardening playbooks from NetNXT's security team — straight to your inbox.

NetNXT will handle your data pursuant to its Privacy Policy.

Like this guide? Join our team.

NetNXT builds security for how modern enterprises actually run.

View open roles

Have a question about this guide?

Our security engineers read every message.

Contact us