# Can not get the PSVX.msi by win\_get\_url

**URL:** <https://forum.ansible.com/t/can-not-get-the-psvx-msi-by-win-get-url/19120>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 27, 2015, 12:42am UTC](https://forum.ansible.com/t/can-not-get-the-psvx-msi-by-win-get-url/19120 "2015-08-27T00:42:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takeshi\_Kuramochi](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Takeshi\_Kuramochi](https://forum.ansible.com/u/Takeshi_Kuramochi)\
**Post date:** [August 27, 2015, 12:42am UTC](https://forum.ansible.com/t/can-not-get-the-psvx-msi-by-win-get-url/19120/1 "2015-08-27T00:42:53Z")

</div>

Hi,

I am trying some windows modules.

My test environment below :  
- Control machine : CentOS 6.6 x86\_64 , Ansible version : v2.0.0  
- Remote machine : Windows Server 2012 R2 Standard

I found the win\_unzip module document then I tried the following.

# Install PSCX to use for extracting a gz file  
&nbsp;&nbsp;- name: Grab PSCX msi  
&nbsp;&nbsp;&nbsp;&nbsp;win\_get\_url:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: '[http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959](http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959)’  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dest: 'C:\pscx.msi'  
&nbsp;&nbsp;- name: Install PSCX  
&nbsp;&nbsp;&nbsp;&nbsp;win\_msi:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;path: 'C:\pscx.msi'  
&nbsp;&nbsp;- name: Unzip gz log  
&nbsp;&nbsp;&nbsp;&nbsp;win\_unzip:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;src: "C:\Logs\application-error-logs.gz"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dest: "C:\ExtractedLogs\application-error-logs"

However , I saw that the win\_get\_url failed to get PSCX.msi.

TASK [Grab PSCX msi] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
\<10.1.1.6\> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT  
5986 TO 10.1.1.6  
\<10.1.1.6\> EXEC (New-Item -Type Directory -Path $env:temp -Name  
"ansible-tmp-1440635296.7-251435026679972").FullName | Write-Host  
-Separator '';  
\<10.1.1.6\> PUT "/tmp/tmpRR0wmP" TO  
"C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1440635296.7-251435026679972\win\_get\_url"  
\<10.1.1.6\> EXEC Try { &  
"C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1440635296.7-251435026679972\win\_get\_url.ps1"  
}  
Catch { throw }  
Finally { Remove-Item  
"C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1440635296.7-251435026679972"  
-Force -Recurse -ErrorAction SilentlyContinue }  
fatal: [10.1.1.6]: FAILED! =\> {"changed": false, "failed": true,  
"msg": "Error downloading  
[http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959](http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959)  
to C:\\Users\\Administrator\\Desktop\\pscx.msi"}

I could get other file from another web site by win\_get\_url. Also when  
I use a browser to get this file on remote machine, it was success.  
Could you give me some advice?

Regards,  
Takeshi.K

---

<div class="post-metadata">

**Author:** ![Takeshi\_Kuramochi](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Takeshi\_Kuramochi](https://forum.ansible.com/u/Takeshi_Kuramochi)\
**Post date:** [August 28, 2015, 1:56am UTC](https://forum.ansible.com/t/can-not-get-the-psvx-msi-by-win-get-url/19120/2 "2015-08-28T01:56:31Z")

</div>

Hello,

I resolved by myself for this problem.  
I have tried two workarounds.

I found that a win\_get\_url is not supported authentication http proxy.  
( I use authentication http proxy of my office )  
After I modified to add authentication http proxy by manual for the  
win\_get\_url.ps1 file I can success to run this modules.  
Also , there is problem in  
"[http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959&quot](http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959&quot);  
, this module got the top download page for .exe". Therefore , I  
created an another download url.

Takeshi.K
