Stop-Service -Name 'Spooler'
Set-Service -Name 'Spooler' -StartupType Disabled
Re-enable the service
Start-Service -Name 'Spooler'
Set-Service -Name 'Spooler' -StartupType Automatic
Stop-Service -Name 'Spooler'
Set-Service -Name 'Spooler' -StartupType Disabled
Re-enable the service
Start-Service -Name 'Spooler'
Set-Service -Name 'Spooler' -StartupType Automatic