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?
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.
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
SMal.tmcc
8 years ago
Top Answer
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
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
Comments:
-
That did the trick. Thank you very much. My life will be easier now! :-) - dtaylor01 8 years ago