![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Problems with Powershell CTP2 Hi. I got a problem setting up a runspace and I'm turning to this board since I have not been able to find a solution any where else. the problem seems to be with WinRM this is the errormessage I get: = The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the puter is not joined to a domain, then HTTPS transport must be used or the destination machine must be added to the ts configuration setting. Use winrm.cmd to configure TrustedHosts. You can get more information about that by runn lowing command: winrm help config. r: -2144108316 0x803380E4 lient cannot process the request. If the authentication scheme is different from Kerberos, or if the client comput oined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts on setting. Use winrm.cmd to configure TrustedHosts. You can get more information about that by running the follow : winrm help config. can anyone point me in the right direction? any answers will be highly appreaciated! |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Problems with Powershell CTP2 Quote: > = The WinRM client cannot process the request. If the authentication scheme > is different from Kerberos, or if the > puter is not joined to a domain, then HTTPS transport must be used or the > destination machine must be added to the > ts configuration setting. Use winrm.cmd to configure TrustedHosts. You can > get more information about that by runn > lowing command: winrm help config. > > r: -2144108316 0x803380E4 > lient cannot process the request. If the authentication scheme is different > from Kerberos, or if the client comput > oined to a domain, then HTTPS transport must be used or the destination > machine must be added to the TrustedHosts > on setting. Use winrm.cmd to configure TrustedHosts. You can get more > information about that by running the follow > : winrm help config. PSH> winrm set winrm/config/client `@`{TrustedHosts=`"`*`"`} Sounds like you need to open up the client connection permissions. You may not want to open it up to anywhere though. Something like this should also work: PSH> winrm set winrm/config/client `@`{TrustedHosts=`"server1_IP,server2_IP"`} (one line above) Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Problems with Powershell CTP2 Thanks alot, this seems to have done something atleast. Still not able to connect to the server. But now I'm getting another error ![]() invoke-expression -computername 158.38.00.000 -command "set-location c:\" Invoke-Expression : [158.38.00.000] WS-Management could not connect to the specified destination: (158.38.00.000:80). At line:1 char:18 + invoke-expression <<<< -computername 158.38.00.000 -command "set-location c:\test" PS:[fatrat] >winrm id -r:158.38.00.000 -u:hpr-38\Administrator Enter the password for 'hpr-38\Administrator' to connect to '158.38.00.000': WSManFault Message = The WinRM client cannot complete the operation within the time specified. Check if the machine name is valid an d is reachable over the network and firewall exception for Windows Remote Management service is enabled. Error number: -2144108250 0x80338126 The WinRM client cannot complete the operation within the time specified. Check if the machine name is valid and is reachable over the network and firewall exception for Windows Remote Management service is enabled. Atleast I got one step further (I think) Maybe someone got any input where I should start looking for a solution to this problem, The firewall on both computers are disabled so I don't think that's the problem. I'm also working with remote desktop on the server so I'am sure it's "reachable" While I'm typing I managed to connect from the server to the client. So your solution definitely did some good! thanks alot. Really helpfull, i've been struggling with this for hours now ![]() "Marco Shaw [MVP]" wrote: Quote: > Quote: > > = The WinRM client cannot process the request. If the authentication scheme > > is different from Kerberos, or if the > > puter is not joined to a domain, then HTTPS transport must be used or the > > destination machine must be added to the > > ts configuration setting. Use winrm.cmd to configure TrustedHosts. You can > > get more information about that by runn > > lowing command: winrm help config. > > > > r: -2144108316 0x803380E4 > > lient cannot process the request. If the authentication scheme is different > > from Kerberos, or if the client comput > > oined to a domain, then HTTPS transport must be used or the destination > > machine must be added to the TrustedHosts > > on setting. Use winrm.cmd to configure TrustedHosts. You can get more > > information about that by running the follow > > : winrm help config. > Try running this: > PSH> winrm set winrm/config/client `@`{TrustedHosts=`"`*`"`} > > Sounds like you need to open up the client connection permissions. > > You may not want to open it up to anywhere though. > > Something like this should also work: > > PSH> winrm set winrm/config/client > `@`{TrustedHosts=`"server1_IP,server2_IP"`} > > (one line above) > > Marco > > -- > Microsoft MVP - Windows PowerShell > http://www.microsoft.com/mvp > > PowerGadgets MVP > http://www.powergadgets.com/mvp > > Blog: > http://marcoshaw.blogspot.com > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Problems with Powershell CTP2 Is there some websites that got a good introduction to using Powershell Remoting over the internet? I could really use some help. Right now I'am more or less tumbling around in the dark "Marco Shaw [MVP]" wrote: Quote: > Quote: > > = The WinRM client cannot process the request. If the authentication scheme > > is different from Kerberos, or if the > > puter is not joined to a domain, then HTTPS transport must be used or the > > destination machine must be added to the > > ts configuration setting. Use winrm.cmd to configure TrustedHosts. You can > > get more information about that by runn > > lowing command: winrm help config. > > > > r: -2144108316 0x803380E4 > > lient cannot process the request. If the authentication scheme is different > > from Kerberos, or if the client comput > > oined to a domain, then HTTPS transport must be used or the destination > > machine must be added to the TrustedHosts > > on setting. Use winrm.cmd to configure TrustedHosts. You can get more > > information about that by running the follow > > : winrm help config. > Try running this: > PSH> winrm set winrm/config/client `@`{TrustedHosts=`"`*`"`} > > Sounds like you need to open up the client connection permissions. > > You may not want to open it up to anywhere though. > > Something like this should also work: > > PSH> winrm set winrm/config/client > `@`{TrustedHosts=`"server1_IP,server2_IP"`} > > (one line above) > > Marco > > -- > Microsoft MVP - Windows PowerShell > http://www.microsoft.com/mvp > > PowerGadgets MVP > http://www.powergadgets.com/mvp > > Blog: > http://marcoshaw.blogspot.com > |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Problems with Powershell CTP2 Quote: > While I'm typing I managed to connect from the server to the client. So your > solution definitely did some good! thanks alot. Really helpfull, i've been > struggling with this for hours now ![]() Marco |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Problems with Powershell CTP2 Hi Marco, I've same problem when I try to connect to remote computer by command "Invoke-Expression" I got error message as below. PS C:\> Invoke-Expression -computername 172.25.199.19 -command "Get-ChildItem C:\Scripts" Invoke-Expression : [172.25.199.19] WS-Management could not connect to the spec ified destination: (172.25.199.19:80). At line:1 char:18 + Invoke-Expression <<<< -computername 172.25.199.19 -command "Get-ChildItem C:\Scripts" I use WinXP SP2 and already install PowerShell v.2 CTP + WinRM for XP. Could you please help suggestion how to solve this problem and connect to remote machine? Finally : My purpose is connect to remote computer for display "Alert Message Box" at remote computer. Can I do this please advice? Thanks "Marco Shaw [MVP]" wrote: Quote: > Quote: > > While I'm typing I managed to connect from the server to the client. So your > > solution definitely did some good! thanks alot. Really helpfull, i've been > > struggling with this for hours now ![]() > I'm sorry... Does this mean you're working now? > > Marco > |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Problems with Powershell CTP2 Paiboon wrote: Quote: > Hi Marco, > > I've same problem when I try to connect to remote computer by command > "Invoke-Expression" I got error message as below. > > PS C:\> Invoke-Expression -computername 172.25.199.19 -command > "Get-ChildItem C:\Scripts" > Invoke-Expression : [172.25.199.19] WS-Management could not connect to the > spec > ified destination: (172.25.199.19:80). > At line:1 char:18 > + Invoke-Expression <<<< -computername 172.25.199.19 -command > "Get-ChildItem C:\Scripts" > > I use WinXP SP2 and already install PowerShell v.2 CTP + WinRM for XP. > > Could you please help suggestion how to solve this problem and connect to > remote machine? > > Finally : My purpose is connect to remote computer for display "Alert > Message Box" at remote computer. Can I do this please advice? PS> winrm id -r:127.0.0.1 PS> winrs -r:http://127.0.0.1 hostname Plugin your remote IP where I have 127.0.0.1 above. That's assuming you're using an account that has remote access. You should be able to use PowerShell remoting to call a remote script to run that alert display... We need to make sure you have remote access first. Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #8 (permalink) |
| | Re: Problems with Powershell CTP2 Hi Marco, I've try your command but got error from all command as below. PS C:\> winrm id -r:127.0.0.1 WSManFault Message = The WS-Management service does not support the request. Error number: -2144108428 0x80338074 The service returned a response that indicates that the method is unsupported. PS C:\> winrm id -r:172.25.199.19 WSManFault Message = Access is denied. Error number: -2147024891 0x80070005 Access is denied. PS C:\> winrs -r:http://127.0.0.1 hostname Winrs error:The WS-Management service does not support the request. PS C:\> winrs -r:http://172.25.199.19 hostname Winrs error:Access is denied. Next how can I do please help advice? ============================================ "Marco Shaw [MVP]" wrote: Quote: > Paiboon wrote: Quote: > > Hi Marco, > > > > I've same problem when I try to connect to remote computer by command > > "Invoke-Expression" I got error message as below. > > > > PS C:\> Invoke-Expression -computername 172.25.199.19 -command > > "Get-ChildItem C:\Scripts" > > Invoke-Expression : [172.25.199.19] WS-Management could not connect to the > > spec > > ified destination: (172.25.199.19:80). > > At line:1 char:18 > > + Invoke-Expression <<<< -computername 172.25.199.19 -command > > "Get-ChildItem C:\Scripts" > > > > I use WinXP SP2 and already install PowerShell v.2 CTP + WinRM for XP. > > > > Could you please help suggestion how to solve this problem and connect to > > remote machine? > > > > Finally : My purpose is connect to remote computer for display "Alert > > Message Box" at remote computer. Can I do this please advice? > OK, then drop down to plain old winrm to see if that works: > > PS> winrm id -r:127.0.0.1 > PS> winrs -r:http://127.0.0.1 hostname > > Plugin your remote IP where I have 127.0.0.1 above. That's assuming > you're using an account that has remote access. > > You should be able to use PowerShell remoting to call a remote script to > run that alert display... > > We need to make sure you have remote access first. > > Marco > > > -- > Microsoft MVP - Windows PowerShell > http://www.microsoft.com/mvp > > PowerGadgets MVP > http://www.powergadgets.com/mvp > > Blog: > http://marcoshaw.blogspot.com > |
My System Specs![]() |
| | #9 (permalink) |
| | Re: Problems with Powershell CTP2 Paiboon wrote: Quote: > Hi Marco, > > I've try your command but got error from all command as below. > > PS C:\> winrm id -r:127.0.0.1 > WSManFault > Message = The WS-Management service does not support the request. > > Error number: -2144108428 0x80338074 > The service returned a response that indicates that the method is unsupported. > > PS C:\> winrm id -r:172.25.199.19 > WSManFault > Message = Access is denied. > > Error number: -2147024891 0x80070005 > Access is denied. > > PS C:\> winrs -r:http://127.0.0.1 hostname > > Winrs error:The WS-Management service does not support the request. > > PS C:\> winrs -r:http://172.25.199.19 hostname > > Winrs error:Access is denied. Do you have IIS installed/running? WinRM, on XP only, does not work properly when IIS is also running. I know this was the case for sure with PowerShell v2 CTP1 and WinRM 1.0, it might also be the case with v2 CTP2. That gets me thinking... You're running v2 CTP1 and WinRM 1.0 right? v2 CTP2 works on XP, *but* it requires WinRM 2.0 CTP, and that isn't supported on XP. Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Graphical Windows PowerShell V2 CTP2 | PowerShell | |||
| Please share some tips on powershell performance - ctp2 | PowerShell | |||
| Powershell CTP2 ScriptCmdlet Samples problem | PowerShell | |||
| Sample: Debugger for Graphical PowerShell V2 CTP2 | PowerShell | |||
| RE: PowerShell v2 CTP2 is out! | PowerShell | |||