# difference between win\_dsc and win\_package

**URL:** <https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132>\
**Category:** Ansible Project\
**Created:** [November 27, 2018, 9:54pm UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132 "2018-11-27T21:54:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [November 27, 2018, 9:54pm UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/1 "2018-11-27T21:54:53Z")

</div>

Hello All,

what is the difference between win\_dsc and win\_package.

thanks,  
Narmada

---

<div class="post-metadata">

**Author:** ![Lucas\_Jackson](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@Lucas\_Jackson](https://forum.ansible.com/u/Lucas_Jackson)\
**Post date:** [November 27, 2018, 10:47pm UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/2 "2018-11-27T22:47:10Z")

</div>

win\_package is designed to install packages using exe and msi files where as win\_dsc is for PowerShell Desired State Configurations

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [November 27, 2018, 11:09pm UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/3 "2018-11-27T23:09:36Z")

</div>

Thanks Lucas,  
but when i am trying to install dotnetcore sdk on windows hosts i am getting this error

fatal: [servername]: FAILED! =\> {“changed”: false, “msg”: “failed to run install process (q4leaxlf.gus /q /norestart): Exception calling "RunCommand" with "5" argument(s): "Failed to create new process (%1 is not a valid Win32 application, Win32ErrorCode 193)"”, “reboot\_required”: false, “restart\_required”: false}

my playbook:

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [November 27, 2018, 11:24pm UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/4 "2018-11-27T23:24:16Z")

</div>

Hi

You are pointing to a URL that is then redirected to another URL after x amount of time to [https://download.visualstudio.microsoft.com/download/pr/cd42f66a-2b6a-4a7a-9e69-0bb4eb5a83a1/0ce246546a0886349d9acf872f4e15a4/dotnet-sdk-2.1.500-win-x64.exe](https://download.visualstudio.microsoft.com/download/pr/cd42f66a-2b6a-4a7a-9e69-0bb4eb5a83a1/0ce246546a0886349d9acf872f4e15a4/dotnet-sdk-2.1.500-win-x64.exe). I’m not sure whether this is always the same URL or whether it’s a temporary one generated by Microsoft but the file that was downloaded by Ansible was not a valid executable.

Thanks

Jordan

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [November 27, 2018, 11:37pm UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/5 "2018-11-27T23:37:35Z")

</div>

Thanks Jordan it worked when i used the redirection url (which you provided me in above email) in my playbook and it got installed on target servers. but where did you find it is getting redirected to another url.

---

<div class="post-metadata">

**Author:** ![Lucas\_Jackson](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@Lucas\_Jackson](https://forum.ansible.com/u/Lucas_Jackson)\
**Post date:** [November 27, 2018, 11:49pm UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/6 "2018-11-27T23:49:12Z")

</div>

![image.png](https://us1.discourse-cdn.com/ansible/original/2X/7/752702acabb44f4251c45b8e0c1159259df67520.png)

right click on Try again and copy link to clipboard

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [November 28, 2018, 12:04am UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/7 "2018-11-28T00:04:54Z")

</div>

I am unable to copy to clipboard…

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [November 28, 2018, 12:32am UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/8 "2018-11-28T00:32:36Z")

</div>

![image.png](https://us1.discourse-cdn.com/ansible/original/2X/d/d9f4a2f546bb63f03ef1bd1d211f9e9b2dfba913.png)

this is what i see.

---

<div class="post-metadata">

**Author:** ![Lucas\_Jackson](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@Lucas\_Jackson](https://forum.ansible.com/u/Lucas_Jackson)\
**Post date:** [November 28, 2018, 1:12am UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/9 "2018-11-28T01:12:16Z")

</div>

that’s just a screen cap of the website

[https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.1.500-windows-x64-installer](https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.1.500-windows-x64-installer)

click Try again on this page

> **(attachments)**
>
> ![image.png](https://us1.discourse-cdn.com/ansible/original/2X/d/d9f4a2f546bb63f03ef1bd1d211f9e9b2dfba913.png)

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [November 28, 2018, 4:02am UTC](https://forum.ansible.com/t/difference-between-win-dsc-and-win-package/29132/10 "2018-11-28T04:02:54Z")

</div>

I just started downloading the actual file and got the link from there. Chrome/Firefox have the ability to copy the link used in a download, I’m sure other browsers would have the same ability.
