Add a local user to a group on each managed host
To add local users fred, joe, and bob to the admins group on each managed host
Powershell:
Find-QmcuGroup -Filter "Name=admins" | Add-QmcuGroupMember -Member fred,joe,bob
Unix CLI:
find-qmcugroup -f “Name=admins” | add-qmcugroupmember -m fred joe bob
Add localuser to a group on all Linux machines
To add localuser to a group on all Linux machines
Powershell:
Find-QmcuComputer -Filter "OperatingSystemName=Linux*" | Add-QmcuGroupMember -GroupName admins -Member localuser
Unix CLI:
find-qmcucomputer -f “OperatingSystemName=Linux*” | add-qmcugroupmember -n admins -m localuser
Get a user on a specific computer
Get a user on a specific computer
Powershell:
Get-QmcuUser -Username fred –ComputerName test.example.com
Unix CLI:
get-qmcuuser -n fred –c test.example.com
Find a UID on a computer
To find all users on computer test.example.com that have a UID greater than 1000 and print the results in a tabular format
Powershell:
Get-QmcuComputer -ComputerName test.example.com | Find-QmcuUser -Filter "UID>1000" | Format-Table
Unix CLI:
get-qmcucomputer -c test.example.com | find-qmcuuser -f "UID>1000" | format-table