# Using ansible with windows

**URL:** <https://forum.ansible.com/t/using-ansible-with-windows/18396>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 3, 2015, 5:11pm UTC](https://forum.ansible.com/t/using-ansible-with-windows/18396 "2015-06-03T17:11:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Teague](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@David\_Teague](https://forum.ansible.com/u/David_Teague)\
**Post date:** [June 3, 2015, 5:11pm UTC](https://forum.ansible.com/t/using-ansible-with-windows/18396/1 "2015-06-03T17:11:07Z")

</div>

Hi,  
I am following the guide to get windows prepared to be managed by ansible. However I am getting errros in powershell with the provided script.

[https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1](https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1)

Errors -

At C:\Ansiable\ConfigureRemotingForAnsible.ps1:21 char:467

- … m/u/1507452?v=3&s=400" name=“twitter:image:src” /\>
- ~  
Ampersand not allowed. The & operator is reserved for future use; use “&” to pass ampersand as a string.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:22 char:167
- … m/u/1507452?v=3&s=400" property=“og:image” /\>\<meta content=“ansible/ansible” …
- ~  
Ampersand not allowed. The & operator is reserved for future use; use “&” to pass ampersand as a string.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:91 char:277
- … hidden" value=“✓” /\>
- ~  
Ampersand not allowed. The & operator is reserved for future use; use “&” to pass ampersand as a string.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:10
- → /\<!–
- ~  
Missing expression after unary operator ‘–’.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:11
- → /\<!–
- ~  
Missing file specification after redirection operator.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:11
- → /\<!–
- ~  
The ‘\<’ operator is reserved for future use.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:17
- → /\<!–
- 

```auto

```

Unexpected token ‘class=“path-divider”\>/\<!–’ in expression or statement.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:10

- → **\<a href=“/ansible/ansible” data-pjax=“#js-repo-pjax-container” …**
 **- ~  
Missing expression after unary operator ‘–’.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:11
 - → \<a href=“/ansible/ansible” data-pjax=“#js-repo-pjax-container” …
 - ~  
Missing file specification after redirection operator.  
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:11
 - → \<a href=“/ansible/ansible” data-pjax=“#js-repo-pjax-container” …
 - ~  
The ‘\<’ operator is reserved for future use.  
Not all parse errors were reported. Correct the reported errors and try again.
 - CategoryInfo : ParserError: (🙂 , ParseException
 - FullyQualifiedErrorId : AmpersandNotAllowed**
 
 

**I have powershell 3.0 installed, is there and updated script some where?**

 

**Thanks  
David**

---

<div class="post-metadata">

**Author:** ![Michael\_Legleux](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Michael\_Legleux](https://forum.ansible.com/u/Michael_Legleux)\
**Post date:** [June 3, 2015, 6:26pm UTC](https://forum.ansible.com/t/using-ansible-with-windows/18396/2 "2015-06-03T18:26:31Z")

</div>

Looks your’re trying to run the html page on github.  
Try saving and running this link:

[https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1](https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1)
