Multiple computers

Hello,
I have used the command below to start the sprint spooler on individual devices:

“get-service -ComputerName xxxx Spooler | Set-Service -StartupType Automatic | Start-Service”

However, I would like to tackle multiple computers on a network that I manage at once. Can you assist me with something/script I could use? Please let me know. Thank you.

Hi @perry.doegah

A simple way would be adding the servers to a variable like the following:

$srvName = "SADC01","SADC02"
get-service -ComputerName $srvName Spooler | Set-Service -StartupType Automatic | Start-Service

Depending on how many devices there are multiple options.

Good day Perry,

Hope you are well.

Just checking in to confirm you had been able to resolve?

Kind Regards

Thanks for the assist. I was looking at multiple devices. What multiple options are you referring to?

Just to be clear, are “SADC01"and SADC02” placeholders for server names? My first impression is to replace those names with the servers I manage.

Yes. For some reason, the spoolers kicked in. Must have been a network update pushed down from higher.

That’s correct, SADC01" and SADC02” placeholders for server names. This is one way of sending commands to multiple computers on a network. Just add your server names.

The multiple options were more like reading from a file.