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?

 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

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITEnd-user supportCommented:
Without admin rights or System rights, you can't install many programs, especially programs like antivirus
badabing1Author Commented:
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.....

Darren CollinsTech Lead (Windows), Endpoint Device Management ServicesCommented:
Hi badabing1,  pretty much every way to execute this script will involve a variation of one of the below:

1. execute it manually on every computer by either:
    a) right-click (or shift rt-click) the batch file and run as another user by entering credentials at the time
    b) hard code in plain text in the script a username and password with local admin rights so that it executes using RunAS or similar and then click the script on every computer.

2. In a domain environment, use computer logon scripts that run as SYSTEM.  For this to work the computer account (or Domain Computers group) needs read and execute rights to the share \\SERVER\SophosUpdate

3. Use a deployment tool like SCCM, Symantec ITMS, LanDesk etc to schedule the elevated execution via a policy based execution.

It's not normally a good idea to hard code the admin password in a batch file as these things have a habit of leaking (by which I mean users can find the flash drive or similar and discover the credentials).  If you are choosing to walk to each workstation and execute the batch file, then I think you should enter the credentials each time.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

NVITEnd-user supportCommented:
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.
Sudeep SharmaTechnical DesignerCommented:
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?

badabing1Author Commented:
Hi Sudeep,

sometimes this fails to install so i want to use script as a second option to check if AV is installed.
Sudeep SharmaTechnical DesignerCommented:
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.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.