IT Questions and Answers :)

animated-update-image-0026

COVID-19 India HEAT MAP

A message to our readers about COVID-19

With the uncertainty surrounding the outbreak of the corona virus. We want to reassure our reader stay safe and Healthy.Be aware and alert. Work as one nation. Sanitize and disinfect all equipment before entering your home, work and anywhere.

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