We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Need to restart Windows Service with proper Log On ID & Password to recover run as a service right by script or batch file

High Priority
156 Views
1 Endorsement
Last Modified: 2019-11-26
I need to restart a service on a Windows 2016 Server - Globalscape EFT because almost every 24 hours the Logon USer ID for the service loses its "run as a service" right. Right now We're fixing it manually as it occurs by stopping the service and then going to the Log On Tab and reentering the password for the User which generates a popup of "Run as a Service granted" or something close to that. We then Start the Service and all is well for a time. Our main issue is if the right goes away at say 9pm and we don't have an admin in until 9am the next morning its down all night meaning noone can up or download data in the environment. In a 24/7 Health Insurance setting this is not good business. Ideally we'd love to somehow hook the method of doing this to SolarWinds so it can monitor the service and see when the SFTP goes down and then execute the batch file or PowerShell Script thuis minimizing the down time. Short of that we'd run it probably once every 2-4 hours and just have to live with the 0-4 hour downtime - not ideal but better than we have now which is a totally manual process that waits to  hear from a user that its down.
Comment
Watch Question

Abdul Jalil Abou AlzahabConfiguration Manager & Windows 10 Administrator
CERTIFIED EXPERT

Commented:
George R. KasicaEngineering Operations Analyst III

Author

Commented:
Group policy isn't controlled by this server and pushing it out might affect other Global Scape Servetrs - we have 4 more with no issues. I'm not a GPO Expert. How would I script this or control it in GPO - what would I set etc. assuming I can contain it to local GPO.
Support Servers Analyst
CERTIFIED EXPERT
Commented:
I imagine that in your domain log on as a service is prohibited, post a result typing a command rsop.msc on prompt command.

Check also this the path bellow, typing gpedit.msc

Screenshot_4.png

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
George R. KasicaEngineering Operations Analyst III

Author

Commented:
ID Was not in Domain wide GPO. Added and monitoring to see if that fixes it.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.