Reputation: 101
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
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