Folder AVG Forums » AVG SMB » AVG Admin » Network Install For Non-Admin Users
Page 1 of 2 12››
August 13, 2012 23:24 Network Install For Non-Admin Users #214442
Reply with Quote | Quick Reply | Top
ShawnTN

Avatar

Novice
Join Date: 13.8.2012
Posts: 6
I am trying to find a way to install AVG 2012 business edition via computer policy. These computer do not have regular admin users and it will not install for non admin users.

I'm thinking the best way would be to scheduled a task to run the installer with an admin user account though group policy. The only problem is I cant figure out is how to pass the coded product key and silent install preferences to it when I create the task.

I am running Server 2008 r2
The install will be on Win 7 Pro and XP pro SP 3.

Please if you have any ideas let me know!
August 14, 2012 07:38 Re: Network Install For Non-Admin Users #214453
Reply with Quote | Quick Reply | Top
Optic

Avatar

Moderator
Join Date: 27.10.2009
Posts: 939
Hi ShawnTN,

Have you created the avgsetup.ini file from the Admin Console? If so then to pass the licence and component details etc. when running from network share:

"\\filepath\avg_ipw_*.exe" /ConfigFilePath="\\filepath\avgsetup.ini"

If you don't have this file it can be generated by going to 'Tools > Run AVG Network Installer Wizard > Creation of Installation Script' in AVG Admin.

I have never tried installing from scheduled task so not sure of the exact procedure. Can look into this further for you if you need any more help with it.

It is possible to install via Startup\Shutdown script without needing credentials as it runs from the system account.

Or you can install by login script using some tool like psexec to install as Admin. Can provide more detailed instructions if neccessary.

Thanks,

Michael Allen

AVG Customer Services

http://www.avg.com



Join the AVG community!

http://www.facebook.com/AVGFree

http://www.twitter.com/avgfree

http://www.youtube.com/officialavg
August 14, 2012 17:55 Re: Network Install For Non-Admin Users #214518
Reply with Quote | Quick Reply | Top
ShawnTN

Avatar

Novice
Join Date: 13.8.2012
Posts: 6
Another?..

So do you know where I should put the Installer? In the netlogon folder? Im new to IT and I just want to make sure.
August 14, 2012 23:14 Re: Network Install For Non-Admin Users #214528
Reply with Quote | Quick Reply | Top
ShawnTN

Avatar

Novice
Join Date: 13.8.2012
Posts: 6
Startup/Shutdown Script..

After thinking about it I would really like to set this as a computer startup script.

Right now we have a login script that runs when an admin user logs into a station, but most accounts are not admin accounts.

If I assign the script we have now as a startup script nothing happens except a really long boot.

Do you have an example of a script that I can use?

First
We need to check the type of processor the computer has and then it chooses the correct installer.

Yes I do have a config file, that is currently working with an admin user login.

Can you email me and example file that first chooses the type of install needed then starts the install and sends it the config file?

Thanks
August 15, 2012 11:41 Re: Network Install For Non-Admin Users #214562
Reply with Quote | Quick Reply | Top
Optic

Avatar

Moderator
Join Date: 27.10.2009
Posts: 939
Hi ShawnTN,

The 'avgsetup.bat' created with the 'avgsetup.ini' file will check the processor type and launch the appropiate x86 or x64 installation file. Please find a script attached that you can use as a template. This will check the system information and quit the installation if the OS is a Server. If you are installing onto Servers as well as the workstations then this can be edited further to launch the Server installation file.

If you create a shared folder on the Server and give everyone read permission.

- Copy across the AVG x86 and x64 AVG installation files into the shared folder
- Copy across the avgsetup.bat and avgsetup.ini files into the shared folder
- Edit the 'avgsetup.bat'. There are 4 lines to edit to match the filepath to the shared folder (\\ServerName\SharedFolder\*)
- Check the AVG install files match the ones you have. Latest is 'avg_ipw_x*_all_2012_2197a5126.exe'
- In Group Policy enter the startup script to run in the same format - \\ServerName\SharedFolder\avgsetup.bat

This should work okay.

Thanks,

Michael Allen

AVG Customer Services

http://www.avg.com



Join the AVG community!

http://www.facebook.com/AVGFree

http://www.twitter.com/avgfree

http://www.youtube.com/officialavg
August 16, 2012 00:23 Re: Network Install For Non-Admin Users #214614
Reply with Quote | Quick Reply | Top
ShawnTN

