Source
function usersUnix() { packOutput('cat /etc/passwd'); } function usersWindows() { pack(wmi_query('select * from Win32_Account'), 'table'); } try { if (env.OS === 'windows') { usersWindows(); } else { usersUnix(); } } catch (ex) { pack('Error: ' + ex); }
README
Shows local accounts.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | agent, endpoint |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.