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

[Issue] Invoke-WebRequestWithProxyDetection fails on PowerShell 7 when -OutFile is not specified #2066

Open
bill-long opened this issue Apr 19, 2024 · 0 comments
Assignees
Labels

Comments

@bill-long
Copy link
Member

Describe the issue

$OutFile is an optional parameter in the Invoke-WebRequestWithProxyDetection shared function:

image

Even if it is not provided, we add it to the parameters and call Invoke-WebRequest:

image

Windows PowerShell allows this:

image

PowerShell 7 does not:

image

@bill-long bill-long self-assigned this Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant