D2ActiveUsers
Show local accounts
- Type
- javascript
- Pack
- D2
Source
function usersWindows() {
pack(wmi_query('select * from Win32_LoggedOnUser'),'table');
}
try {
if (env.OS === 'windows') {
usersWindows();
}
} 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.