Jump to content

RunAsWait and O.S. > win7


Recommended Posts

Good morning to the whole forum.
In the company where I work a script is used, invoked at the time of logon to the domain, which checks the installation status of the antivirus client and, if it does not meet the minimum requirements, the setup.exe is run for installation and / or update antivirus client.
Starting from the version of the Win8.1 operating system, the execution of the setup command ends in error due to security problems.

Below is an excerpt of the script in the section where setup.exe is executed.

"...

RunAsWait("<user>","<domain>","<pwd>",0,$server,@TempDir,@SW_HIDE)

..."

Please Note:

- the user is a domain user that is a member of the Domain Users group that is a member of the local Administrators group of the computer on which the script runs;

- the $server variable represents the network path where the setup executable is located.

I searched the net and carried out various tests but without yet finding the one that solved the problem of non-execution.
 

Thanks in advance.

 

Link to comment
Share on other sites

Try running it from a "Computer Startup" Script via GPO this should run the software as System account and means you no longer require username and password and shouldn't invoke UAC prompt if enabled.  You can also try having the script download the installer locally and remove the folder afterwards as I've found some AV can interrupt network communication stopping the install from finishing, having the software run locally should overcome that issue.

Link to comment
Share on other sites

"You can also try to download the installer locally and remove the folder afterwards."

Errata Corrige - All the antivirus client installation package is copied locally before attempting to run the setup. I was wrong to say that the program was run from a network resource.

Link to comment
Share on other sites

  • Moderators
7 minutes ago, seagull62 said:

UAC disabled

So would you please share the exact wording of the "security problem"? Not giving us a lot to work with.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Log on as 006101... run C:\Users\006101~1\AppData\Local\Temp\sep_inst\setup.exe manually whats the result, if it popups waiting for more info then you need to add switches to your command to make it run silent.  What AV are you installing?  What switches are you using?

Link to comment
Share on other sites

" What AV are you installing? " SEP (14)

"What switches are you using?"  If you are referring to the switches of the AV client installation executable, none: setup.exe is executed

Thanks for interesting....

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...