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

Powershell v2 remoting not working?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-18-2008   #1 (permalink)
XXX
Guest


 

Powershell v2 remoting not working?

Get-process -computerName

Returns this error:

Get-Process : A parameter cannot be found that matches parameter name
'computerName'.

Same thing when using the -ComputerName parameter with get-service. Is this
a known issue?



My System SpecsSystem Spec
Old 01-18-2008   #2 (permalink)
RichS
Guest


 

RE: Powershell v2 remoting not working?

You have to use Invoke-Expression

Invoke-Expression -computername xxxxxx {Get-Process}

you need PowerShell V2 on both machines and win-rm installed and configured
on both

--
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


"XXX" wrote:
Quote:

> Get-process -computerName
>
> Returns this error:
>
> Get-Process : A parameter cannot be found that matches parameter name
> 'computerName'.
>
> Same thing when using the -ComputerName parameter with get-service. Is this
> a known issue?
>
>
>
My System SpecsSystem Spec
Old 01-18-2008   #3 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Powershell v2 remoting not working?

XXX wrote:
Quote:

> Get-process -computerName
>
> Returns this error:
>
> Get-Process : A parameter cannot be found that matches parameter name
> 'computerName'.
>
> Same thing when using the -ComputerName parameter with get-service. Is this
> a known issue?
>
>
Like Richard says, and just to clarify that the above is an error in the
help file as the -computerName parameter is not valid.

You can also check: get-command get-process|format-list

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 01-19-2008   #4 (permalink)
Jeffrey Snover[MSFT]
Guest


 

Re: Powershell v2 remoting not working?

Apologizes for that. On that one, the documentation reflects our desires
not our code. :-)
We have this working in the code now so the next release will have it.
jps

--
Jeffrey P. Snover[MSFT]
Partner Architect, Windows Server
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:OMs7BsfWIHA.5348@xxxxxx
Quote:

> XXX wrote:
Quote:

>> Get-process -computerName
>>
>> Returns this error:
>>
>> Get-Process : A parameter cannot be found that matches parameter name
>> 'computerName'.
>>
>> Same thing when using the -ComputerName parameter with get-service. Is
>> this a known issue?
>
> Like Richard says, and just to clarify that the above is an error in the
> help file as the -computerName parameter is not valid.
>
> You can also check: get-command get-process|format-list
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 01-22-2008   #5 (permalink)
Fred Bulger
Guest


 

Re: Powershell v2 remoting not working?

Thanks for the update Jeffrey!

I'm really looking forward to this ability. Of course I won't get near as
much exercise and it's all your fault! haha

Regards...

-Fred.

"Jeffrey Snover[MSFT]" <jsnover@xxxxxx> wrote in message
news:7503E0A4-3D8B-472B-A838-7F08E559BD2B@xxxxxx
Quote:

> Apologizes for that. On that one, the documentation reflects our desires
> not our code. :-)
> We have this working in the code now so the next release will have it.
> jps
>
> --
> Jeffrey P. Snover[MSFT]
> Partner Architect, Windows Server
> Microsoft Corporation
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> news:OMs7BsfWIHA.5348@xxxxxx
Quote:

>> XXX wrote:
Quote:

>>> Get-process -computerName
>>>
>>> Returns this error:
>>>
>>> Get-Process : A parameter cannot be found that matches parameter name
>>> 'computerName'.
>>>
>>> Same thing when using the -ComputerName parameter with get-service. Is
>>> this a known issue?
>>
>> Like Richard says, and just to clarify that the above is an error in the
>> help file as the -computerName parameter is not valid.
>>
>> You can also check: get-command get-process|format-list
>>
>> Marco
>>
>> --
>> Microsoft MVP - Windows PowerShell
>> http://www.microsoft.com/mvp
>>
>> PowerGadgets MVP
>> http://www.powergadgets.com/mvp
>>
>> Blog:
>> http://marcoshaw.blogspot.com
>

My System SpecsSystem Spec
Old 01-22-2008   #6 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Powershell v2 remoting not working?

XXX wrote:
Quote:

> Get-process -computerName
>
> Returns this error:
>
> Get-Process : A parameter cannot be found that matches parameter name
> 'computerName'.
>
> Same thing when using the -ComputerName parameter with get-service. Is this
> a known issue?
>
>
It isn't supported in the current CTP, most of this can be retrieved via
other means.

One method is WMI. If RPC is an issue and that's why you don't
currently use WMI, you should be able to tunnel your WMI requests via
WinRM (so it uses HTTP or HTTPS).

I'm trying out another option also...

I'll provide examples maybe by tomorrow.

Marco
My System SpecsSystem Spec
Old 01-22-2008   #7 (permalink)
Andy Schneider
Guest


 

Re: Powershell v2 remoting not working?

It's been a while since I was playing with V2 but isn't -computerName a
parameter for the invoke-expression cmdlet ?

So it would be something like invoke-expression -computername ServerA
"Get-Process"

Andy Schneider

http://www.get-powershell.com



"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:OixHHzSXIHA.1168@xxxxxx
Quote:

> XXX wrote:
Quote:

>> Get-process -computerName
>>
>> Returns this error:
>>
>> Get-Process : A parameter cannot be found that matches parameter name
>> 'computerName'.
>>
>> Same thing when using the -ComputerName parameter with get-service. Is
>> this a known issue?
>
> It isn't supported in the current CTP, most of this can be retrieved via
> other means.
>
> One method is WMI. If RPC is an issue and that's why you don't currently
> use WMI, you should be able to tunnel your WMI requests via WinRM (so it
> uses HTTP or HTTPS).
>
> I'm trying out another option also...
>
> I'll provide examples maybe by tomorrow.
>
> Marco
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
powershell -sta not working Doug PowerShell 3 06-02-2008 08:59 AM
Powershell 2.0 with remoting : ok what is Remoting ? IT Staff PowerShell 4 12-07-2007 01:20 AM
Powershell 2.0 and remoting Nex6 PowerShell 5 11-30-2007 03:46 AM
Powershell scripts not working with Vista powershell Ben PowerShell 20 10-10-2007 04:43 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