Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using Remove-WiFiProfile #29

Open
Brodieman opened this issue Nov 1, 2021 · 5 comments
Open

Error when using Remove-WiFiProfile #29

Brodieman opened this issue Nov 1, 2021 · 5 comments

Comments

@Brodieman
Copy link

Using command:

Remove-WiFiProfile -ProfileName <SSID>

Return code: -37104

Remove-WiFiProfile : Exception calling "ShouldProcess" with "1" argument(s): "Windows PowerShell is in NonInteractive
mode. Read and Prompt functionality is not available."
At C:\WINDOWS\AdminArsenal\PDQInventoryRemoteCommand\service-1\exec\command.ps1:3 char:1

  • Remove-WiFiProfile -ProfileName
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Remove-WiFiProfile
    
@mkht
Copy link
Contributor

mkht commented Nov 10, 2021

More information is needed.
Are you using PDQDeploy? If so, what happens if you don't use it and just run the command?
If possible, please show the entire code of the script you ran.

@Brodieman
Copy link
Author

I was using "Remote Command" from PDQ Inventory.

If I do it manually, it works. I was HOPING to use this module to better control Wi-Fi profiles on our teacher laptops. I understand if it's something that you can't make work through PDQ or don't have the time to try. Thanks!

@mkht
Copy link
Contributor

mkht commented Nov 10, 2021

I've never used PDQ Inventory so I don't know exactly what it is, but the error message suggests that the confirm prompt may be the problem.
Please try Remove-WiFiProfile -ProfileName <SSID> -Confirm:$false. This option will suppress the confirmation message.

@Brodieman
Copy link
Author

No worries, had a read the error closer I would have seen that LOL. Suppressing the confirmation works, thanks!! I guess I didn't try it manually to know that there was a confirmation

@krzydoug
Copy link

Are you going to close this issue @Brodieman?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants