Windows 11 - How to permanently disable temporary IPv6 address

Barungar 15 Reputation points
2023-04-03T07:48:10.16+00:00

Hi,

I need some hints or help. I've tried to permanently disable the use of IPv6 temporary addresses on my Windows 11 computer. Both methods I tried only work for the next system start. With following starts having those IPv6 temporary address being enabled again.

Using PowerShell I tried:

Set-NetIPv6Protocol -UseTemporaryAddresses Disable

Using CMD with netsh I tried:

netsh interface ipv6 set privacy state=disabled store=persistent

The PowerShell or CMD were run with elevated (admin) rights. None returned an error. Sadly the result stays the same. After rebooting temporary IPv6 addresses are disabled. With the following reboot they are back again.

How do I get a persistent / permanent removal of IPv6 temporary addresses?

Thanks,

Barungar

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,372 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,280 questions
0 comments No comments
{count} vote

7 answers

Sort by: Most helpful
  1. Roland Schweiger 0 Reputation points
    2024-08-11T17:32:45.97+00:00

    thanks for the reply, unfortunately does not work for me. The only commands that work are the 2 powershell commands:

    Set-NetIPv6Protocol -RandomizeIdentifiers Disabled

    Set-NetIPv6Protocol -UseTemporaryAddresses Disabled

    but they only work for the current session. After every reboot, privacy-extensions are enabled again and i get random temporary ipv6 addresses.

    This is driving me bananas .....

    Also tried enabling the true "Administrator" account in windows11 and entering all the commands there, no luck ...

    but thanks for the help anyway.

    0 comments No comments

  2. Markus Kuhn 5 Reputation points
    2024-12-17T13:08:00.1233333+00:00

    As a workaround, try running the command in “Safe Mode with Networking”, then reboot. That worked on two out of the two Windows 11 Pro machines (e.g. 24H2, build 26100.2605) with that problem that we tried.

    Detailed steps:

    • On the logon screen click the Power symbol, then click Shift+Reset. After the reboot select Troubleshoot, Advanced options, Startup Settings, select "5) Enable Safe Mode with Networking".
    • While in "Safe Mode with Networking" run in admin-elevated cmd.exe the netsh command C:\>netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent
    • Reboot back into normal mode
    • Check with netsh interface ipv6 show global that the setting has persisted.

    It appears that whatever mechanism prevented that setting from becoming persistent is not active in Safe Mode.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.