• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ec2-plugin
    • None
    • Jenkins 2.1, Windows Server 2012 R2, EC2 version 1.31.

      Hello All,

      I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the launch delay up to 600 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

      May 04, 2016 4:42:34 PM FINE hudson.plugins.ec2.win.winrm.WinRMClient
      opening winrm shell to: http://172.31.202.208:5985/wsman
      May 04, 2016 4:42:34 PM FINEST hudson.plugins.ec2.win.winrm.WinRMClient
      Request:
      POST http://172.31.202.208:5985/wsman
      <?xml version="1.0" encoding="UTF-8"?>
      <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.31.202.208:5985/wsman</a:To><a:ReplyTo><a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:D6FA9229-05D6-4199-B7B6-ACFA6D195CBE</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><w:OptionSet><w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>
      May 04, 2016 4:42:35 PM FINEST hudson.plugins.ec2.win.winrm.WinRMClient
      Response:
      <?xml version="1.0" encoding="UTF-8"?>
      <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xml:lang="en-US"><s:Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse</a:Action><a:MessageID>uuid:792A9FDE-030D-4646-89A5-8432A425C947</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:D6FA9229-05D6-4199-B7B6-ACFA6D195CBE</a:RelatesTo></s:Header><s:Body><x:ResourceCreated><a:Address>http://172.31.202.208:5985/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><w:SelectorSet><w:Selector Name="ShellId">96758FBF-0CF8-4E59-9E41-FF96E16903AC</w:Selector></w:SelectorSet></a:ReferenceParameters></x:ResourceCreated><rsp:Shell><rsp:ShellId>96758FBF-0CF8-4E59-9E41-FF96E16903AC</rsp:ShellId><rsp:ResourceUri>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</rsp:ResourceUri><rsp:Owner>JENKINSSLAVE\Administrator</rsp:Owner><rsp:ClientIP>172.31.202.241</rsp:ClientIP><rsp:IdleTimeOut>PT7200.000S</rsp:IdleTimeOut><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams><rsp:ShellRunTime>P0DT0H0M0S</rsp:ShellRunTime><rsp:ShellInactivity>P0DT0H0M0S</rsp:ShellInactivity></rsp:Shell></s:Body></s:Envelope>
      May 04, 2016 4:42:35 PM FINER hudson.plugins.ec2.win.winrm.WinRMClient
      shellid: 96758FBF-0CF8-4E59-9E41-FF96E16903AC
      May 04, 2016 4:42:35 PM FINE hudson.plugins.ec2.win.winrm.WinRMClient
      closing winrm shell 96758FBF-0CF8-4E59-9E41-FF96E16903AC
      
      May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest
      
      winrm returned 401 - shouldn't happen though - retrying in 2 minutes
      
      Waiting for WinRM to come up. Sleeping 10s.
      Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
      Waiting for WinRM to come up. Sleeping 10s.
      etc
      etc
      

      I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

      winrm quickconfig
      winrm set winrm/config/service/Auth @{Basic="true"}
      winrm set winrm/config/service @{AllowUnencrypted="true"}
      winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
      

      I do have a question in addition to the bug and that is: Do we just need to specify and administrative user, not precisely "Administrator" ?

      I've spent the entire day working on this and I'm simply out of options.

        1. Screenshot 2019-05-09 11.58.27.png
          Screenshot 2019-05-09 11.58.27.png
          241 kB
        2. EC2-gpedit1.png
          EC2-gpedit1.png
          340 kB
        3. EC2-gpedit2.png
          EC2-gpedit2.png
          247 kB
        4. JenkinsEC2Setup1.png
          JenkinsEC2Setup1.png
          32 kB
        5. JenkinsEC2Setup2.png
          JenkinsEC2Setup2.png
          26 kB

          [JENKINS-34610] Windows AMI in endless loop

          Brendan Stewart created issue -
          Brendan Stewart made changes -
          Description Original: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in the :

          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....

          I know WinRM is setup and working correctly, i've run the commands suggested from the plugin:

          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}

          I'm using a service user like BLA.AWS\svcService, which is an admin on the box and can log into any slave AMI. Could this possibly be the reason for this issue?

          Otherwise i'm at a loss. I've configured this thing like mad and i'm starting to rip out my hair.
          New:
          {code:java}
          Hello All,



          I've been trying to run this plugin with Windows 2012 and i'm stuck in the :
          {code:java}

          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          {code}

          I know WinRM is setup and working correctly, i've run the commands suggested from the plugin:

          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}

          I'm using a service user like BLA.AWS\svcService, which is an admin on the box and can log into any slave AMI. Could this possibly be the reason for this issue?

          Otherwise i'm at a loss. I've configured this thing like mad and i'm starting to rip out my hair.
          Brendan Stewart made changes -
          Description Original:
          {code:java}
          Hello All,



          I've been trying to run this plugin with Windows 2012 and i'm stuck in the :
          {code:java}

          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          {code}

          I know WinRM is setup and working correctly, i've run the commands suggested from the plugin:

          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}

          I'm using a service user like BLA.AWS\svcService, which is an admin on the box and can log into any slave AMI. Could this possibly be the reason for this issue?

          Otherwise i'm at a loss. I've configured this thing like mad and i'm starting to rip out my hair.
          New: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in the :

          {code:java}
          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          {code}

          I know WinRM is setup and working correctly, i've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I'm using a service user like BLA.AWS\svcService, which is an admin on the box and can log into any slave AMI. Could this possibly be the reason for this issue?

          Otherwise i'm at a loss. I've configured this thing like mad and i'm starting to rip out my hair.
          Brendan Stewart made changes -
          Description Original: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in the :

          {code:java}
          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          {code}

          I know WinRM is setup and working correctly, i've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I'm using a service user like BLA.AWS\svcService, which is an admin on the box and can log into any slave AMI. Could this possibly be the reason for this issue?

          Otherwise i'm at a loss. I've configured this thing like mad and i'm starting to rip out my hair.
          New: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the delay up to 360 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.
          Brendan Stewart made changes -
          Description Original: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the delay up to 360 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.
          New: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the launch delay up to 600 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.
          Brendan Stewart made changes -
          Description Original: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the launch delay up to 600 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.
          New: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the launch delay up to 600 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          Waiting for WinRM to come up. Sleeping 10s.
          etc
          etc
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.

          Let me answer part of my own question, i tried the AMI with the administrator user. No difference. So this is surely a bug.

          Brendan Stewart added a comment - Let me answer part of my own question, i tried the AMI with the administrator user. No difference. So this is surely a bug.
          Brendan Stewart made changes -
          Description Original: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the launch delay up to 600 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          Request:
          POST http://172.16.0.255:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.16.0.252:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:24BD995E-DFCC-4B42-AF00-E5C85B66445B</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          Waiting for WinRM to come up. Sleeping 10s.
          etc
          etc
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.
          New: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the launch delay up to 600 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          May 04, 2016 4:42:34 PM FINE hudson.plugins.ec2.win.winrm.WinRMClient
          opening winrm shell to: http://172.31.202.208:5985/wsman
          May 04, 2016 4:42:34 PM FINEST hudson.plugins.ec2.win.winrm.WinRMClient
          Request:
          POST http://172.31.202.208:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.31.202.208:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:D6FA9229-05D6-4199-B7B6-ACFA6D195CBE</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>
          May 04, 2016 4:42:35 PM FINEST hudson.plugins.ec2.win.winrm.WinRMClient
          Response:
          <?xml version="1.0" encoding="UTF-8"?>
          <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xml:lang="en-US"><s:Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse&lt;/a:Action&gt;&lt;a:MessageID&gt;uuid:792A9FDE-030D-4646-89A5-8432A425C947&lt;/a:MessageID&gt;&lt;a:To&gt;http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:To&gt;&lt;a:RelatesTo&gt;uuid:D6FA9229-05D6-4199-B7B6-ACFA6D195CBE&lt;/a:RelatesTo&gt;&lt;/s:Header&gt;&lt;s:Body&gt;&lt;x:ResourceCreated&gt;&lt;a:Address&gt;http://172.31.202.208:5985/wsman&lt;/a:Address&gt;&lt;a:ReferenceParameters&gt;&lt;w:ResourceURI&gt;http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:SelectorSet&gt;&lt;w:Selector Name="ShellId">96758FBF-0CF8-4E59-9E41-FF96E16903AC</w:Selector></w:SelectorSet></a:ReferenceParameters></x:ResourceCreated><rsp:Shell><rsp:ShellId>96758FBF-0CF8-4E59-9E41-FF96E16903AC</rsp:ShellId><rsp:ResourceUri>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/rsp:ResourceUri&gt;&lt;rsp:Owner&gt;JENKINSSLAVE\Administrator</rsp:Owner><rsp:ClientIP>172.31.202.242</rsp:ClientIP><rsp:IdleTimeOut>PT7200.000S</rsp:IdleTimeOut><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams><rsp:ShellRunTime>P0DT0H0M0S</rsp:ShellRunTime><rsp:ShellInactivity>P0DT0H0M0S</rsp:ShellInactivity></rsp:Shell></s:Body></s:Envelope>
          May 04, 2016 4:42:35 PM FINER hudson.plugins.ec2.win.winrm.WinRMClient
          shellid: 96758FBF-0CF8-4E59-9E41-FF96E16903AC
          May 04, 2016 4:42:35 PM FINE hudson.plugins.ec2.win.winrm.WinRMClient
          closing winrm shell 96758FBF-0CF8-4E59-9E41-FF96E16903AC

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          Waiting for WinRM to come up. Sleeping 10s.
          etc
          etc
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.
          Brendan Stewart made changes -
          Description Original: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the launch delay up to 600 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          May 04, 2016 4:42:34 PM FINE hudson.plugins.ec2.win.winrm.WinRMClient
          opening winrm shell to: http://172.31.202.208:5985/wsman
          May 04, 2016 4:42:34 PM FINEST hudson.plugins.ec2.win.winrm.WinRMClient
          Request:
          POST http://172.31.202.208:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.31.202.208:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:D6FA9229-05D6-4199-B7B6-ACFA6D195CBE</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>
          May 04, 2016 4:42:35 PM FINEST hudson.plugins.ec2.win.winrm.WinRMClient
          Response:
          <?xml version="1.0" encoding="UTF-8"?>
          <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xml:lang="en-US"><s:Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse&lt;/a:Action&gt;&lt;a:MessageID&gt;uuid:792A9FDE-030D-4646-89A5-8432A425C947&lt;/a:MessageID&gt;&lt;a:To&gt;http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:To&gt;&lt;a:RelatesTo&gt;uuid:D6FA9229-05D6-4199-B7B6-ACFA6D195CBE&lt;/a:RelatesTo&gt;&lt;/s:Header&gt;&lt;s:Body&gt;&lt;x:ResourceCreated&gt;&lt;a:Address&gt;http://172.31.202.208:5985/wsman&lt;/a:Address&gt;&lt;a:ReferenceParameters&gt;&lt;w:ResourceURI&gt;http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:SelectorSet&gt;&lt;w:Selector Name="ShellId">96758FBF-0CF8-4E59-9E41-FF96E16903AC</w:Selector></w:SelectorSet></a:ReferenceParameters></x:ResourceCreated><rsp:Shell><rsp:ShellId>96758FBF-0CF8-4E59-9E41-FF96E16903AC</rsp:ShellId><rsp:ResourceUri>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/rsp:ResourceUri&gt;&lt;rsp:Owner&gt;JENKINSSLAVE\Administrator</rsp:Owner><rsp:ClientIP>172.31.202.242</rsp:ClientIP><rsp:IdleTimeOut>PT7200.000S</rsp:IdleTimeOut><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams><rsp:ShellRunTime>P0DT0H0M0S</rsp:ShellRunTime><rsp:ShellInactivity>P0DT0H0M0S</rsp:ShellInactivity></rsp:Shell></s:Body></s:Envelope>
          May 04, 2016 4:42:35 PM FINER hudson.plugins.ec2.win.winrm.WinRMClient
          shellid: 96758FBF-0CF8-4E59-9E41-FF96E16903AC
          May 04, 2016 4:42:35 PM FINE hudson.plugins.ec2.win.winrm.WinRMClient
          closing winrm shell 96758FBF-0CF8-4E59-9E41-FF96E16903AC

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          Waiting for WinRM to come up. Sleeping 10s.
          etc
          etc
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.
          New: Hello All,

          I've been trying to run this plugin with Windows 2012 and i'm stuck in some WinRM loop where it cannot connect. I tried setting the launch delay up to 600 seconds to ensure my instance is up before trying any WinRM commands. No luck. Here is what i'm seeing:

          {code:java}
          May 04, 2016 4:42:34 PM FINE hudson.plugins.ec2.win.winrm.WinRMClient
          opening winrm shell to: http://172.31.202.208:5985/wsman
          May 04, 2016 4:42:34 PM FINEST hudson.plugins.ec2.win.winrm.WinRMClient
          Request:
          POST http://172.31.202.208:5985/wsman
          <?xml version="1.0" encoding="UTF-8"?>
          <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><env:Header><a:To>http://172.31.202.208:5985/wsman&lt;/a:To&gt;&lt;a:ReplyTo&gt;&lt;a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:Address&gt;&lt;/a:ReplyTo&gt;&lt;w:MaxEnvelopeSize mustUnderstand="true">153600</w:MaxEnvelopeSize><a:MessageID>uuid:D6FA9229-05D6-4199-B7B6-ACFA6D195CBE</a:MessageID><w:Locale mustUnderstand="false" xml:lang="en-US"/><p:DataLocale mustUnderstand="false" xml:lang="en-US"/><w:OperationTimeout>PT60S</w:OperationTimeout><a:Action mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create&lt;/a:Action&gt;&lt;w:ResourceURI mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:OptionSet&gt;&lt;w:Option Name="WINRS_NOPROFILE">FALSE</w:Option><w:Option Name="WINRS_CODEPAGE">437</w:Option></w:OptionSet></env:Header><env:Body><rsp:Shell><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams></rsp:Shell></env:Body></env:Envelope>
          May 04, 2016 4:42:35 PM FINEST hudson.plugins.ec2.win.winrm.WinRMClient
          Response:
          <?xml version="1.0" encoding="UTF-8"?>
          <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" xml:lang="en-US"><s:Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse&lt;/a:Action&gt;&lt;a:MessageID&gt;uuid:792A9FDE-030D-4646-89A5-8432A425C947&lt;/a:MessageID&gt;&lt;a:To&gt;http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/a:To&gt;&lt;a:RelatesTo&gt;uuid:D6FA9229-05D6-4199-B7B6-ACFA6D195CBE&lt;/a:RelatesTo&gt;&lt;/s:Header&gt;&lt;s:Body&gt;&lt;x:ResourceCreated&gt;&lt;a:Address&gt;http://172.31.202.208:5985/wsman&lt;/a:Address&gt;&lt;a:ReferenceParameters&gt;&lt;w:ResourceURI&gt;http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/w:ResourceURI&gt;&lt;w:SelectorSet&gt;&lt;w:Selector Name="ShellId">96758FBF-0CF8-4E59-9E41-FF96E16903AC</w:Selector></w:SelectorSet></a:ReferenceParameters></x:ResourceCreated><rsp:Shell><rsp:ShellId>96758FBF-0CF8-4E59-9E41-FF96E16903AC</rsp:ShellId><rsp:ResourceUri>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd&lt;/rsp:ResourceUri&gt;&lt;rsp:Owner&gt;JENKINSSLAVE\Administrator</rsp:Owner><rsp:ClientIP>172.31.202.241</rsp:ClientIP><rsp:IdleTimeOut>PT7200.000S</rsp:IdleTimeOut><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stdout stderr</rsp:OutputStreams><rsp:ShellRunTime>P0DT0H0M0S</rsp:ShellRunTime><rsp:ShellInactivity>P0DT0H0M0S</rsp:ShellInactivity></rsp:Shell></s:Body></s:Envelope>
          May 04, 2016 4:42:35 PM FINER hudson.plugins.ec2.win.winrm.WinRMClient
          shellid: 96758FBF-0CF8-4E59-9E41-FF96E16903AC
          May 04, 2016 4:42:35 PM FINE hudson.plugins.ec2.win.winrm.WinRMClient
          closing winrm shell 96758FBF-0CF8-4E59-9E41-FF96E16903AC

          May 4, 2016 4:20:46 PM WARNING hudson.plugins.ec2.win.winrm.WinRMClient sendRequest

          winrm returned 401 - shouldn't happen though - retrying in 2 minutes

          Waiting for WinRM to come up. Sleeping 10s.
          Connecting to ec2-windows-host.compute-1.amazonaws.com(<<host ip>>) with WinRM as svc....
          Waiting for WinRM to come up. Sleeping 10s.
          etc
          etc
          {code}

          I know WinRM is setup and working correctly, i can connect over Telnet. And I've run the commands suggested from the plugin:

          {code:java}
          winrm quickconfig
          winrm set winrm/config/service/Auth @{Basic="true"}
          winrm set winrm/config/service @{AllowUnencrypted="true"}
          winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
          {code}

          I do have a question in addition to the bug and that is: *Do we just need to specify and administrative user, not precisely "Administrator" ?*

          I've spent the entire day working on this and I'm simply out of options.
          Brendan Stewart made changes -
          Attachment New: EC2-gpedit2.png [ 32615 ]
          Attachment New: EC2-gpedit1.png [ 32616 ]

            francisu Francis Upton
            mumbles76 Brendan Stewart
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: