views:

539

answers:

3

I was testing PowerShell remoting:

  1. I installed PowerShell V2 CTP3 on my Windows XP desktop
  2. I installed WS-Management v1.1 on my Windows 2003 R2 server, which has its firewall disabled and no PowerShell installed.
  3. Both machines have .NET Framework 3.5 SP1

When I type on my desktop:

Get-WmiObject -ComputerName computerNameHere Win32_Service

I got the following error:

Get-WmiObject : Access denied. (HRESULT exception: 0x80070005 (E_ACCESSDENIED))

What else I have to do to get this work?

A: 

PSH V2 uses WinRM 2.0 (not 1.1), and this is only available in its CTP form currently, and limited to Vista and 2008.

PSH team blog entries have mentioned (IIRC) this being a CTP limitation, but currently unclear how it will be resolved.

Richard
+3  A: 

It has nothing to do with Remoting. PowerShell Remoting is not supported on XP/2003, only Vista/2008 and up (though a WSMan update should be released for XP/2003 in the next few months).

Do you have admin priviligies on the remote box? If not, try with the credential parameter:

Get-WmiObject -ComputerName computerNameHere Win32_Service -Credential $cred

Shay Levy
A: 

An alternative is to use another remoting solution like the /n software PowerShell Server: www.nsoftware.com/powershell/

Lance Robinson

related questions