troubleshooting Question

Restarting a service in a non-admin account

Avatar of kd36939
kd36939Flag for United States of America asked on
PowershellVMwareWindows 7
3 Comments2 Solutions873 ViewsLast Modified:
We use location based printing in our VDI environment. However, the printers disappear for random users and the only way to get the printers back is to restart the "TP AutoConnect Service" . The users does not have admin rights on their machine, so the  way you restart the service is to VNC in their VDI, run services.msc as an admin user and restart the service.

But this process is not efficient.

I want a way where a script runs in the background and restarts the service every two hours or so without the users knowledge. The script should not prompt the user for any username or password.  Probably a scheduled task?

Can the scripting gurus help me with it?

Thank you in advance.
Prashant Girennavar

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros