Hello everyone,
I’m trying to setup a windows host to accept Ansible commands using the steps below:
$file = “$env:temp\ConfigureRemotingForAnsible.ps1”
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)
powershell.exe -ExecutionPolicy ByPass -File $file
But the URL link does not exist anymore. Has it changed?
I get this error:
Exception calling “DownloadFile” with “2” argument(s): “The remote server returned an error: (404) Not Found.”
At line:1 char:1
- (New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException
Thank you
Kabamaru