Skip to content

Return Value / Error on Remove-WifiProfile  #28

Description

@roborobs1023

Looking to retrieve a value based on whether a WifiProfile was successfully removed or their was an error. For instance if the Profile did not exist I want to have it return an error. I'm not seeing any way in the documentation to access this information currently.

Example would be:

try { Remove-WifiProfile -ProfileName $WifiProfile } catch { Write-Host ("Profile does not exist. Please enter Wifi Profile again.") $WifiProfile = Read-Host ("Wifi Profile") }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions