Purge print driver cache on windows 7 with powershell script
Solution 1:
Just because you're using PowerShell doesn't mean you can't use good old commands like sc stop/start servicename
, net use
, etc.
If you truly need a system restart, you'd probably need two separate scripts.
What's the problem with deleting the contents of the printer driver directory? Or did you mean something else by "file management"?