/build/static/layout/Breadcrumb_cap_w.png

Showing all PC's have local admin right and changing the password

From K1000, How can I Showing all PC's have local admin right and also changing the password of the local PC's all at once?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: Nico_K 6 years ago
Red Belt
1
To show all systems with users which have local admin rights the easiest way is a Custom Inventory Rule.
For German and English this one is useable:
ShellCommandTextReturn(cmd /c net localgroup Administratoren) OR ShellCommandTextReturn(cmd /c net localgroup administrators)

You can report this after the next check in.

For the machines which have user and the user names you can run a net user  loginid  newpassword


Comments:
  • Thank you for your response. "ShellCommandTextReturn(cmd /c net localgroup administrators)" is showing all members in Administrator group But I want to show if the user who logging to the PC (joined to domain) was add to that group.

    For changing the local password, I'm still struggling. From Scripts ---> New-->Type (Online Kscript) -->New Task --> On Success (Launch a program)--> Directory ?? --> File ?? --> Parameters??

    Any help? - Ghamdifast 6 years ago
    • Directory: $(KACE_SYS_DIR)
      File: cmd.exe
      Params: net user loginid newpassword - JasonEgg 5 years ago
      • you could also put the commands in a BAT file and upload it as a dependency to the script - JasonEgg 5 years ago
Posted by: worzie 6 years ago
Fourth Degree Brown Belt
0
I use this report that notifies me every morning if meeting the following criteria:

SELECT MACHINE.NAME AS SYSTEM_NAME, SYSTEM_DESCRIPTION, (SELECT MACHINE_CUSTOM_INVENTORY.STR_FIELD_VALUE FROM MACHINE_CUSTOM_INVENTORY WHERE MACHINE_CUSTOM_INVENTORY.ID=MACHINE.ID AND MACHINE_CUSTOM_INVENTORY.SOFTWARE_ID=16239) AS MACHINE_CUSTOM_INVENTORY_0_16239  FROM MACHINE   WHERE ((( exists  (select 1 from MACHINE_CUSTOM_INVENTORY where MACHINE.ID = MACHINE_CUSTOM_INVENTORY.ID and MACHINE_CUSTOM_INVENTORY.SOFTWARE_ID = 16239 and MACHINE_CUSTOM_INVENTORY.STR_FIELD_VALUE like '%domain\\\\cn%')) ) OR (( exists  (select 1 from MACHINE_CUSTOM_INVENTORY where MACHINE.ID = MACHINE_CUSTOM_INVENTORY.ID and MACHINE_CUSTOM_INVENTORY.SOFTWARE_ID = 16239 and MACHINE_CUSTOM_INVENTORY.STR_FIELD_VALUE like '%damain\\\\co%')) ))  ORDER BY SYSTEM_NAME
The custom inventory rule I'm using is ShellCommandTextReturn(cmd.exe /c net localgroup Administrators)

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