Skip to content

Instantly share code, notes, and snippets.

@shibeta
Last active August 21, 2024 07:01
Show Gist options
  • Save shibeta/b4c56bdfd20eec267d19634459798025 to your computer and use it in GitHub Desktop.
Save shibeta/b4c56bdfd20eec267d19634459798025 to your computer and use it in GitHub Desktop.
Run on startup to enable EUI64 on Windows
:: Runas ADMINISTRATOR
@ECHO OFF&(PUSHD "%~DP0")&(REG QUERY "HKU\S-1-5-19">NUL 2>&1)||(
powershell -Command "Start-Process '%~sdpnx0' -Verb RunAs"&&EXIT)
:: These settings will be restored everytime Windows reboot
netsh interface ipv6 set global randomizeidentifiers=disabled
netsh interface ipv6 set privacy state=disabled
:: Change 网桥 to your interface name, usually Ethernet
:: Show all interface: netsh interface show interface
netsh interface set interface "以太网" admin=disable
netsh interface set interface "以太网" admin=enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment