Hello:
I must apologize first off as my scripting is limited
I have a group of servers that are configured with all IP addresses manually......I have a current Primary and secondary DNS server configuration...however these Servers physical IP addresses will be changing....I have created a bat file that when executed locally will delete the entries, then add the primary and secondary servers using these commands
netsh interface ip delete dns "LAN" all
netsh interface ip set dns "LAN" static 10.10.4.1
netsh interface ip add dns "LAN" 10.10.4.55
I followed the windows media tutorial on scripting were the comand prompt opens on the remote computer....and have tried several things to get it to work...but I am failing at the following 2 areas....
I can get the remote script to run but I always get prompted for a username and password.... I have added credential in the custom script Login section with domainname\username and password with domain admin rights....when I run the script I get prompted to insert the password but the domain\username is present.....as though th first password was not accepted.....when I manually type the passord it allows the script to continue...I have re-typed several times so I am almost posative the credentials are correct...
when the script executes I am confused whether or not I need to include the bat file in the script or if I can simply run the three lines above within the script.....If I add the file, it does copy the bat file to the c:\temp\vncscan folder as the command prompt is loaded...but does not fire the bat file.....at the command prompt I can type the name of the bat file (dns.bat) and the bat file executes as it should. but how can I get the script to automatically open the command prompt, run the three lines, then close the command prompt...