-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fix Realtek 8852CE Wi-Fi 6E PCI-E NIC Connectivity.cmd
38 lines (33 loc) · 1.98 KB
/
Fix Realtek 8852CE Wi-Fi 6E PCI-E NIC Connectivity.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
echo """""""""""""""""""""""""""""""""""""""""""""""""""
echo " __ __.__ ___________.__ "
echo "/ \ / \__| \_ _____/|__| "
echo "\ \/\/ / | ______ | __) | | "
echo " \ /| | /_____/ | \ | | "
echo " \__/\ / |__| \___ / |__| "
echo " \/ \/ "
echo " __ __ .__ "
echo "/ \ / \_____ ______________|__| ___________ "
echo "\ \/\/ /\__ \\_ __ \_ __ \ |/ _ \_ __ \"
echo " \ / / __ \| | \/| | \/ ( <_> ) | \/"
echo " \__/\ / (____ /__| |__| |__|\____/|__| "
echo " \/ \/ "
echo """""""""""""""""""""""""""""""""""""""""""""""""""
net.exe session 1>NUL 2>NUL || (Echo This script requires elevated rights. Open context menu and click Run as Administrator & pause & Exit /b 1)
echo This script will attempt to fix missing Wi-Fi networks for Realtek 8852CE Wi-Fi 6E PCI-E NIC
pause
echo Disabling 6G
powershell "Set-NetAdapterAdvancedProperty -Name '*' -RegistryKeyword 'WifiProtocol_6G' -RegistryValue '0'"
echo Enabling 6G
powershell "Set-NetAdapterAdvancedProperty -Name '*' -RegistryKeyword 'WifiProtocol_6G' -RegistryValue '34'"
echo "Check if wi-fi networks are reappeared. If they did - close the window. If not, press <Enter> to try something else"
pause
echo Disabling 2G (sometimes those cards do not work when 2G is enabled)
powershell "Set-NetAdapterAdvancedProperty -Name '*' -RegistryKeyword 'WifiProtocol_2g' -RegistryValue '0'"
echo "Check if wi-fi networks are reappeared. If they did - close the window. If not, press <Enter> to try something else"
pause
echo Enabling 2G
powershell "Set-NetAdapterAdvancedProperty -Name '*' -RegistryKeyword 'WifiProtocol_2g' -RegistryValue '45'"
echo "Check if wi-fi networks are reappeared. If they did - close the window. If not, press <Enter> to try something else"
pause
echo Boom. Done!