# Issues with Ansible Configure script

**URL:** <https://forum.ansible.com/t/issues-with-ansible-configure-script/23671>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [February 7, 2017, 5:59pm UTC](https://forum.ansible.com/t/issues-with-ansible-configure-script/23671 "2017-02-07T17:59:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strung6013](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Strung6013](https://forum.ansible.com/u/Strung6013)\
**Post date:** [February 7, 2017, 5:59pm UTC](https://forum.ansible.com/t/issues-with-ansible-configure-script/23671/1 "2017-02-07T17:59:26Z")

</div>

When running the configure script on a machine that is freshly imaged, I repeatedly get errors. Maybe it’s in the process or steps to which I got it added to domain/configured post imaging, but I figured that I would post here for help if possible.

Background:  
The machine is a freshly imaged windows 7 ultimate SP1 machine. With the latest updates as of a couple of months ago. It has symantec endpoint protection installed with the proper FW holes poked to allow communication  
I have used this exact same setup on other machines and get it to work properly without issues. I have updated to WMF 4.

The issue is that when running the configuration script, I get an error that states the following below.

`

PS C:\> .\test.ps1 -SkipNetworkProfileCheck -CertValidityDays 1865 -ForceNewSSLCert  
Self-signed SSL certificate generated; thumbprint: REMOVED  
New-WSManInstance : The WinRM client cannot process the request. The certificate CN and the hostname that were  
provided do not match.  
At C:\test.ps1:216 char:5

- New-WSManInstance -ResourceURI ‘winrm/config/Listener’ -SelectorSet $selecto …
- 

```auto

```

- CategoryInfo : InvalidOperation: (🙂 [New-WSManInstance], InvalidOperationException
- FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.NewWSManInstanceCommand

`

Before it is asked, I went out to the site and grabbed the latest copy from [here](https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1) and have also tried to use an older version. Both present the same error. above

---

<div class="post-metadata">

**Author:** ![Strung6013](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Strung6013](https://forum.ansible.com/u/Strung6013)\
**Post date:** [February 9, 2017, 8:15pm UTC](https://forum.ansible.com/t/issues-with-ansible-configure-script/23671/2 "2017-02-09T20:15:39Z")

</div>

So basically got this figured out… Please see the following page [https://github.com/ansible/ansible/issues/21155](https://github.com/ansible/ansible/issues/21155)
