Announcement

Collapse
No announcement yet.

Run app from script as admin user

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run app from script as admin user

    OK...I'm in the process of migrating from Netware to AD (yes I know, it's about time) and I have a VB script that calls an EXE to remove the Netware Client. However, the EXE requires admin rights and none of my users have admin rights.

    So, how do I get the script to allow me to run an EXE as a different user?

    Thanks

  • #2
    Re: Run app from script as admin user

    Run it as a startup script. The computer will use the system account then to run that script.
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment


    • #3
      Re: Run app from script as admin user

      To run as a startup script you still need to get the thing into the registry, this gives you a similar permissions issue. Another way to get the job done is PsExec.

      technet.microsoft.com/en-us/sysinternals/bb897553.aspx

      This allows you to run the script remotely (with user credentials supplied) while the machine is on and connected to the network.

      One method I have used is as follows
      1. Make the remote script I run on the client machine write a file / or delete a file from a share.
      2. Repeatedly run a scheduled script on a secure machine. On a machine by machine basis the script evaluates if a machine has been done (based on the files in your share) and runs the PsExec command for each machine as required
      Last edited by RMortimer; 10th October 2008, 21:52.

      Comment


      • #4
        Re: Run app from script as admin user

        Originally posted by RMortimer View Post
        To run as a startup script you still need to get the thing into the registry, this gives you a similar permissions issue.
        Where are you talking about????
        The System account has per default full control on every item in the registry..
        Marcel
        Technical Consultant
        Netherlands
        http://www.phetios.com
        http://blog.nessus.nl

        MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
        "No matter how secure, there is always the human factor."

        "Enjoy life today, tomorrow may never come."
        "If you're going through hell, keep going. ~Winston Churchill"

        Comment

        Working...
        X