Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

overide the scanning of disks

Status
Not open for further replies.

terry712

Technical User
Oct 1, 2002
2,175
GB
i'm just starting to roll out eorchestra

some of our pc's (from an image) - already have a task set to scan the disks at a set time

i create a task for this and applied it to the site - i thought that this would overide the setting but it doesnt - it works scans when it should but it also does the local setting
how can i get rid of this local task so it's control from console

is my only way to create a file from install and then copy the cab to the mid directory or what the best way
 
Local scan tasks are not affected by ePO. If they exist and ran prior they will still exist and run even with ePO. I would look in the registry and remove the key for that task. If these are domain machines you can use a startup script to mod the registry or create a script to go through your environment. I went with the startup script route. If a user created custom tasks then your life just became a bit more complicated :-( Another solution may be to import the regkey(s) that you want from a good computer you have setup.

Please note that I...

Remove the ODS task
Disable the autoupdate schedule <-- otherwise users will see the "Update Now..." screen every time as opposed to the ePO silent version.

Your mileage may vary and make sure you test in your environment first!



I have enclosed a snippet of code that may help you. This was written for 7.0 but should work for 7.1 & 8.0i I think.

:: *******************************************************
:VS
:: *******************************************************
:: Remove registry keys associated with On Demand Scanning - disables update task
set log=c:\log.log
reg query "hklm\software\network associates\TVD\VirusScan Enterprise\CurrentVersion\Tasks\{818C7543-358A-4C84-899A-14334EMS4BGS}"
set EC=%ERRORLEVEL%
if not %EC%==0 echo Registry task not found...okay >> %LOG% && goto :VSSKIP
reg delete "hklm\software\network associates\TVD\VirusScan Enterprise\CurrentVersion\Tasks\{818C7543-358A-4C84-899A-14334EMS4BGS}" /f

if %ERRORLEVEL%==0 (
echo Registry keys for On Demand Scanning have been removed >> %LOG%
)else (
echo Registry keys for On Demand Scanning have *NOT* been removed due to error >> %LOG%
)
:VSSKIP
reg query "hklm\software\network associates\TVD\VirusScan Enterprise\CurrentVersion\Tasks\{A14CD6FC-3BA8-4703-87BF-E3247CE382F5}"
set EC=%ERRORLEVEL%
if not %EC%==0 echo Registry task for custom local task not found >> %LOG% && goto :EPOEND
reg add "hklm\software\network associates\TVD\VirusScan Enterprise\CurrentVersion\Tasks\{A14CD6FC-3BA8-4703-87BF-E3247CE382F5}" /v bSchedEnabled /t REG_DWORD /d 0 /f

if %ERRORLEVEL%==0 (
echo Registry keys for Local Custom Update Task have been disabled >> %LOG%
)else (
echo Registry keys for On Local Custom Update Task have *NOT* been disabled due to error >> %LOG%
)
GOTO EPOEND




Merry ePO Christmas & Cheers!
 
thanks

i will give it a whirl - the pc's are in the nds - so i can use a nal to delete the task to probs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top