We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I noticed that if one of the $args is a boolean like $false it gets converted to a string and causes problems in some cmdlets.
$args
$false
> sudo Disable-NetAdapter -Name "Wi-Fi" -Confirm:$false Disable-NetAdapter : Cannot convert 'System.String' to the type 'System.Management.Automation.SwitchParameter' required by parameter 'Confirm'. > sudo powershell # Disable-NetAdapter -Name "Wi-Fi" -Confirm:$false # Enable-NetAdapter -Name "Wi-Fi" -Confirm:$false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I noticed that if one of the
$args
is a boolean like$false
it gets converted to a string and causes problems in some cmdlets.The text was updated successfully, but these errors were encountered: