user745199
user745199

Reputation: 101

Powershell : Invoke-WebRequest: A positional parameter cannot be found that accepts argument {URI}

I am a newbie and trying to install a toolbox found on a URL.

Invoke-WebRequest -UseDefaultCredentials -Uri \ 'https://{location of toolbox}'

I get the following error when I try to run :

Invoke-WebRequest: A positional parameter cannot be found that accepts argument 'https:/**

Any ideas what I'm doing wrong?

Upvotes: 0

Views: 6770

Answers (1)

Robert Dyjas
Robert Dyjas

Reputation: 5217

If you run this:

Invoke-WebRequest -UseDefaultCredentials -Uri \ 'https://{location of toolbox}'

PowerShell considers backslash (\) as the value for Uri. You probably need to simply remove the backslash.

Upvotes: 2

Related Questions