Thread: XPSP2 Push
View Single Post
  #7  
Old December 9th 05, 12:20 PM posted to microsoft.public.windowsxp.security_admin
external usenet poster
 
Posts: n/a
Default XPSP2 Push

Hi,

Converted to vbscript:

'--------------------8----------------------
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oShell = CreateObject("WScript.Shell")

sPFDir = oShell.RegRead _
("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\P rogramFilesDir")

' McAfee v4.5 SP1
If oFSO.FolderExists(sPFDir & "\Network Associates\VirusScan") Then
oShell.Run "%SystemRoot%\system32\net.exe stop mcshield /y", 0, True
oShell.Run "%SystemRoot%\system32\net.exe stop AVSynMgr /y", 0, True
End If

' Mcafee v7.1E and v8.0i
If oFSO.FolderExists(sPFDir & "\Network Associates\Common Framework") Then
oShell.Run "%SystemRoot%\system32\net.exe stop McAfeeFramework /y", 0, True
oShell.Run "%SystemRoot%\system32\net.exe stop McTaskManager /y", 0, True
oShell.Run "%SystemRoot%\system32\net.exe stop McShield /y", 0, True
End If

'--------------------8----------------------



Nicholas Edivan wrote:

Very Cool.....is there way to convert the kixtart script to a vbs or js....I really don't want
to deploy kixtart to all my users....


David H. 12/08 12:59 PM


From: "Nicholas Edivan"

| Landesk is able to: push the package/unpack and add the reg entry to HKLM runonce. The
| actual pushing of the package seems not to be the issue rather the On Demand McAfee Scan
| when booting up......How were you able to stop/disable the McAfee Scan?
|

I think yoy mean "Om Access" scanning. McAfee should NOT perform a "On Demand" scan at boot
up.

I inserted the following KiXtart script snippet to turn off the the McAfee "On Access"
scanner.

;McAfee v4.5 SP1
;-----------------------------------------------------------
if exist ("c:\Program Files\Network Associates\VirusScan\*.*")=1
shell "%comspec% /c net stop mcshield nul"
shell "%comspec% /c net stop AVSynMgr nul"
endif

;Mcafee v7.1E and v8.0i
;-----------------------------------------------------------
if exist ("C:\Program Files\Network Associates\Common Framework\*.*")=1
shell "%comspec% /c net stop McAfeeFramework nul"
shell "%comspec% /c net stop McTaskManager nul"
shell "%comspec% /c net stop McShield nul"
endif

At the end of the script the PC would be rebooted.

Note that in the script not only was SP2 installed but the c:\i386 folder was slip-streamed
to SP2 level as well.



--
torgeir, Microsoft MVP Scripting, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
Ads