Handy Switches for scheduling maint :)

I like to have the computers take care of themselves overnight. Here's what I use to have a scandisk, defrag and virus sweep run overnight using the Novell Scheduler. In each case, I choose the Impersonation:SYSTEM so these will run even if the workstation is logged out...

Items: C:\WINDOWS\Scandskw.exe
Parameters: /Allfixeddisks /Noninteractive /Silent

Items: C:\Program Files\Network Associates\McAfee VirusScan\scan32.exe
Parameters: /NoSplash /AutoScan
(Set terminate after 120mins to make it go away!)

Items: C:\WINDOWS\Defrag.exe
Parameters: /ALL /F /P /CONCISE /NOPROMPT
Here's some help to update those virus definitions once a month on Win95/98 machines:

mcupdat.bat works in conjunction with mcupdat.cmd to automate the downloading of the virus definition files from McAfee. Download these 2 files and place them in C:\WINDOWS\COMMAND directory.

Next, make sure you have PKZip (the DOS version) in your path somewhere as we rely on the command line version of this to decompress the dat files (a good place for this is in SYS:PUBLIC but it will need to be in C:\WINDOWS\COMMAND also if you want this to work when the station is logged out!). Next, make an entry in your Novell Scheduler like this:

Items:
Name: start.exe
Working dir: c:\windows\command
Params: /w mcupdat.bat
Terminate: 60mins
When you do a RUN NOW to test this, right mouse click the the MSDOS logo in the top left corner of the running shell and choose PROPERTIES. From the menu box that appears, choose Close On Exit checkbox. I usually set this to run once a month. :)

Note: Two minor things noticed recently. 1)Recently Mcafee has started placing more than 1 .zip file in the directory this script goes to so you may have to add an additional Y to th .cmd file to get it to close properly. 2)The unzip wont work if the .dat file is in USE when it tries. If you run the vshwin32.exe all the time, the auto-update wont work. I only run the scan at night so it didn't affect me.)

Too lazy to do all that? Wouldn't it be nice if there was just a .reg file for you to import into the object? Oh all right... here, copy this to your clipboard and save it as scandefrag.reg, then make an object and import this into it. You're welcome. :)

REGEDIT4

// Registry file generated by the Application Launcher.
// Activates overnight Defrag and ScanDisk in Novell Scheduler
// Created by Vern Graner CNE vern@txis.com www.cnenet.com

[HKEY_LOCAL_MACHINE\SOFTWARE\Novell\Workstation Manager\Scheduler\Actions\DeFrag]
"Advanced Flags"=dword:00001004
"Disabled"=dword:00000000
"Due Time"=hex:00,e8,c3,f1,35,3e,bf,01,
"End Time"=hex:00,b8,4c,b5,46,3e,bf,01,
"Flags"=dword:00000008
"Impersonation"=dword:00000002
"Priority"=dword:00000001
"Schedule Policy"=hex:04,00,00,00,00,00,00,00,40,00,00,00,03,00,00,00,00,00,00,00,05,00,00,00,00,00,\
   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
"Termination Time"=dword:00000078

[HKEY_LOCAL_MACHINE\SOFTWARE\Novell\Workstation Manager\Scheduler\Actions\DeFrag\Defrag.exe]
"Command Line Parameters"="/ALL /F /P /CONCISE /NOPROMPT"
"Completion Event"=""
"Disabled"=dword:00000000
"Order"=dword:00000000
"Path"="C:\\WINDOWS\\Defrag.exe"
"Priority"=dword:00000001
"Termination Time"=dword:00000000
"Working Directory"="C:\\WINDOWS"

[HKEY_LOCAL_MACHINE\SOFTWARE\Novell\Workstation Manager\Scheduler\Actions\ScanDisk]
"Advanced Flags"=dword:00001004
"Disabled"=dword:00000000
"Due Time"=hex:00,18,3b,2e,25,3e,bf,01,
"End Time"=hex:00,e8,c3,f1,35,3e,bf,01,
"Flags"=dword:00000008
"Impersonation"=dword:00000002
"Priority"=dword:00000001
"Schedule Policy"=hex:04,00,00,00,00,00,00,00,40,00,00,00,01,00,00,00,00,00,00,00,03,00,00,00,00,00,\
   00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
"Termination Time"=dword:00000078

[HKEY_LOCAL_MACHINE\SOFTWARE\Novell\Workstation Manager\Scheduler\Actions\ScanDisk\Scandskw.exe]
"Command Line Parameters"="/Allfixeddisks /Noninteractive /Silent"
"Completion Event"=""
"Disabled"=dword:00000000
"Order"=dword:00000000
"Path"="C:\\WINDOWS\\Scandskw.exe"
"Priority"=dword:00000001
"Termination Time"=dword:00000000
"Working Directory"="C:\\windows"