Thursday, October 24, 2024

Delete stored wifi networks from command line

 

Delete stored wifi networks from command line:

netsh wlan delete profile name=* i=*


quickie command to return the serial number (pre Windows 11 24H2)

wmic bios get serialnumber

Update:

C:\Windows\System\wbem\wmic.exe  has been removed from Windows 11 24H2.

Powershell command Windows 11 24H2 and older

get-wmiobject -namespace root/CIMV2 -class Win32_bios | select -expand SerialNumber