You can try this code:
'This code will stop and start the print spooler service
'---SCRIPT CONFIGURATION---
strComputer = "."
'---END CONFIGURATION---
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name='Spooler'")
For each objService in colServiceList
errReturn = objService.StopService()
Next
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name='Spooler'")
For each objService in colServiceList
errReturn = objService.StartService()
Next
'WScript.Echo ("Script Complete")
However to run this script manually (as is sometimes required) you have to log in to the remote machine via terminal services and this can be slow if your machine is not fast.
Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.