header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Access Remote Machine
Last Post 15 Feb 2009 07:18 PM by cairull. 8 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
kartikUser is Offline
New Member
New Member
Posts:2
Avatar

--
03 Jul 2008 07:45 AM

    Hello,
    When I try to execute
    $r = New-Runspace internalComputername -cred domain\user
    in Powershell gives me error
    The WinRM client sent a request to an HTTP server and got a response saying the requested HTTP URL was not available. This is usually returned by a HTTP server that does not support the WS-Management protocol.

    I want to know what it means and how to solve?

    I have also installed powershell 2.0 and WinRM to client machine to which i am trying to connect.

    - Kartik

     

    halr9000User is Offline
    PowerShell MVP, Site Admin
    Advanced Member
    Advanced Member
    Posts:565
    Avatar

    --
    03 Jul 2008 07:54 AM
    If you have powershell V2 CTP 2, then the requirements are Vista or 2008 + WinRM 2.0 on both sides. This is steeper than what the first CTP had, so make sure you are meeting that.

    I would start doing tests using winrm & winrs executables to see if you can find config issues. did you run "winrm quickconfig" on the server?

    Note that the params to winRM clash horribly with powershell token parsing which I just can't stand...it's easier to run them from cmd.exe unfortunately. Or you can escape the dashes, I think that fixes it.
    Community Director, PowerShellCommunity.org
    Co-host, PowerScripting Podcast
    Author, TechProsaic
    kartikUser is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    03 Jul 2008 10:42 PM
    I am running script from MS 2003 64 bit and try to connect Win XP 32 bit machine.
    Is it work?

    I have installed Powershell 2.0 CTP on both machine.

    Please reply..

    - Kartik
    halr9000User is Offline
    PowerShell MVP, Site Admin
    Advanced Member
    Advanced Member
    Posts:565
    Avatar

    --
    04 Jul 2008 06:07 AM
    The processor platform is irrelevant to WinRM.
    Community Director, PowerShellCommunity.org
    Co-host, PowerScripting Podcast
    Author, TechProsaic
    Marco ShawUser is Offline
    Veteran Member
    Veteran Member
    Posts:1684
    Avatar

    --
    07 Jul 2008 05:49 PM
    Posted By kartik_maguwala on 07/03/2008 11:42 PM
    I am running script from MS 2003 64 bit and try to connect Win XP 32 bit machine.
    Is it work?

    I have installed Powershell 2.0 CTP on both machine.

    Please reply..

    - Kartik


    Very important to note here whether you have CTP1 (November 2007) or CTP2 (April 2008).  CTP1 depends on WinRM 1.1, and CTP2 depends on WinRM 2.0 CTP1 or CTP2.

    CTP1 with WinRM 1.1 work on XP, but you have to connect to another system with CTP1 and WinRM 1.1 installed.  You can't mix and match CTP versions and WinRM versions.

    Now, you mention XP...  Do you have IIS running?  WinRM 1.1 and IIS on XP can't run on the same port.  If you have IIS, shut it down, retry remote commands to see if that fixes you up.

    kilaruvUser is Offline
    New Member
    New Member
    Posts:1
    Avatar

    --
    09 Oct 2008 10:17 PM

    any budy help me

    1. How can i stop or start a remote system services through powr shell?

    kilaruv

    india ,pune.

    Marco ShawUser is Offline
    Veteran Member
    Veteran Member
    Posts:1684
    Avatar

    --
    10 Oct 2008 05:43 AM
    There are various ways to accomplish this.

    Using WMI:
    (gwmi win32_service -filter "Name='w32time'").stopservice()
    (gwmi win32_service -filter "Name='w32time'").startservice()

    Do something like this for a remote machine:
    (gwmi win32_service -filter "Name='w32time'" -computername "some_computer").stopservice()
    (gwmi win32_service -filter "Name='w32time'" -computername "some_computer").startservice()
    Marco ShawUser is Offline
    Veteran Member
    Veteran Member
    Posts:1684
    Avatar

    --
    10 Oct 2008 05:43 AM
    Oh, this is in a v2 forum... Are you using v1 or v2? There's some other methods in v2 that are more "built-in".
    cairullUser is Offline
    New Member
    New Member
    Posts:1
    Avatar

    --
    15 Feb 2009 07:18 PM
    Mailbox creation was not successful. Error= Cannot invoke pipeline because runspace is not in the Opened state. Current state of runspace is 'Broken'..

    What is that error? please someone help me..
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer