Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Is it possible to have 2 profiles with different dns settings

29 Sep 2010   #1
Total

Windows 10 Pro - 64 bit
 
 
Is it possible to have 2 profiles with different dns settings

Is it possible to have 2 profiles with different dns settings , thanks .


My System SpecsSystem Spec
.
30 Sep 2010   #2
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

My System SpecsSystem Spec
01 Oct 2010   #3
Total

Windows 10 Pro - 64 bit
 
 

Quote   Quote: Originally Posted by WindowsStar View Post
I wanted to make a bat file so that each profile would use a different dns

Has anyone played with netsh ??

thanks
My System SpecsSystem Spec
.

01 Oct 2010   #4
Total

Windows 10 Pro - 64 bit
 
 

this in a bat file will work but I would like to add 2 dns servers


netsh interface ip set dns "Local Area Connection"static XXX.XXX.XXX.XXX


anyone know how to add 2 dns servers ..
My System SpecsSystem Spec
01 Oct 2010   #5
Total

Windows 10 Pro - 64 bit
 
 

figured it out ..

netsh interface ip add dns "Local Area Connection"static XXX.XXX.XXX.XXX --- dns 1
netsh interface ip add dns "Local Area Connection"static XXX.XXX.XXX.XXX index-2 --- dns 2

works great - just make that into a bat file - with your dns info ..

to go back to your regular dns servers

netsh interface ip set dns "Local Area Connection" dhcp
My System SpecsSystem Spec
01 Oct 2010   #6
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by Total View Post
figured it out ..

netsh interface ip add dns "Local Area Connection"static XXX.XXX.XXX.XXX --- dns 1
netsh interface ip add dns "Local Area Connection"static XXX.XXX.XXX.XXX index-2 --- dns 2

works great - just make that into a bat file - with your dns info ..

to go back to your regular dns servers

netsh interface ip set dns "Local Area Connection" dhcp
I am glad you figured it out.

I did not know you were looking for a script to do it. Typically when we get a post like this the OP is looking for a GUI solution.

netsh is a great utility.
My System SpecsSystem Spec
11 Dec 2010   #7
Total

Windows 10 Pro - 64 bit
 
 

Quote   Quote: Originally Posted by WindowsStar View Post
Quote   Quote: Originally Posted by Total View Post
figured it out ..

netsh interface ip add dns "Local Area Connection"static XXX.XXX.XXX.XXX --- dns 1
netsh interface ip add dns "Local Area Connection"static XXX.XXX.XXX.XXX index-2 --- dns 2

works great - just make that into a bat file - with your dns info ..

to go back to your regular dns servers

netsh interface ip set dns "Local Area Connection" dhcp
I am glad you figured it out.

I did not know you were looking for a script to do it. Typically when we get a post like this the OP is looking for a GUI solution.

netsh is a great utility.

a snag that I ran into - On windows 7 - How can I run a bat file as a admin ? This works great on xp , vista but with win 7 - I need a elevated command prompt .

thanks people
My System SpecsSystem Spec
11 Dec 2010   #8
Ztruker

Windows 10 Pro X64
 
 

What about creating a link on the Desktop, then right click and select Properties? Click on the Advanced button then check Run as Administrator.
My System SpecsSystem Spec
11 Dec 2010   #9
Total

Windows 10 Pro - 64 bit
 
 

Quote   Quote: Originally Posted by Ztruker View Post
What about creating a link on the Desktop, then right click and select Properties? Click on the Advanced button then check Run as Administrator.

will try that , thanks
My System SpecsSystem Spec
Reply

 Is it possible to have 2 profiles with different dns settings




Thread Tools




Similar help and support threads
Thread Forum
Windows 7 Regional Settings and Office 2010 Language Settings
I need to know if the Windows 7 Regional settings has any affect on Office 2010 language settings. If so, how? Heather
Microsoft Office
user profiles
Hi as per my previous thread before attempting an over install because my PC would not boot I removed the hard drive and hung it as a sata slave on my othe PC to check the Data was there. Windows directory is shown as are program files etc However the users directory is 834mb in size (...
General Discussion
Multiple Printer Profiles; Deleting Unneeded Profiles
It has been my practice with prior versions of Windows OS's to set up multiple printer profiles, one for drafts, one for color, etc. "The Devices and Printers" section allows me to create such profiles, but does not show them individually. When I delete them in Windows, they are not deleted in...
Performance & Maintenance
Roaming profiles
Hi there, hope this is the right category to post this - if not please let me know. I am on a Windows 2003 R2 domain and am trying to get some roaming profiles configured for Windows 7 use. Using the Microsoft info here: How to customize default user profiles in Windows 7 and in Windows...
Installation & Setup
Windows 7 Profiles (Docs and Settings?)
I'm trying to find user profiles in Win 7. Specifically 'Default User'. I'm running a network using Deep Freeze to maintain steady configuration and I need to set up printers in the default user profile. Thanks.
General Discussion
Display settings profiles?
I have 7 loaded on my new HP DV4 laptop and am loving it so far. One thing I would like to be able to do would be to set up a profile of sorts so that when I have the laptop monitor on it knows to display at 1200x800 and when its hooked to my 42" lcd to go 1920x1080 and have large icons etc. ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:21.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App