Neutro Posted April 1, 2013 Share Posted April 1, 2013 (edited) Hey, I had some troubles finding this so i'm sharing it here hoping it will help some other people! Export Windows network settings for all network adapters: ShellExecuteWait("regedit.exe","/e network.reg HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tcpip\Parameters\Interfaces","C:\NetworkSettings\") This will create a file "network.reg" in the folder "C:NetworkSettings" Import Windows network settings for all network adapters using previously exported file: Run("Regedit /S C:\NetworkSettings\network.reg") If the computer is running under a 64bit OS, you need to use this line before importing or it will fail: DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1) This is really useful when you have a computer with a fixed IP that needs to go to DHCP then go back to fixed IP. Just export before DHCP, then import when going back to fixed IP Tested sucessfully on Windows XP and Windows 7. Edited April 1, 2013 by Neutro dmob 1 Identify active network connections and change DNS server - Easily export Windows network settings Clean temporary files from Windows users profiles directories - List Active Directory Groups members Export content of an Outlook mailbox to a PST file - File patch manager - IRC chat connect example Thanks again for your help Water! Link to comment Share on other sites More sharing options...
goldenix Posted October 10, 2013 Share Posted October 10, 2013 Im runing win 7 on 64 bit & your your method only lets export settings, very nice, but rest does not work. This not perfect solution i found: ShellExecuteWait("network settings for static classroom IP.reg") My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now