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. In an ideal world I would like to use a script file that could do the following…

  1. Ask a user to enter the 4 digit site number i.e. 0886
  2. The script would then continue running and check the status of the 2 services i.e. ServiceName1 and ServiceName2 for all of the computers on the network that have 0886 as their site.
    There could be as many as 12 computers on the network with the same site so I need to display and write the results to a file called Site_nnnn_Results.txt where nnnn would be the site number.

Any help would be really appreciated as I said I’m a real newbee.

Kind Regards
Alan

5 Spice ups

It definately could be done in powershell, but you may also want to look at PDQ Inventory. You should be able to get the same info and so much more.

@waitsian-pdq

If trying in Powershell, share what you have got so far and I’m sure there will be others that can add some pointers.

Hi and welcome to the PowerShell forum. We’re not a script writing service, just a bunch of volunteers. What have you tried, what’s working, not working, what’s expected?

Please read the sticky in the forum with additional guidelines when asking for help.