OT: Properly setup WinRM on Windows 7

783 views
Skip to first unread message

Luis Lavena

unread,
May 11, 2012, 10:17:21 AM5/11/12
to rubyin...@googlegroups.com
Hello,

This is completely off-topic, but I was wondering if any of you
managed to get WinRM running on a Windows 7 box.

I've tried to get a dummy worker computer setup with it and
encountered several problems with firewall setup and WinRS then not
being able to find it (even with ports open)

My Google-fu didn't bring a definitive guide on how to get that setup
easily, but if any of you guys have some docs or instructions about
it, will be much appreciated.

I'll test on a VM instead of the real hardware in case I hosed it again :-P

Thank you.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Nick Klauer

unread,
May 12, 2012, 8:48:43 AM5/12/12
to rubyin...@googlegroups.com

I dug around and used this resource to get something sort of working: http://msdn.microsoft.com/en-us/library/aa384372(v=vs.85).aspx .  Wish you luck on your endeavors.

If you find anything more definitive than what I found, let me know.  I, too tried to get WinRM set up properly on a couple windows servers at work, and I think I got it working, but I did so many things that it probably worked more because the servers felt pity on me than that I knew what I was doing.

-Nick

Justin Baker

unread,
May 12, 2012, 1:52:52 PM5/12/12
to rubyin...@googlegroups.com
This is completely off-topic, but I was wondering if any of you
managed to get WinRM running on a Windows 7 box.

I've tried to get a dummy worker computer setup with it and
encountered several problems with firewall setup and WinRS then not
being able to find it (even with ports open)

My Google-fu didn't bring a definitive guide on how to get that setup
easily, but if any of you guys have some docs or instructions about
it, will be much appreciated.

I'll test on a VM instead of the real hardware in case I hosed it again :-P

If your computers are part of a ActiveDirectory Domain, it's cake.

Setting it up anywhere else, well there's always the same problems. Then
there's the other 5 problems that come up afterwards. It's traumatic
experience for me most times I try.

Either way the Powershell remoting scripts are based off winrm and 
are better than 'winrm quickconfig' so you should look at those.

get-help about_remote_requirements

Will give you better information than anything else I've found in the
winrm documentation itself. Which is sad.

Otherwise, it's painful. Good luck =)

Justin

Luis Lavena

unread,
May 15, 2012, 11:13:23 AM5/15/12
to rubyin...@googlegroups.com
On Sat, May 12, 2012 at 2:52 PM, Justin Baker <azol...@gmail.com> wrote:
>> This is completely off-topic, but I was wondering if any of you
>> managed to get WinRM running on a Windows 7 box.
>>
>> I've tried to get a dummy worker computer setup with it and
>> encountered several problems with firewall setup and WinRS then not
>> being able to find it (even with ports open)
>>
>> My Google-fu didn't bring a definitive guide on how to get that setup
>> easily, but if any of you guys have some docs or instructions about
>> it, will be much appreciated.
>>
>> I'll test on a VM instead of the real hardware in case I hosed it again
>> :-P
>
>
> If your computers are part of a ActiveDirectory Domain, it's cake.
>
> Setting it up anywhere else, well there's always the same problems. Then
> there's the other 5 problems that come up afterwards. It's traumatic
> experience for me most times I try.
>

Thanks Justin (and Nick too)

Indeed it was a traumatic experience and can't say I managed to get it to work.

Wonder how veewee does with Vagrant boxes?

> Either way the Powershell remoting scripts are based off winrm and
> are better than 'winrm quickconfig' so you should look at those.
>
> get-help about_remote_requirements
>

Will give a whirl on a VM this time, already hosed the worker machine
installation with it. For the time being, Remote Desktop seems to work
just fine :)

> Will give you better information than anything else I've found in the
> winrm documentation itself. Which is sad.
>
> Otherwise, it's painful. Good luck =)
>

Thanks :)

> Justin
>
> --
> You received this message because you are subscribed to the Google Groups
> "RubyInstaller" group.
> To post to this group, send email to rubyin...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyinstalle...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyinstaller?hl=en.

Justin Baker

unread,
May 15, 2012, 1:19:30 PM5/15/12
to rubyin...@googlegroups.com
Indeed it was a traumatic experience and can't say I managed to get it to work.

Wonder how veewee does with Vagrant boxes?

It installs Cygwin:sshd.

It has a winrm setup script in there, but it's not used in Vagrant.
(They probably couldn't get it working.)
 
> Either way the Powershell remoting scripts are based off winrm and
> are better than 'winrm quickconfig' so you should look at those.
>
> get-help about_remote_requirements
>

Will give a whirl on a VM this time, already hosed the worker machine
installation with it. For the time being, Remote Desktop seems to work
just fine :)

It's harder on a virtual machine box. Just a quick couple hints, 
unless you're on a Active Directory Domain, winrm hates you. 

Basically!
If you want to connect using a non-Kerebos authentication system, 
then you need to connect through https:// which means you'll need
a SSL cert. (This is the part I stopped at)
Also you need winrm running on the current computer, 
because "knownhosts" are "TrustedHosts" and can only be added 
using the winrm service.

Then and only then will you unlock the next problem, because
with winrm solutions are overrated.

MarcRic

unread,
May 16, 2012, 7:41:40 AM5/16/12
to rubyin...@googlegroups.com
Hi Luis,

Do you need WinRM specifically?

Have you tried this one?

https://www.teamviewer.com/en/index.aspx

Regards.

Luis Lavena

unread,
May 16, 2012, 5:23:55 PM5/16/12
to rubyin...@googlegroups.com
On Wed, May 16, 2012 at 8:41 AM, MarcRic <mar...@gmail.com> wrote:
> Hi Luis,
>
> Do you need WinRM specifically?
>

To remote execute individual commands on remote processes (like remote
starting cmd.exe). Or be able to use Chef knife-windows bootstrap.

> Have you tried this one?
>
> https://www.teamviewer.com/en/index.aspx
>

Yes, but that is to manage a complete User session. I've and currently
use Remote Desktop which serves my purposes locally.

MarcRic

unread,
May 16, 2012, 6:43:58 PM5/16/12
to rubyin...@googlegroups.com
Luis,

The expert on this tasks here is my son.

I have just made a test using TeamViewer and from my home computer I have accessed my son's computer at his work and start cmd.exe as a breeze.

About this "Chef knife-windows bootstrap", I have no idea what it is for...

Regards.
Reply all
Reply to author
Forward
0 new messages