# Windows config script problems

**URL:** <https://forum.ansible.com/t/windows-config-script-problems/18569>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 22, 2015, 11:28pm UTC](https://forum.ansible.com/t/windows-config-script-problems/18569 "2015-06-22T23:28:23Z")\
**Posts on this page:** 3\
**Page:** 1

<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 22, 2015, 11:28pm UTC](https://forum.ansible.com/t/windows-config-script-problems/18569/1 "2015-06-22T23:28:23Z")

</div>

It previously has always worked for me but now I’m getting an error

Unable to establish an HTTP or HTTPS remoting session.  
At C:\users\stage\Desktop\configure\_windows\_for\_ansible.ps1:129 char:5

- Throw “Unable to establish an HTTP or HTTPS remoting session.”
- 

```auto

```

- CategoryInfo : OperationStopped: (Unable to estab…moting session.:String) , RuntimeException
- FullyQualifiedErrorId : Unable to establish an HTTP or HTTPS remoting session.

The last line of the script is:  
Write-Verbose “PS Remoting has been successfully configured for Ansible.”

I have NEVER seen this line printed when configuring ansible, despite the config script successfully enabling ansible to connect.

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [June 22, 2015, 11:44pm UTC](https://forum.ansible.com/t/windows-config-script-problems/18569/2 "2015-06-22T23:44:39Z")

</div>

Can you double-check that you’re running as admin? OS / PowerShell version?

As for the write-verbose part, that only shows if you set $verbosePreference to “Continue”.

---

<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 22, 2015, 11:54pm UTC](https://forum.ansible.com/t/windows-config-script-problems/18569/3 "2015-06-22T23:54:09Z")

</div>

UPDATE  
This must have something to do with active directory domain permissions bc when I remove the machine from the domain, then run the script, it completed.

(Though I still have never seen the final ansible configuration affirmation)
