# Displaying Services on a remote computer

**URL:** <https://forums.powershell.org/t/displaying-services-on-a-remote-computer/10937>\
**Category:** PowerShell Help\
**Created:** [July 7, 2018, 1:07am UTC](https://forums.powershell.org/t/displaying-services-on-a-remote-computer/10937 "2018-07-07T01:07:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe28a](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@joe28a](https://forums.powershell.org/u/joe28a)\
**Post date:** [July 7, 2018, 1:07am UTC](https://forums.powershell.org/t/displaying-services-on-a-remote-computer/10937/1 "2018-07-07T01:07:40Z")

</div>

Hello everyone,  
I am trying to run a PowerShell script that displays Windows Services on a Remote Computer using the correct security credentials however, I am being presented with the Error Response below; does anyone know why this is happening?, thank you in advance …

**PowerShell Code**  
$cred = get-Credential -credential domain\user\_name  
$computer = “Remote\_Hostname”  
Get-WMIObject Win32\_Service -computerName $computer -credential $cred

**Error Response**  
Get-WMIObject : Call was canceled by the message filter. (Exception from HRESULT: 0x80010002 (RPC\_E\_CALL\_CANCELED))  
At line:3 char:1

- Get-WMIObject Win32\_Service -computerName $computer -credential $cred
- 

```auto
  + CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
  + FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
```

---

<div class="post-metadata">

**Author:** ![richard-siddaway](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@richard-siddaway](https://forums.powershell.org/u/richard-siddaway)\
**Post date:** [July 7, 2018, 3:40am UTC](https://forums.powershell.org/t/displaying-services-on-a-remote-computer/10937/2 "2018-07-07T03:40:34Z")

</div>

This appears to be a WMI issue on the machine to which you’re trying to connect

Try RDPing into the server and making the call locally - if should still fail if its a WMI issue on that server

then try restarting the WMI service and run get-wmiobject again

if it still fails try running wbemtest

if you don’t get any success you may have to rebuild the WMI repository

---

<div class="post-metadata">

**Author:** ![js2010](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@js2010](https://forums.powershell.org/u/js2010)\
**Post date:** [July 7, 2018, 7:55am UTC](https://forums.powershell.org/t/displaying-services-on-a-remote-computer/10937/3 "2018-07-07T07:55:03Z")

</div>

You can try get-ciminstance instead, if wsman works instead of dcom.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:34pm UTC](https://forums.powershell.org/t/displaying-services-on-a-remote-computer/10937/4 "2024-05-16T20:34:45Z")

</div>


