# Getting ComputerName(s) like string

**URL:** <https://forums.powershell.org/t/getting-computername-s-like-string/19059>\
**Category:** PowerShell Help\
**Created:** [April 11, 2022, 11:21am UTC](https://forums.powershell.org/t/getting-computername-s-like-string/19059 "2022-04-11T11:21:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [April 11, 2022, 12:59pm UTC](https://forums.powershell.org/t/getting-computername-s-like-string/19059/2 "2022-04-11T12:59:13Z")

</div>

Alan,

is this question related to your other question here in the forum?

> [@Hot to get multiple computer services status from user input](https://forums.powershell.org/t/hot-to-get-multiple-computer-services-status-from-user-input/19045):
>
> Hi, I’m pretty new to PowerShell so please excuse me if my question doesn’t make sense. We have a large number of pc’s on our network there are hundreds of them. The Pc’s have computer names that are in the following format AJE08860007. Where the first 4 digits (in this case 0886) identify the site the computers are situated in and the last four digits (0007 in this case) is the computer identification number. What I need to be able to do is check if 2 services are running on the computers.…

If your question is if the parameter `-ComputerName` of the cmdlet `Get-Service` accepts wildcard characters - the answer is - according to the available documentation - **No**.

> **[Get-Service (Microsoft.PowerShell.Management) - PowerShell](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-5.1)**
>
> The Get-Service cmdlet gets objects that represent the services on a local computer or on a remote computer, including running and stopped services. By default, when Get-Service is run without parameters, all the local computer's services are...

---

_[View the full topic](https://forums.powershell.org/t/getting-computername-s-like-string/19059)._
