I am trying to execute a remote vbscript on a Windows Server 2012 machine. How do I execute a script in a cmd prompt with admin privileges? I tried using "runas" but it prompted for credentials. We need this to run automatically without the need for user interaction.
I saw this answer but it isn't working. When I run it, the cmd prompt just disappears with no error.
How to run vbs as administrator from vbs?
So to summarize, I need to execute a vbscript inside a cmd prompt that has elevated admin privileges. The script has to be automated because there are no users who can interactively provide credentials.