# Showing stopped service of windows

**URL:** <https://forums.powershell.org/t/showing-stopped-service-of-windows/17295>\
**Category:** PowerShell Help\
**Created:** [August 15, 2021, 6:35am UTC](https://forums.powershell.org/t/showing-stopped-service-of-windows/17295 "2021-08-15T06:35:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Rohit](https://forums.powershell.org/u/Rohit)\
**Post date:** [August 15, 2021, 6:35am UTC](https://forums.powershell.org/t/showing-stopped-service-of-windows/17295/1 "2021-08-15T06:35:59Z")

</div>

Hi Team,  
I am trying to fetch the status of windows update service on multiple remote server but I am getting always stopped but when I login on server and checked service is running. And then I run the script again then it showing running

First time script showing stopped service but when I take a rdp of server and then I run script then output is correct.

Please help the reason on this

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [August 15, 2021, 9:09am UTC](https://forums.powershell.org/t/showing-stopped-service-of-windows/17295/2 "2021-08-15T09:09:13Z")

</div>

Please post the command or script you’re using to check the service on the remote server.

---

<div class="post-metadata">

**Author:** ![dhrubbharali](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/dhrubbharali/32/47_2.png) [@dhrubbharali](https://forums.powershell.org/u/dhrubbharali)\
**Post date:** [August 15, 2021, 6:05pm UTC](https://forums.powershell.org/t/showing-stopped-service-of-windows/17295/3 "2021-08-15T18:05:06Z")

</div>

Not sure if I am missing anything but it looks like in your script you are not using Get-service command properly.

```auto
get-service -ComputerName "xyz.domain" -Name wuauserv

```

Also if you need any help I have done similar scripts which might help you out. Check it out in the below link.  
[https://powershellguru.com/powershell-script-repository](https://powershellguru.com/powershell-script-repository)

---

<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:22pm UTC](https://forums.powershell.org/t/showing-stopped-service-of-windows/17295/4 "2024-05-16T20:22:01Z")

</div>


