Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

PSJob+WinRM=Connection attempt failed.

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-11-2008   #1 (permalink)
ajax76
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 SpecsSystem Spec
Old 03-11-2008   #2 (permalink)
Marco Shaw [MVP]
Guest


 

Re: PSJob+WinRM=Connection attempt failed.

> PS C:\> (winrm e wmi/root/cimv2/win32_operatingsystem)|
Quote:

> ?{$_ -match '(caption|version)'}
> Caption = Microsoft Windows XP Home Edition
> CSDVersion = Service Pack 2
> PlusVersionNumber = null
> ServicePackMajorVersion = 2
> ServicePackMinorVersion = 0
> Version = 5.1.2600
Are you also running IIS? If so, stop the admin,www, and ftp services
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 SpecsSystem Spec
Old 03-11-2008   #3 (permalink)
ajax76
Guest


 

Re: PSJob+WinRM=Connection attempt failed.

On 12 อมา, 04:00, "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com>
wrote:
Quote:
Quote:

> > 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
>
> Are you also running IIS? šIf so, stop the admin,www, and ftp services
> 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
NO IIS (I'm under XP Home Edition)
Please, tell whether there is a bug in the code above?
Thank you for attention.
My System SpecsSystem Spec
Old 03-11-2008   #4 (permalink)
Marco Shaw [MVP]
Guest


 

Re: PSJob+WinRM=Connection attempt failed.

Quote:

> NO IIS (I'm under XP Home Edition)
> Please, tell whether there is a bug in the code above?
> Thank you for attention.
Everything looks good from what I can tell. Can you try this method
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 SpecsSystem Spec
Old 03-11-2008   #5 (permalink)
ajax76
Guest


 

Re: PSJob+WinRM=Connection attempt failed.

On 12 อมา, 04:59, "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com>
wrote:
Quote:
Quote:

> > NO IIS (I'm under XP Home Edition)
> > Please, tell whether there is a bug in the code above?
> > Thank you for attention.
>
> Everything looks good from what I can tell. šCan you try this method
> just to compare whether it works:
>
> http://blogs.msdn.com/powershell/arc...oting-using-po...
>
> Also check to see if all of this works (in order):
> $r=new-runspace
> get-runspace
> remove-runspace $r
>
> Marco
PS C:\> $r=new-runspace
New-Runspace : [localhost] Access denied.
At line:1 char:16
+ $r=new-runspace <<<<

What's wrong?
My System SpecsSystem Spec
Old 03-11-2008   #6 (permalink)
Marco Shaw [MVP]
Guest


 

Re: PSJob+WinRM=Connection attempt failed.

Quote:

> PS C:\> $r=new-runspace
> New-Runspace : [localhost] Access denied.
> At line:1 char:16
> + $r=new-runspace <<<<
>
> What's wrong?
I'm not all that familiar with XP Home... Are you able to have 2 or
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 SpecsSystem Spec
Old 03-11-2008   #7 (permalink)
RichS
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:
Quote:

>
Quote:

> > PS C:\> $r=new-runspace
> > New-Runspace : [localhost] Access denied.
> > At line:1 char:16
> > + $r=new-runspace <<<<
> >
> > What's wrong?
>
> I'm not all that familiar with XP Home... Are you able to have 2 or
> 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 SpecsSystem Spec
Old 03-11-2008   #8 (permalink)
ajax76
Guest


 

Re: PSJob+WinRM=Connection attempt failed.

The answer is No.
Can you tell what services SHOULD BE run except WinRM
My System SpecsSystem Spec
Old 03-11-2008   #9 (permalink)
Marco Shaw [MVP]
Guest


 

Re: PSJob+WinRM=Connection attempt failed.

RichS wrote:
Quote:

> 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.
Run PSH as Admin and retry.

Marco
My System SpecsSystem Spec
Old 03-11-2008   #10 (permalink)
Marco Shaw [MVP]
Guest


 

Re: PSJob+WinRM=Connection attempt failed.

ajax76 wrote:
Quote:

> The answer is No.
> Can you tell what services SHOULD BE run except WinRM
Only winrm....

No, you can't run 2 PSH consoles at the same time?

Marco
My System SpecsSystem Spec
Closed Thread

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


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
ฉ Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51