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.
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="✓" /></div>
+ ~
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
+ --><span class="path-divider">/</span><!--
+ ~
Missing expression after unary operator '--'.
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:11
+ --><span class="path-divider">/</span><!--
+ ~
Missing file specification after redirection operator.
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:11
+ --><span class="path-divider">/</span><!--
+ ~
The '<' operator is reserved for future use.
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:17
+ --><span class="path-divider">/</span><!--
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'class="path-divider">/</span><!--' in expression or statement.
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:10
+ --><strong><a href="/ansible/ansible" data-pjax="#js-repo-pjax-container" ...
+ ~
Missing expression after unary operator '--'.
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:11
+ --><strong><a href="/ansible/ansible" data-pjax="#js-repo-pjax-container" ...
+ ~
Missing file specification after redirection operator.
At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:11
+ --><strong><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