批量更改Mac地址Windows XP专业版

时间:2013-05-31 05:14:22

标签: batch-file registry mac-address windows-xp-sp3

嘿伙计们我需要知道如何更改我的电脑的MAC地址,我知道它与注册表有关,我不想深入研究它,理由是,如果有什么东西搞砸了搞砸了。我没有任何入门代码可以继续。遗憾。

2 个答案:

答案 0 :(得分:0)

netsh interface ipv4 set address /?

这应该做你想要的。

编辑:几年前我写了这个程序。 使用你需要的任何东西。 请注意,您可能必须将“LAN-Verbindung”调整为您的adaptername(使用'ipconfig'找到它) 也很抱歉德语“怎么做”,我不知道这些菜单是用英语命名的。 - 但也许,您不需要DHCP服务器。

@echo off

if "%1"=="home" goto home
if "%1"=="office" goto office
if "%1"=="dhcp" goto dhcp
if "%1"=="server" goto server
goto help

REM set ip-address to parameter
netsh interface ip set address "LAN-Verbindung" static %1 255.255.255.0
goto ende

:dhcp         rem work as DHCP-Client
netsh interface ip set address "LAN-Verbindung" dhcp
goto ende

:server       rem work as DHCP-Server
netsh interface ip set address "LAN-Verbindung" static 192.168.0.1 255.255.255.0 192.168.0.1 1
goto ende

:home         rem fixed Address at home
netsh interface ip set address "LAN-Verbindung" static 192.168.178.30 255.255.255.0 192.168.178.1 1
goto ende

:office         rem fixed Address at office
 netsh interface ip set address "LAN-Verbindung" static 192.168.0.5 255.255.255.0 
goto ende

:help
echo.
echo Syntax: ip [parameter]
echo Parameter:
echo  home              set a fixed IP (predefined) 
echo  work              set a fixed IP (predefined)
echo  server            set a fixed IP (predefined) and works as DHCP-Server
echo  dhcp              works as DHCP-Client
echo  [IP-Adresse]      set a fixed IP (defined by parameter
echo Examples:
echo   ip 192.168.1.44   sets IP to 192.168.1.44
echo   ip server         sets IP to 192.168.0.1 and starts DHCP-Server
echo   ip home           sets IP to a fixed (predefined) IP
echo   ip dhcp           fetches an IP from DHCP-Server
echo ATTENTION: to work as DHCP-Server, the "Gemeinsame Nutzung der
echo          Internetverbindung" aktiviert werden (has to be done only one time).
echo     Netzwerkverbindungen "Eigenschaften"
echo       LAN-Verbindung "Eigenschaften" 
echo         "Erweitert" "Anderen Benutzern im Netzwerk gestatten..." aktivieren
echo HINT: This Batch-file needs Administrator-rights
echo.
REM  the IP-Range for den DHCP-Server can be determined to a smaller range.
REM  Info see: http://support.microsoft.com/?kbid=230248
goto ende2

:ende
ipconfig
:ende2
echo.

答案 1 :(得分:0)

在我自己的电脑上,我有一块Realtek PCIe卡,我可以用这种方式指定硬件(MAC)地址。

  1. 在Windows 7上,尝试转到控制面板\网络和Internet \网络连接。
  2. 选择您的网络适配器,然后右键单击以打开上下文菜单
  3. 选择“属性”。将弹出一个带有“网络”选项卡的窗口。
  4. 单击网络适配器名称下方的“配置”按钮。
  5. 单击“高级”选项卡。
  6. 选择网络地址属性。
  7. 以下是带有屏幕截图的Superuser.com线程的链接: Advanced parameters for realtek pci-e gbe family network card

    您还可以研究MAC Spoofing 以获取更多信息。