![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | PSJob+WinRM=Connection attempt failed. Hello. Please help me to deside, where is error: PS C:\> $job=Start-PSJob -command 'ls -rec c:\' PS C:\> Get-PSJob SessionId Name State HasMoreData Command --------- ---- ----- ----------- ------- 1 Failed False ls - rec c:\ PS C:\> $job.ChildJobs[0].JobStateInfo.Reason Connection attempt failed. PS C:\> Get-ExecutionPolicy Unrestricted PS C:\> (Get-Service -name 'winrm').status Running PS C:\> winrm id IdentifyResponse ProtocolVersion = http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd ProductVendor = Microsoft Corporation ProductVersion = OS: 5.1.2600 SP: 2.0 Stack: 1.1 PS C:\> netsh firewall show portopening Port Protocol Mode Name ------------------------------------------------------------------- 80 TCP Enable HTTP 443 TCP Enable HTTPS PS C:\> (winrm e wmi/root/cimv2/win32_operatingsystem)| ?{$_ -match '(caption|version)'} Caption = Microsoft Windows XP Home Edition CSDVersion = Service Pack 2 PlusVersionNumber = null ServicePackMajorVersion = 2 ServicePackMinorVersion = 0 Version = 5.1.2600 PS C:\> $PSVersionTable Name Value ---- ----- CLRVersion 2.0.50727.1433 BuildVersion 6.1.6480.1 PSVersion 2.0 PSCompatibleVersions {1.0, 2.0} |
My System Specs![]() |
| | #2 (permalink) | ||||||||||||
| Guest | Re: PSJob+WinRM=Connection attempt failed. > PS C:\> (winrm e wmi/root/cimv2/win32_operatingsystem)|
and retry (assuming you don't have a problem stopping them). There is an issue with XPSP2/IIS/winrm 1.1 that hasn't been officially documented yet, as far as I know. Marco | ||||||||||||
My System Specs![]() | |||||||||||||
| | #3 (permalink) | ||||||||||||||||||||||||
| Guest | Re: PSJob+WinRM=Connection attempt failed. On 12 อมา, 04:00, "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote:
Please, tell whether there is a bug in the code above? Thank you for attention. | ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #4 (permalink) | ||||||||||||
| Guest | Re: PSJob+WinRM=Connection attempt failed.
just to compare whether it works: http://blogs.msdn.com/powershell/arc...rshell-v1.aspx Also check to see if all of this works (in order): $r=new-runspace get-runspace remove-runspace $r Marco | ||||||||||||
My System Specs![]() | |||||||||||||
| | #5 (permalink) | ||||||||||||||||||||||||
| Guest | Re: PSJob+WinRM=Connection attempt failed. On 12 อมา, 04:59, "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote:
New-Runspace : [localhost] Access denied. At line:1 char:16 + $r=new-runspace <<<< What's wrong? | ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #6 (permalink) | ||||||||||||
| Guest | Re: PSJob+WinRM=Connection attempt failed.
more PowerShell consoles running at the same time? Basically, a runspace is practically the same as a PowerShell instance, but it cannot interact with the Desktop. *-PSJob uses these runspaces to run things in the background... Might want to try Process Explorer (http://www.microsoft.com/technet/sys...ssMonitor.mspx) for us to see what might be failing... Marco | ||||||||||||
My System Specs![]() | |||||||||||||
| | #7 (permalink) | ||||||||||||||||||||||||
| Guest | Re: PSJob+WinRM=Connection attempt failed. You can have multiple PS windows running on XP Home - no problem. I'm seeing the same problem on Vista SP1 - which is odd as I remember testing out PSjobs last year. -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "Marco Shaw [MVP]" wrote:
| ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #8 (permalink) |
| Guest | Re: PSJob+WinRM=Connection attempt failed. The answer is No. Can you tell what services SHOULD BE run except WinRM |
My System Specs![]() |
| | #9 (permalink) | ||||||||||||
| Guest | Re: PSJob+WinRM=Connection attempt failed. RichS wrote:
Marco | ||||||||||||
My System Specs![]() | |||||||||||||
| | #10 (permalink) | ||||||||||||
| Guest | Re: PSJob+WinRM=Connection attempt failed. ajax76 wrote:
No, you can't run 2 PSH consoles at the same time? Marco | ||||||||||||
My System Specs![]() | |||||||||||||
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A connection attempt failed... | Ellebrius | Gaming | 6 | 07-14-2008 06:18 AM |
| winrm connection to custom web service | Simon | PowerShell | 4 | 05-02-2008 09:48 AM |
| PSJob+WinRM=Connection attempt failed. | ajax76 | PowerShell | 0 | 03-11-2008 01:02 PM |
| psjob - Connection attempt failed. / Server execution failed | Robin Moffatt | PowerShell | 10 | 02-06-2008 06:38 AM |
| Logon Attempt Failed /w Remote Desktop Connection | Curtis M. | Vista General | 3 | 09-09-2007 03:01 PM |