run command line as administrator

Posted on 2006-05-30
Last Modified: 2009-01-19

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.
Question by:domszanto
    LVL 5

    Accepted Solution

    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

    Author Comment

    Thanks very much!
    LVL 3

    Expert Comment

    by:Suroj Shrestha

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
    If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article ( first and run the tool TDSSKiller ( to get rid of the infection. Once done, and if the …
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now