K1000 Custom Inventory Rule for Local Accounts
We are trying to create a custom inventory rule that will display the user and the users Full name. We have been successfull getting the user name to show up with this:
ShellCommandTextReturn(cmd /c net localgroup Users)
But appears we also need to have the user full name to show up also. Any suggestions on this?
Community Chosen Answer
wmic useraccount where"LocalAccount=TRUE" get * /format:List
gn_admin is indeed a local adminaccount on my VM.
IF you want just specificcolumns, you could do:
wmic useraccount where"LocalAccount=TRUE" get Name,Disabled /format:List
Basically just replace * with acomma-seperated list of available columns to choose from.
Here’s a way to omit out some ofthe standard accounts too:
wmic useraccount where"LocalAccount=TRUE AND not Description like '%Guest%'" get */format:list