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?
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, 2022
Should 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.
- AB21805Mar 23, 2022Bronze Contributor
So I have packaged the ps1 as the set up file and put the install/uninstall command on intune as: powershell -ex bypass -file Windows10_Restartservice.ps1
This deploys to the device and a shortcut is created (Which doesnt link to anything) but the content within the folder 'restartservice' doesn't seem to be pushed to the devices within the folder that is created via the script.
Please help!