By default, the unified write filter prevents wireless information from being persisted across reboots. Sometimes, this is not the wanted behavior.
To preserve wireless data:
@echo off REM turn on UWF as exceptions cannot be added if UWF is disabled uwfmgr.exe filter enable REM add required file and registry exclusions for Wifi profiles uwfmgr.exe file add-exclusion "C:\ProgramData\Microsoft\dot3svc\Profiles\Interfaces" uwfmgr.exe file add-exclusion "C:\ProgramData\Microsoft\wlansvc" uwfmgr.exe file add-exclusion "C:\ProgramData\Microsoft\wlansvc\Profiles\Interfaces" uwfmgr.exe file add-exclusion "C:\Windows\dot2svc\Policies" uwfmgr.exe file add-exclusion "C:\Windows\wlansvc\Policies" uwfmgr.exe registry add-exclusion "HKLM\SOFTWARE\Microsoft\wlansvc" uwfmgr.exe registry add-exclusion "HKLM\SOFTWARE\Policies\Microsoft\Windows\WiredL2\GP_Policy" uwfmgr.exe registry add-exclusion "HKLM\SOFTWARE\Policies\Microsoft\Windows\Wireless\GPTWirelessPolicy" uwfmgr.exe registry add-exclusion "HKLM\SYSTEM\CurrentControlSet\services\dot3svc" uwfmgr.exe registry add-exclusion "HKLM\SYSTEM\CurrentControlSet\services\Wlansvc" uwfmgr.exe registry add-exclusion "HKLM\SYSTEM\CurrentControlSet\services\WwanSvc"