Skip to main content
PDQ.com mobilePDQ.com desktop
Support
Try Now

Services: Seeing both Name and displayName in Windows Powershell

Shane CorellianShane Corellian
·

Sometimes you need to know either the name of a service or its display name. What can be frustrating is when these two names, which refer to the same service, are so completely different that there is no resemblance between the two.

For instance if you wanted to see if the wuauserv service was running, you could run a net start and get a list of all running services. But net start only shows running services. What’s if it’s stopped or disabled? Worse yet, what if you don’t know its display name? This is where PowerShell comes in.

The Display Name for wuauserv is “Automatic Updates”. If you know at least one of these “names” you can easily see both using Windows PowerShell command:

get-service -displayName "Automatic Updates"

or:

get-service -Name wuauserv

Both provide the same output, which gives you more information than our old friend net start does. You can see the state of the service and make changes on the fly.

  • Did you know that PDQ Deploy has a PowerShell step you can use to deploy your scripts?


This blog post is part of a series on PowerShell:

Don't miss the next post!

8 ways to protect your business from ransomware

Ransomware attacks are on the rise, and it's only a matter of time before your business becomes a target. Learn how to protect yourself before it's too late.

General
PDQ.com
© 2021 PDQ.com Corporation
Products
  • PDQ Deploy ®
  • PDQ Inventory ®
  • SimpleMDM
  • Pricing
  • Downloads
  • Licensing
  • Buy