IT Questions and Answers :)

Monday, November 11, 2019

What does this PowerShell command do: Get-Service *spool* | Restart-Service

What does this PowerShell command do: Get-Service *spool* | Restart-Service

  • Restarts any service that has "spool" in its name
  • Restarts the print spooler on the computer [No Custom Service This would be correct]
  • Restarts all services on the computer
  • Restarts the print spooler on the print server 
What does this PowerShell command do: Get-Service *spool* | Restart-Service

EXPLANATION


PS C:\Windows\system32> Get-Service *spool*

Status   Name               DisplayName
------   ----               -----------
Running  Spooler            Print Spooler
 

PS C:\Windows\system32> Get-Service *spool* | Restart-Service

Share:

0 comments:

Post a Comment

Popular Posts