Using ansible with windows

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

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
  • /<!–

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: (:slight_smile: , ParseException
  • FullyQualifiedErrorId : AmpersandNotAllowed

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

Thanks
David

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