Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

WinRM times out: infinite '401 - invalid content type - Builder' response ('vsphere-iso' + Win10) #281

Open
HealthyJR opened this issue Oct 28, 2019 · 0 comments

Comments

@HealthyJR
Copy link

Hi .

we do run into WinRM timeouts constantly - IF we do not configure a sleep for an amount of time before configuring WinRM with the widelyknown script/steps.
(see Sleep180Seconds.ps1 and ConfigureWinRm.ps1 from Autoattended.xml)
WinRM/packer never establishes any connection and times out.
Any recommendations how to remove this workaround?
Kind regards
J

<settings pass="oobeSystem">
   ...
      <FirstLogonCommands>
         <SynchronousCommand wcm:action="add">
            <Order>1</Order>
            <CommandLine>powershell -NoLogo -ExecutionPolicy Bypass -File a:\Sleep180Seconds.ps1</CommandLine>
              <RequiresUserInput>true</RequiresUserInput>
         </SynchronousCommand>
         <SynchronousCommand wcm:action="add">
              <Order>2</Order>
              <CommandLine>powershell -NoLogo -ExecutionPolicy Bypass -File a:\ConfigureWinRm.ps1</CommandLine>
              <RequiresUserInput>true</RequiresUserInput>
         </SynchronousCommand>
...

packer.log
ConfigureWinRm.ps1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant