[IMPORTANT] Please note that this site will be disabled on October 31. In it's place, the new JumpCloud Help Center is live! Check it out here!

Support Center

How To Use Commands To Query Existing Local Accounts

With the JumpCloud Agent installed, the Commands tab is a great tool for determining the existing local user accounts on your newly managed JumpCloud System before you bind users to the system.
If you intend to take over existing local accounts, you must bind a user with a JumpCloud username that matches exactly with the username of the existing local account. 

For organizations that may not have a consistent naming convention, using the JumpCloud agent to query existing local accounts can be a great time saver, and also ensure that account takeover happens on the target endpoint. 

Learn more about naming convention for users. 

The username field of a JumpCloud user cannot be modified once a user is created, so this step would occur prior to creating the JumpCloud user.  

Learn more about using the Commands Tab


Windows PowerShell Command

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

Write-Output $UserAccounts

Mac Command

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

Linux Command 

cut -d: -f1 /etc/passwd

Last Updated: Aug 21, 2018 04:10PM MDT

Related Articles
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found