Avatar

Novice
Join Date: 13.8.2012
Posts: 6
Other options..

Thank you for your help. I got the startup script to run.

The only problem is that it really increases the system boot time.

I would love to run the installer though a scheduled tast that I have created though group policy on my Windows 2008 server. This way the user won't know any difference.

I just can't figure out how to send the config file to the EXE. When I setup the scheduled task I do have the ability to pass "arguments" to it, but I'm not sure what all I can pass though this option. Do you have any ideas?
August 16, 2012 15:53 Re: Network Install For Non-Admin Users #214662
Reply with Quote | Quick Reply | Top
Optic

Avatar

Moderator
Join Date: 27.10.2009
Posts: 939
Hi ShawnTN,

Glad to hear the startup script was running. All you should need to do for the scheduled task is to run the 'avgsetup.bat' file that was working as a startup script. This contains everything that is needed to install AVG. Tested this on a Win 7 machine and it worked no problems:

- In Group Policy > User Configuration > Preferences > Control Panel Settings > Scheduled Tasks
- Create a new task and give task a name
- In the 'Run' textbox - \\ServerName\SharedFolder\avgsetup.bat
- Arguments (can be left empty)
- Start in - \\ServerName\SharedFolder (Not sure if this is neccessary, but worked for test. Didn't have time to test this without this setting)
- Run as - Enter domain admin credentials here. User Name should contain domain prefix (domain\user). Please visit this link for the security note for entering credentials here - http://technet.microsoft.com/en-us/library/cc725745.aspx

Configure the rest of the settings to suit your needs. Force the group policy update.

You can test to see if task will run without issues by logging onto a machine and running the task from cmd - schtasks /run /tn "name of task"

Thanks,

Michael Allen

AVG Customer Services

http://www.avg.com



Join the AVG community!

http://www.facebook.com/AVGFree

http://www.twitter.com/avgfree

http://www.youtube.com/officialavg
August 16, 2012 23:34 Re: Network Install For Non-Admin Users #214679
Reply with Quote | Quick Reply | Top
ShawnTN

Avatar

Novice
Join Date: 13.8.2012
Posts: 6
Additional info..

I set the task up to run in one of my very small OUs.

Ill let you know what happens.

These are XP computers though.

When you tested this was the user that was logged in an admin user? What I am worried about is when the .bat which is being runas admin though the shed task, will the .exe installer run as admin or as a user? Most of my users are not admin.
August 17, 2012 12:01 Re: Network Install For Non-Admin Users #214721
Reply with Quote | Quick Reply | Top
Optic

Avatar

Moderator
Join Date: 27.10.2009
Posts: 939
Hi ShawnTN,

Additional info..

I set the task up to run in one of my very small OUs.

Ill let you know what happens.

Please let me know if you encounter any issues

These are XP computers though.

Sorry, a little busy today, will try and test an XP machine for you when I can.

Edit: Had some time to try an XP machine aswell and had no issues.

When you tested this was the user that was logged in an admin user? What I am worried about is when the .bat which is being runas admin though the shed task, will the .exe installer run as admin or as a user? Most of my users are not admin.

I tested logged in as a User not Admin. The reason to use the 'bat' file and not run the 'exe' directly is because you need to establish whether the machine is x86 or x64 before launching the AVG install file.

The task is launched using the credentials specified when creating the scheduled task in group policy, not the local user account.

If you know that all machines on the OU are 32 bit, the install can be launched directly instead of using the avgsetup.bat file to determine the OS type.

When creating the scheduled task enter the filepath to the AVG install file in the Run textbox:

\\ServerName\SharedFolder\avg_ipw*.exe

Enter this into the 'Arguments' textbox:

/ConfigFilePath="\\ServerName\SharedFolder\avgsetup.ini"

This will launch the installer directly. Nothing bad will happen if accidentally launched on x64 machine or vice versa. The install will just fail.

Thanks,

Michael Allen

AVG Customer Services

http://www.avg.com



Join the AVG community!

http://www.facebook.com/AVGFree

http://www.twitter.com/avgfree

http://www.youtube.com/officialavg
August 20, 2012 23:13 Re: Network Install For Non-Admin Users #214859
Reply with Quote | Quick Reply | Top
ShawnTN

Avatar

Novice
Join Date: 13.8.2012
Posts: 6
Thanks..

Ive been watching my systems. The installs seem to be happening.

You have been a great help. I love your support!
Page 1 of 2 12››