Skip to main content

Remove-WifiProfile

Description

The script removes the specified Wi-Fi profile from the system. ProfileName is case-sensitive.

Usage

  1. Install and import the Strapper module.
  2. Install and import the wifiprofilemanagement module.
  3. Check for the existence of the specified Wi-Fi profile.
  4. Attempt to remove the specified Wi-Fi profile.

Removes the Wi-Fi profile named 'MyWifi' from the system.

.\Remove-WifiProfile.ps1 -ProfileName 'MyWifi'

Parameters

ParameterAliasRequiredDefaultTypeDescription
ProfileNameTrueStringThe name of the Wi-Fi profile to remove.

Output

  • .\Remove-WifiProfile-log.txt
  • .\Remove-WifiProfile-error.txt