/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


I am trying to push this cmd netsh interface ipv4 set dns "Local Area Connection" dhcp to all the computers in my network. How can I do this through Kace?

02/04/2016 1134 views
Trying to set DNS to Obtain address automatically. Had issues with domain controller and I dont want to have to touch every computer to change DNS settings. I'm sure there is a way to push this command down through Kace but my efforts have failed. Any help is greatly appreciated.
Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

2
to run commands use a kscript

figure out if you can run it as system (the default) or do you need to run as admin

under on success pick
launch a program

path $(KACE_SYS_DIR)
File:cmd.exe
Parameters: /c netsh interface ipv4 set dns..blah blah blah
(whatever you would enter at the command prompt goes after the /c)

note: if these are x64 machines you may need c:\windows\sysnative for the path

Answered 02/04/2016 by: SMal.tmcc
Red Belt

  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • That did the trick. Thank you very much. My life will be easier now! :-)
    • were you able to run as system or did you need an admin account
      • It let me run as System.
      • thanks it helps others who find this to know what settings they need

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