Jump to content
Sign in to follow this  
richardson

RunAs

Recommended Posts

richardson

Hello,

Please forgive me if this is a stupid post but here is my situation.

I need to install a management agent for our Anti Virus but the batch file provided only works with

accounts that have admin rights. Since most of our users do not have admin rights, I would

like to create an executional with the a domain Admin account provided. I assume I need to use Runas.

I have not been successful at getting this to work so I thought I would see if anyone had any ideas.

Here is the batch I need to work with. Thank you in advance for your help!

@echo off

call "%~dp0\AntiVir_Security_Management_Center_Agent.exe" /s /f1"%~dp0\installsmcagent.iss"

Share this post


Link to post
Share on other sites
PsaltyDS

Hello,

Please forgive me if this is a stupid post but here is my situation.

I need to install a management agent for our Anti Virus but the batch file provided only works with

accounts that have admin rights. Since most of our users do not have admin rights, I would

like to create an executional with the a domain Admin account provided. I assume I need to use Runas.

I have not been successful at getting this to work so I thought I would see if anyone had any ideas.

Here is the batch I need to work with. Thank you in advance for your help!

@echo off

call "%~dp0\AntiVir_Security_Management_Center_Agent.exe" /s /f1"%~dp0\installsmcagent.iss"

Really, REALLY bad idea to put your domain admin credentials in a script. Compiled scripts are only protected from casual snooping and should NOT be considered secure! Since you have a domain kick off the update remotely with something like SCHTASK.EXE.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.