[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1261
  • Last Modified:

run command line as administrator


Quick question - I have a script I need to run from a command line as an administrator (with arguments).  

Is there a way of doing this from a non-privileged account (e.g. like starting a root session in Linux)?

Thanks in advance.
0
domszanto
Asked:
domszanto
1 Solution
 
B-M-CCommented:
runas /user:admnistrator [command]
runas /? for help

Also see psexec from Sysinternals which will let you run a coomand as another user on a remote PC
http://www.sysinternals.com/Utilities/PsExec.html
0
 
domszantoAuthor Commented:
Thanks very much!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now