Remove-WifiProfile
Description
The script removes the specified Wi-Fi profile from the system. ProfileName is case-sensitive.
Usage
- Install and import the
Strappermodule. - Install and import the
wifiprofilemanagementmodule. - 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