Search code examples
powershellwindows-server-2003powershell-remoting

How to make PowerShell V2 Remoting work with Windows Server 2003?


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?


Solution

  • 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