/build/static/layout/Breadcrumb_cap_w.png

K1000: Run Batch File in Command Line Elevated mode

OK. I am trying to run a very simple script...

@echo off

SET DNS1=10.172.1.10

SET DNS2=10.172.1.9

netsh interface ipv4 add dnsservers "Local Area Connection" %DNS1%

netsh interface ipv4 add dnsservers "Local Area Connection" %DNS2% index=2

 

I have a whole buch of machines (all win 2008 R2) that are going to need their DNS changed.

This batch file works flawlesly in an elevated command prompt.

I have been trying to run it from K1000 without success

Can someone shed some light as to how I can get this working??...I've been pulling my hair out !!!


2 Comments   [ + ] Show comments
  • Have you tried running this as System? - mramsdell 9 years ago
  • you can also run via a vbs file as system this way
    http://www.itninja.com/blog/view/how-to-hide-running-a-batch-file-from-a-kscript-with-version-5-5 - SMal.tmcc 9 years ago

Answers (0)

Be the first to answer this question

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