News for hackers. Stuff that matters.
Re:OpenSSH for Windows update by gionn on Monday October 19, 2015 @04:44PM (#10415598)
I am waiting the moment when I can throw away WinRM and SSH to all the servers.
Re:OpenSSH for Windows update by switch007 on Monday October 19, 2015 @05:15PM (#10415833)
You have to create a god damn scheduled task to do Windows Updates over WinRM. And it takes ages for Powershell to realise the task is running, and polling the status of the job is a PITA.

Took me days to automate Windows 2012 with Packer. Ugh

Re:OpenSSH for Windows update by jdub on Monday October 19, 2015 @05:45PM (#10416011)
For others facing a similar situation, I very strongly recommend starting here instead of DIY. :-)

https://github.com/joefitzgerald/packer-windows

Re:OpenSSH for Windows update by antod on Monday October 19, 2015 @07:11PM (#10416418)
> You have to create a god damn scheduled task to do Windows Updates over WinRM.

Aha. That must be why I could never get updates working with Packer/WinRM. It would take a very long time to do a huge amount of work then end up never quite finishing properly.

> And it takes ages for Powershell to realise the task is running, and polling the status of the job is a PITA.

OK, so not really a proper solution then. Oh well.

Re:OpenSSH for Windows update by togusa on Monday October 19, 2015 @04:48PM (#10415623)
Hell yes. Watching packer shit a brick 5 times a day trying to upload virtualbox guest additions via WinRM makes me want this yesterday.

Also I had to up the memory ceiling on WinRM to 800Mb (WTF!) to even get it to complete.

Re:OpenSSH for Windows update by MichaelGG on Monday October 19, 2015 @04:54PM (#10415665)
It really is surprisingly bad, isn't it? I recently was involved in a continuous deployment system targeting Windows. We simply couldn't get WinRM to reliably upload fast and ended up installing SSH everywhere.
Re:OpenSSH for Windows update by jen20 on Monday October 19, 2015 @10:54PM (#10417143)
Having worked on that code (in Packer) - the WinRM protocol is completely unsuitable for use as an SCP replacement. It's amazing it works at all even for small files! The actual "winrmcp" implementation is here https://github.com/packer-community/winrmcp if you're interested in the inner workings.
Re:OpenSSH for Windows update by MichaelGG on Monday October 19, 2015 @11:43PM (#10417303)
OK, but that code (cp.go) uploads base64 chunks of 8K and echo's them to a file and decodes when done. That surely isn't the real WinRM file copy implementation right?

Well... I just went looking for how it's implemented and holy shit I don't think they considered this case. Top results say "use a file share". Wow. I feel less inadequate.

Re:OpenSSH for Windows update by togusa on Tuesday October 20, 2015 @10:15AM (#10419246)
Yep that's horrible whatever the basis for it is.
Re:OpenSSH for Windows update by togusa on Tuesday October 20, 2015 @10:14AM (#10419240)
Oh wow that's just horrible. I wish I hadn't looked now!
Re:OpenSSH for Windows update by togusa on Monday October 19, 2015 @04:57PM (#10415682)
Yep definitely the worst thing ever. Not just that though; everything. I've lost so much hair in the last few months over trying to get a CD environment up on windows.
Re:OpenSSH for Windows update by switch007 on Monday October 19, 2015 @05:20PM (#10415868)
This. Everything about Windows and automation just feels like Bill & co really hates you personally, hates your company, and even the air you breath
Re:OpenSSH for Windows update by DiabloD3 on Monday October 19, 2015 @07:00PM (#10416376)
... while also hating malaria.
Re:OpenSSH for Windows update by switch007 on Tuesday October 20, 2015 @03:24AM (#10417878)
I have a lot of respect for Bill Gates. If he could just pay for a replacement desk after I smashed it so hard out of Windows rage ... ;-)
Re:OpenSSH for Windows update by antod on Monday October 19, 2015 @07:06PM (#10416401)
I can't help but nod knowingly :)

I was so keen for WinRM support to land in Packer so I could avoid installing cygwin.

It was out of the frying pan and into the fire.

Native Windows SSH should _hopefully_ solve all this hassle.

Re:OpenSSH for Windows update by scott_karana on Monday October 19, 2015 @04:54PM (#10415666)
This, so much. The current "endpoint bindings" are really aggravating to deal with, the slow speed... I can't wait! :-)