Last active
August 21, 2024 07:01
-
-
Save shibeta/b4c56bdfd20eec267d19634459798025 to your computer and use it in GitHub Desktop.
Run on startup to enable EUI64 on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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