Forum Discussion
AB21805
Mar 18, 2022Bronze Contributor
Shortcut for user to run a service as admin - print spooler
Hi all, I need to create a shortcut or something that allows the logged on user to restart the print spooler as admin is this possible?
Mar 18, 2022
I created a blog a while ago when it was still necessary some times to restart the ime service to trigger some stuff
Can be used for the spooler service though..
https://call4cloud.nl/2020/11/the-non-admin-user-the-battle-of-restarting-services/
Can be used for the spooler service though..
https://call4cloud.nl/2020/11/the-non-admin-user-the-battle-of-restarting-services/
AB21805
Mar 18, 2022Bronze Contributor
Hi Rudy thanks for this.
Due to the print spooler requires another service to also restart would the powershell that I convert into a exe look like this:
net start Print Spooler
net stop Print Spooler
net stop PaperCut Direct Print Monitor
Net start PaperCut Direct Print Monitor
Due to the print spooler requires another service to also restart would the powershell that I convert into a exe look like this:
net start Print Spooler
net stop Print Spooler
net stop PaperCut Direct Print Monitor
Net start PaperCut Direct Print Monitor
- Mar 18, 2022Should be no problem... just add it to the script.
- AB21805Mar 21, 2022Bronze Contributor
I have got most pieces done except the install and uninstall cmd:
Also when creating the intune file what do I point it too?
- Mar 22, 2022the install cmd just point to the ps.1 file to launch powershell.. but you could also skip that install.cmd and just use the ps1 in intune so you could use that file as setup file for the app creation.