Reputation: 90475
I was testing PowerShell remoting:
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?
Upvotes: 2
Views: 3234
Reputation: 283
Though this post is more about wmi than powershell remoting, here is my experience with powershell remoting on a windows 2003 machine. It works fine with a admin user. But while doing remoting with a non-admin user on 2003, you can run powershell cmdlets fine, but can't run any.
http://powershell.com/cs/forums/t/16205.aspx
Upvotes: 0
Reputation: 15001
The issue the user is having is not with PowerShell Remoting. Get-WmiObject -ComputerName computerNameHere
uses WMI Remoting instead.
Upvotes: 0
Reputation: 56
An alternative is to use another remoting solution like the /n software PowerShell Server: www.nsoftware.com/powershell/
Upvotes: 0
Reputation: 126732
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
Upvotes: 3