Remove-WifiProfile
Description
The script removes the specified Wi-Fi profile from the system. ProfileName
is case-sensitive.
Usage
- Install and import the
Strapper
module. - Install and import the
wifiprofilemanagement
module. - Check for the existence of the specified Wi-Fi profile.
- Attempt to remove the specified Wi-Fi profile.
Removes the Wi-Fi profile named 'MyWifi' from the system.
.\Remove-WifiProfile.ps1 -ProfileName 'MyWifi'
Parameters
Parameter | Alias | Required | Default | Type | Description |
---|---|---|---|---|---|
ProfileName | True | String | The name of the Wi-Fi profile to remove. |
Output
- .\Remove-WifiProfile-log.txt
- .\Remove-WifiProfile-error.txt