Avatar of badabing1
badabing1
 asked on

Script to intall software (Sophos Antivirus)

hi i got the below script from this link, i need to know how i can install sophos AV on a machine without admin rights? basically can someone edit this script for a logon user that i can use to install with admin rights please?
 

https://www.sophos.com/en-us/support/knowledgebase/13090.aspx


@ECHO OFF
 REM --- Check for an existing installation of Sophos AutoUpdate on 32-bit (the 'Sophos AutoUpdate Service' process)
 IF EXIST "C:\Program Files\Sophos\AutoUpdate\ALsvc.exe" goto _End
 REM --- Check for an existing installation of Sophos AutoUpdate on 64-bit (the 'Sophos AutoUpdate Service' process)
 IF EXIST "C:\Program Files (x86)\Sophos\AutoUpdate\ALSVC.exe" goto _End
 REM --- Check for an existing installation of Sophos Anti-Virus on 2003/XP (the SAV adapter config file)
 IF EXIST "C:\Documents and Settings\All Users\Application Data\Sophos\Remote Management System\3\Agent\AdapterStorage\SAV\SAVAdapterConfig" goto _End
 REM --- Check for an existing installation of Sophos Anti-Virus on Vista+ (the SAV adapter config file)
 IF EXIST "C:\ProgramData\Sophos\Remote Management System\3\Agent\AdapterStorage\SAV\SAVAdapterConfig" goto _End
 REM --- Deploy to Windows 2000/XP/2003/Vista/Windows7/2008/2008-R2
 \\SERVER\SophosUpdate\CIDs\Sxxx\SAVSCFXP\Setup.exe -updp "\\SERVER\SophosUpdate\CIDs\Sxxx\SAVSCFXP" -user USER -pwd PWD -mng yes
 REM --- End of the script
 :_End


Thanks
VB ScriptAnti-Virus AppsWindows BatchSophos

Avatar of undefined
Last Comment
Sudeep Sharma

8/22/2022 - Mon
NVIT

Without admin rights or System rights, you can't install many programs, especially programs like antivirus
badabing1

ASKER
i know, thats why i am asking is it possible to install the software with admin rights and add to this script?

so basically it logs on with admin rights like net logon user something.....

cheers
ASKER CERTIFIED SOLUTION
Darren Collins

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
NVIT

@badabing
To clarify Naz's #2... That would be done with the default domain group policy, or similar OU.

One 3rd party tool I like is PDQ Deploy. Easy to setup and use. Can also be installed on a workstation.

The free version may suffice in your case.
http://www.adminarsenal.com/pdq-deploy/
Your help has saved me hundreds of hours of internet surfing.
fblack61
Sudeep Sharma

I was just wondering, why can't you use Sophos Enterprise Console to install the clients?

Why there is a need of script to install the clients?

Sudeep
badabing1

ASKER
Hi Sudeep,

sometimes this fails to install so i want to use script as a second option to check if AV is installed.
Sudeep Sharma

What errors you are getting while installing it from the Sophos Enterprise Console?

Are you making sure that the services required to install the Sophos client are started before pushing the agent from Console?

It requires three services like Remote registry, task scheduler and workstation service and server service running before you push the agents.

Sudeep
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.