localadmins.zip contains Software-2084.kpkg and Script-61.kpkg

Import these two files into your kbox by placing them on the KBOX samba share \\kboxip\clientdrop

Go to Settings > Resources > Import KBOX Resources and the two items should appear. Import them.

Then schedule the local admin script to run about once a week and hit the run it now button.

Make sure the custom software inventory item is applied to all windows machines.

Check the client in manually after the script is finished and it should be there under Custom Inventory Fields.

Custom field should look something like this;

Attachment

Answer Summary:
Cancel
1 Comment   [ + ] Show Comment

Comments

  • This is great. I'm wondering if there is a way to get the CIR to exclude the username Administrator. We would only like to see domain users that have been added to the local administrators group.
Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Thanks for this. It's working great!
Answered 01/23/2011 by: RichB
Third Degree Green Belt

Please log in to comment
0
What version(s) does this work for?
Answered 03/10/2011 by: GillySpy
Seventh Degree Black Belt

Please log in to comment
0
Works with KACE server 5.1.31237 with 5.1 clients on Windows XP Pro, Windows 7 32 bit and 64 bit.
Answered 03/11/2011 by: RichB
Third Degree Green Belt

Please log in to comment
0
Thanks, It is working on version 5.2 as well.
Answered 04/02/2011 by: afzal
Fourth Degree Green Belt

Please log in to comment
0
I am still new to kbox, so please bear with me....
I have a network drive mapped to my kbox\clientdrop. I put the 2 files from the zip file into that clientdrop, however, when i then go to settings\resources\import, there is nothing there. When i go to settings\resources\resource manager queue, there is nothing there either.

What am I missing in my ability to import?
Answered 04/25/2011 by: TexasRose
Orange Senior Belt

Please log in to comment
0
never mind---I worked with KACE support and found what i needed.
Answered 04/26/2011 by: TexasRose
Orange Senior Belt

Please log in to comment
0
FREAKING GREAT!!!
Works PERFECT!!!

Thank you for this program!!!!![:)][:D][:)][:D][:)][:D][:D][8|]
Answered 05/18/2011 by: pcbhelpdesk
Senior Yellow Belt

Please log in to comment
0
Thanks for this. With agent version 5.3.47173 I had to prepend "[font="Courier New"]cmd /c " to the type command. Once I added that, the info flowed with no problems.
Answered 10/26/2011 by: HonestlyImNotBatman
Yellow Belt

Please log in to comment
0
Is there an advantage to this script over using a custom inventory rule with ShellCommandTextReturn(net localgroup Administrators)?
Answered 12/15/2011 by: steelc
Senior Yellow Belt

Please log in to comment
0
From a reporting perspective the original script gives an output that is easier to parse. Also it clearly specifies what you are looking at when you come back a month later.

But to someone just casually looking at inventory and who knows the output they should be equivalent.
Answered 12/15/2011 by: GillySpy
Seventh Degree Black Belt

Please log in to comment
0

ITninja migration stripped the attachement so please email me if you want the script. Thanks! -Tony

Answered 04/16/2012 by: awenzel@kace.com
Senior Purple Belt

Please log in to comment
0

Where is the zip file "localadmins.zip" ?

Answered 08/15/2012 by: diana_achim
Second Degree Blue Belt

Please log in to comment
0

wmic useraccount where"LocalAccount=TRUE" get * /format:List



IF you want just specific columns, you could do:

 

wmic useraccount where"LocalAccount=TRUE" get Name,Disabled /format:List

 

Basically just replace * with a comma-seperated list of available columns to choose from.


Here’s a way to rule out some ofthe standard accounts too:

 

wmic useraccount where"LocalAccount=TRUE AND not Description like '%Guest%'" get */format:list

Answered 12/11/2014 by: brucegoose03
Second Degree Black Belt

  • hello, How do you use this command ? i have create a custom inventory rule : ShellCommandTextReturn(wmic useraccount where"LocalAccount=TRUE" get * /format:List)
    But it do not works :(
    • Try this:
      ShellCommandTextReturn(cmd /c wmic useraccount where "LocalAccount=TRUE AND not Description like '%Guest%'" get * /format:list)

      If that doesn't work, test the command in command prompt like this:
      wmic useraccount where "LocalAccount=TRUE AND not Description like '%Guest%'" get * /format:list
Please log in to comment
Answer this question or Comment on this question for clarity