troubleshooting Question

Scheduling Stop/Start Routing and Remote Access

Avatar of sglee
sglee asked on
Remote AccessWindows OS
2 Comments1 Solution246 ViewsLast Modified:
Hi,
 
 I have Windows 2012 Server and Routing and Remote Access service stops at time for no good reason.
 So instead of troubleshooting the issue, I decide to run a scheduled task to stop/start RRAS service every hour or day using a batch file "Restart-RRAS.bat" with two commands
net stop remoteaccess
net start remoteaccess

But I learned that I could not run it in normal command window. Rather I have open "Command Prompt(Administrator)" to run these commands. I also learned that I could use RUNAS command like:
RUNAS /netonly /user:vpn\administrator cmd, but the problem is that I have to store password in a text file which I don't want to do.

Is there a better solution?

Thanks.
ASKER CERTIFIED SOLUTION
David Johnson, CD
The More I know, the more I don't know
Join our community to see this answer!
Unlock 1 Answer and 2 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 1 Answer and 2 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