# ConfigureRemotingForAnsible.ps1 - script

**URL:** <https://forum.ansible.com/t/configureremotingforansible-ps1-script/4544>\
**Category:** Get Help\
**Created:** [March 25, 2024, 11:15am UTC](https://forum.ansible.com/t/configureremotingforansible-ps1-script/4544 "2024-03-25T11:15:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kabamaru](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kabamaru](https://forum.ansible.com/u/kabamaru)\
**Post date:** [March 25, 2024, 11:15am UTC](https://forum.ansible.com/t/configureremotingforansible-ps1-script/4544/1 "2024-03-25T11:15:00Z")

</div>

Hello everyone,

I’m trying to setup a windows host to accept Ansible commands using the steps below:

> $url = “[https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1”](https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1%E2%80%9D)
> 
> $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)
> - 
> 
> ```auto
> + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
> + FullyQualifiedErrorId : WebException
> 
> ```

Thank you  
Kabamaru

---

<div class="post-metadata">

**Author:** ![kabamaru](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kabamaru](https://forum.ansible.com/u/kabamaru)\
**Post date:** [March 25, 2024, 12:12pm UTC](https://forum.ansible.com/t/configureremotingforansible-ps1-script/4544/2 "2024-03-25T12:12:29Z")

</div>

Hello again.

I ended up manually downloading the script from here:

[[ansible-windows/files/ConfigureRemotingForAnsible.ps1 at master · AlbanAndrieu/ansible-windows · GitHub](https://github.com/AlbanAndrieu/ansible-windows/blob/master/files/ConfigureRemotingForAnsible.ps1)]

Thank you

---

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [March 25, 2024, 12:13pm UTC](https://forum.ansible.com/t/configureremotingforansible-ps1-script/4544/3 "2024-03-25T12:13:50Z")

</div>

That script had been moved to [ansible/ansible-documentation](https://github.com/ansible/ansible-documentation) repository. You can find that under the examples/scripts directory.

However, in the first place, today, **this script is not recommended**.

You should read the `README.md` on the same directory carefully before using that: [ansible-documentation/examples/scripts/README.md at devel · ansible/ansible-documentation · GitHub](https://github.com/ansible/ansible-documentation/blob/devel/examples/scripts/README.md)

---

<div class="post-metadata">

**Author:** ![kabamaru](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kabamaru](https://forum.ansible.com/u/kabamaru)\
**Post date:** [March 25, 2024, 12:16pm UTC](https://forum.ansible.com/t/configureremotingforansible-ps1-script/4544/4 "2024-03-25T12:16:55Z")

</div>

Kurokodo,

Thank you for your reply. I will have a look at the README file.

All the best.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [April 24, 2024, 12:17pm UTC](https://forum.ansible.com/t/configureremotingforansible-ps1-script/4544/5 "2024-04-24T12:17:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
