How to force a new temporary IPv6 address in Windows 10?

W4yne 1 Reputation point
2021-05-04T16:11:59.027+00:00

Is there an elegant way to force Windows 10 to create a new global temporary IPv6 address (the one that is created via Privacy Extension)?

For example via cmd or PowerShell?

Another question: Is it possible to display the default delay until Windows 10 will create the next temporary IPv6 address? It is probably 24h but I would like to know if that is correct.

Please no questions like "Why you want to do that...", no need for such a discussion here ;)

Help is very appreciated!

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,276 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 30,376 Reputation points Microsoft Vendor
    2021-05-05T08:22:46.41+00:00

    Hi,

    Please see if this creates a new temporary address

    Set-NetIPv6Protocol -UseTemporaryAddresses Disabled  
    Set-NetIPv6Protocol -UseTemporaryAddresses Enabled  
    

    To check the lifetime of the temporary you can try.

    Get-NetIPv6Protocol | select *  
    

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. W4yne 1 Reputation point
    2021-05-05T16:00:07.443+00:00

    Thank you for the suggestions Ian!

    After re-enabling UseTemporaryAddresses the temporary address was still the same so this approach did not work.

    A non-console workaround is:

    • When using Wi-Fi: Reconnect to the Wi-Fi, this will generate a new temporary IPv6 address
    • When using Ethernet: Disable and enable the network adapter, this will generate a new temporary IPv6 address

    Regarding the lifetime I noticed something strange.

    On my Windows 10 desktop all values are matching the default values that are mentioned here.

    MaxTemporaryValidLifetime     : 7.00:00:00  
    MaxTemporaryPreferredLifetime : 1.00:00:00  
    

    So that matches the 1 day (default value) for MaxPreferredLifetime and 7 days (default value) for MaxValidLifetime.

    However on my "Surface Pro 7 for Business" tablet the values are

    MaxTemporaryValidLifetime     : 7.00:00:00  
    MaxTemporaryPreferredLifetime : 7.00:00:00  
    

    So there the MaxValidLifetime is 7 days instead of 1 day. I wonder if that's some specific tweak from Microsoft for Surface tablets?
    I bought mine for my personal use directly from microsoft.com so it is NOT a company tablet with custom group policies.

    There is no particular problem with this, just wondering why the Surface tablet is deviating from the default value for MaxTemporaryPreferredLifetime.

    0 comments No comments

  3. Ian Xue (Shanghai Wicresoft Co., Ltd.) 30,376 Reputation points Microsoft Vendor
    2021-05-06T03:43:24.483+00:00

    Hi,

    To disable and enable a network adapter you can use Disable-NetAdapter and Enable-NetAdapter.

    I've no idea why the MaxTemporaryPreferredLifetime is 7 days on the Surface tablet. I checked several computers that run Windows 10/Windows Server 2012 R2/Windows Server 2016 in my lab and the MaxTemporaryPreferredLifetime values are all 1 day.

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments