jeg ved ikke om forummet acceptere dette men here goes, et simpeltlogin script der installere adAware og F-Prot antivirus hvis det ikke er på maskinen ved login.
@Echo Off
:: Macro, Sign, Sign 2 er ikke længere pakket. Serverside fetching slået sammen med servers def downloads.
:: 22/06-04: Added AdAware to the login script, if it is installed, the def file is updated
:: If not, it is installed, the def file is updated and the program is started
:: TODO: Net use fix, if drives has been mapped, nothing should be done.
:INTRO
echo.Logon-Script for GL-SoftWare LAN
echo. Version 2.3
:VARIABLES
set VIRUSDIR=\\[servernavn fjernet]\logon\virus
set AD_SETUP=\\[servernavn fjernet]\logon\AdAware\aaw6181.exe
set REFFILE=\\[servernavn fjernet]\logon\AdAware\reflist.zip
set FPROTDIR=c:\progra~1\fsi\f-prot
set ADAWAREDIR=c:\progra~1\lavasoft\Ad-awa~1
set REGKEY="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
set REGSTART="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run"
set REGVALUE=\\[servernavn fjernet]\logon\logon.bat
set FAVDIR=h:\Favorites\
set start_adaware=0
:DRIVE_MAPPING
echo. mapping drives
net use h: \\[servernavn fjernet]\%username% /y
net use m: \\[servernavn fjernet]\M /y
net use s: \\[servernavn fjernet]\F
:: THIS TEST IF F-PROT HAS BEEN INSTALLED, BUT ONLY! IN DEFAULT DIRECTORY
:TEST_SCANNER
if exist "c:\progra~1\Fsi\F-prot\fp-win.exe" GOTO VIRUSUPDATE
:VIRUS_INSTALL
start \\[servernavn fjernet]\logon\install\F-Prot\F-Prot_setup.exe
:VIRUSUPDATE
attrib -h -r -s %FPROTDIR%\Macro.def
attrib -h -r -s %FPROTDIR%\Sign.def
attrib -h -r -s %FPROTDIR%\Sign2.def
copy %VIRUSDIR%\Macro.def %FPROTDIR%\Macro.def
copy %VIRUSDIR%\Sign.def %FPROTDIR%\Sign.def
copy %VIRUSDIR%\Sign2.def %FPROTDIR%\Sign2.def
:START_SCANNER
start %FPROTDIR%\F-StopW.exe
::test for installeret AdAware
if exist "c:\progra~1\lavasoft\ad-awa~1\reflist.ref" goto UPDATE_ADAWARE
::install adaware
cls
echo Please Wait, Installing AdAware package
%AD_SETUP% /s
set start_adaware=1
:UPDATE_ADAWARE
%VIRUSDIR%\pkunzip -o %REFFILE% %ADAWAREDIR% > %VIRUSDIR%\log\AdAware.log
if %start_adaware%==1 start %ADAWAREDIR%\Ad-aware.exe
:FAVORITES
reg add %REGKEY% /f /v Favorites /t REG_SZ /d %FAVDIR%
:ADDREG
reg add %REGSTART% /f /v LogonScript /t REG_EXPAND_SZ /d %REGVALUE%
GOTO END
:ERROR
start %FPROTDIR%\F-StopW.exe
echo ######################################################################
echo An Error has occured! Please check the log files for more information!
echo ######################################################################
Pause
:END
echo.Done!