cancel
Showing results for 
Search instead for 
Did you mean: 
Active Contributor

Re: One2Many Script Repository

Found a pretty sweet program that can be run via command line to download and install Windows Updates. The Free Version does just that but the Pro version gives you a lot more control if you want to match certain REGEX expressions, auto-accept EULAs, etc.

 

http://wuinstall.com/

 

You can even use the free version for unlimited commercial use. Sweet!

New Contributor

Re: One2Many Script Repository

Hi guys,

 

AVG 2011 with switches I use when installing via ONE2MANY.

Program downloaded: avg_free_x86_all_2011_1120a3152.exe

Switches: /AppMode=setup /UILevel=Silent /Selectedlanguage=1033 /InstallToolbar=0 /ChangeBrowserSearchProvider=0 /InstallSidebar=0 /DisableScan /KillProcessIfNeeded

 

You can alter your own switches by looking up the PDF document (page 241) form here:

http://aa-download.avg.com/filedir/doc/NETWORK_GROUP/AVG_Anti-Virus_Network/avg_avb_uma_en_2011_01.p...

 

Some hinderences that stop this download and install from happening are:

1. AVAST or other virus software installed. If older versiona of AVG are installed the above switches will autoboot and install on reboot without user intervention.

 

2. UAC turned in under users on Vista and windows 7.

 

This will mean logging into the dash board to view installed programs which is time consuming and a pain.... OInstead I run this script to view installed programs from the script log which is much quicker.

 

regedit /e c:\regexport.txt "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall"
find "DisplayName" c:\regexport.txt >c:\regprogs.txt
type c:\regprogs.txt
del c:\regexport.txt
del c:\regprogs.txt
exit

 

 

 

New Contributor

Re: One2Many Script Repository

A handy quick scan MALWARE scanner command line:

 

cd\
c:\a2cmd /u
c:\a2cmd /deep m /t /c /a /log=c:\mt\a2cmd\logs /d

 

You can Download A2 Squared and then Copy the following files from program files to c:\

 

The only files you need to copy from program files folder is:

 

a2cmd.exe
a2update.dll
engine.dll

 

The rest is created when updates and scanning is done.

 

Further switches can be found from a2 squared website.

 

New Contributor

Re: One2Many Script Repository

AVG 2011 - UPDATE (32Bit windows)

 

cd\
cd "Program Files\AVG\AVG10"
avgmfapx.exe

__________________________________________________________

 

AVG 2011 - UPDATE (64Bit windows)

 

cd\
cd "Program Files (86)\AVG\AVG10"
avgmfapx.exe

__________________________________________________________

 

 

AVG 2011 FULL SYSTEM SCAN (WINDOWS 32bit)

 

cd\
cd "Program Files\AVG\AVG10"
avgscanx.exe /comp /ext=* /reg /boot /proc /macrow /pup /arc /ads /trash /report="c:\AVGREPORT.txt"

 

__________________________________________________________

 

AVG 2001 FULL SYSTEM SCAN (WINDOWS 64bit)

 

cd\
cd "Program Files (86)\AVG\AVG10"
avgscanx.exe /comp /ext=* /reg /boot /proc /macrow /pup /arc /ads /trash /report="c:\mt\rsfiles\AVGREPORT.txt"

 

New Contributor

Re: One2Many Script Repository

CREATE  A RESTORE POINT ON ANY WINDOWS:

 

THIS IS A VBS SCRIPT NOT A BAT! So change the text file from .txt to .vbs

 

 

If GetOS = "Windows XP" Then
        CreateSRP
End If

If GetOS = "Windows Vista" Or GetOS = "Windows 7" Then
        If WScript.Arguments.length =0 Then
                  Set objShell = CreateObject("Shell.Application")
                objShell.ShellExecute "wscript.exe", """" & _
                        WScript.ScriptFullName & """" & " uac","", "runas", 1
        Else
                  CreateSRP
          End If
End If

Sub CreateSRP
        Set SRP = getobject("winmgmts:\\.\root\defaultSmiley Frustratedystemrestore")
        sDesc = "Manual Restore Point"
        If Trim(sDesc) <> "" Then
                sOut = SRP.createrestorepoint (sDesc, 0, 100)
                If sOut <> 0 Then
                        WScript.echo "Error " & sOut & _
                          ": Unable to create Restore Point."
                End If
        End If
End Sub

Function GetOS 
        Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
                ".\root\cimv2")
        Set colOS = objWMI.ExecQuery("Select * from Win32_OperatingSystem")
        For Each objOS in colOS
                If instr(objOS.Caption, "Windows 7") Then
                        GetOS = "Windows 7"    
                ElseIf instr(objOS.Caption, "Vista") Then
                        GetOS = "Windows Vista"
                elseIf instr(objOS.Caption, "Windows XP") Then
                          GetOS = "Windows XP"
                End If
        Next
End Function

 

 

New Contributor

Re: One2Many Script Repository

AVG 2011 - has a history log that helps to check past scans for virus infections. This log also displays raw data for auto updates.

 

if there is a virus not being removed or updates are not working, this log helps to detect.

 

WINDOWS  32bit

 

CD\
CD "Documents and Settings\All Users\Application Data\AVG10\log"
type history.xml

_________________________________________

 

WINDOWS 64bit:

 

CD\
CD "C:\ProgramData\AVG10\log"
type history.xml

New Contributor

Re: One2Many Script Repository

Sorry mistake in the code in last post;

(x86) not (86) for windows 64

 

AVG 2011 FULL SCAN - WINDOWS 64Bit

 

cd\
cd "Program Files (x86)\AVG\AVG10"
avgscana.exe /comp=ON /boot=ON /proc=ON /reg=ON /heur=ON /pup=ON /ads=ON /report="c:\mt\rsfiles\avgrep.txt" /trash=ON
exit

______________________________________________

 

AVG 2011 UPDATE - WINDOWS 64Bit

 

cd\
cd "Program Files (x86)\AVG\AVG10"
avgmfapx.exe

New Contributor

Re: One2Many Script Repository

MSCONFIG --> Start up

 

Shows what is selected to start. this is handy to view without logging into dash board or remotecontrol.

The following script will give you a raw look at the registry to run.

 

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Tags (1)
Contributor

Re: One2Many Script Repository

Has anyone else tried running this script? (I'm new to the One2Many tool and coming into this late). I tested it on one of my bench PC's here at the shop. Are you using a full download of AVG 2011 or the 4mb download they issue off the site?

I ran your script as an Executable since it's not an MSI. With the parameters "/AppMode=setup /UILevel=Silent /Selectedlanguage=1033 /InstallToolbar=0 /ChangeBrowserSearchProvider=0 /InstallSidebar=0 /DisableScan /KillProcessIfNeeded"

 

 

I get a failure. This is the log output:

Task Name:            AVG 2011 Free
Type:                 Run batch or executable
Host Name:            LOKI
Plan Name:            AVG Free Installation
Started:              11/20/2010 09:31:18
Ended:                11/20/2010 09:31:22 (4 secs)
Command executed:     "avg_free_stb_all_2011_1153_cnet.exe" /AppMode=setup /UILevel=Silent /Selectedlanguage=1033 /InstallToolbar=0 /ChangeBrowserSearchProvider=0 /InstallSidebar=0 /DisableScan /KillProcessIfNeeded
Exit code:            -536752089

>

 

Contributor

Re: One2Many Script Repository

And does anyone have a script for Enabling/Disabling UAC on Vista/7? It would be great to have the option to disable it prior to a big job, then re-enable it when done. Or even just to run the re-enable command automatically each week for users who keep turning it off.