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!

HELP ME WITH PATCHMANAGEMENT

Status
Not open for further replies.

rxoh

IS-IT--Management
Jan 12, 2005
31
SE
I NEDD TO SECURERITYPATCH OVER 100 CLIENTS FAST NOW ON MY WORK NETWORK.WICH IS NOT HAVE ANY INTERNETCONNEDCTION!

I HAVE DOWNLOAD ALL NEW AND OLDER PATCHES AND HAVE MAKE PACKAGE OF THEM IN SMS 2003.I HAVE SUCCED TO DEPLOY THEM TO ONE TESTCLIENT BUT ITS ONLY PLACED IN NEW PROGRAM/ADD REMOVE PROGRAM IN CONTROL PANEL.I NEED THIS PATCH TO INSTALL ITSELF THEN ITS DEPLOYED TO THE CLIENT.

HAVE TRIED DIFFRENT SWITCH TO THE EXE FILE LIKE /HIDDEN AND PASSIVE AND /U. BUT IT REFUSE TO INSTALL ITS SELF.

PLZ HELP ME..

ITS VERY SECURITY HURRY WITH THIS!!!
 
I'm assuming these are the latest patches ms released?



item: Execute Program
Pathname=%inst%\WindowsXP-KB871250-x86-ENU.exe
Command Line=/quiet /norestart
Flags=00001010
end


thats from a sms installer package
 
its that a script u have wrote down?
 
well...


I can give you a patch installation script I used for say the last 3 ms patches....

you need to use sms installer to paste this into(ipf file) and convert it to an exe.... you will also need to change logging locations and share file locations as needed but this should give you the jist of it!

item: Remark
Text=****************************MS05-01,02,03 for XP**************************************
end
item: Remark
Text=*************************Written on 12/09/2004 by Tim Brennan*******************************
end
item: Remark
Text=*********Be sure you update the MIF information to reflect the package***************
end
item: Remark
Text=*******************Update all Exit Installation MIF status as required*********************
end
item: Get Environment Variable
Variable=MYCOM
Environment=comspec
end
item: Get Environment Variable
Variable=MYNAME
Environment=computername
end
item: Get System Information
Variable=SYSTIME
end
item: Get System Information
Variable=SPACE
Pathname=C:\
Flags=00010011
end
item: Get System Information
Variable=O/S
Pathname=%win%
Flags=00000001
end
item: Set Variable
Variable=WROOT
Value=c:\windows
end
item: Remark
Text=**********************Check the location for logging******************************
end
item: Set Variable
Variable=LOGS
Value=\\server\logs\sms\xp05-Jan
end
item: Remark
Text=****************Edit the packagename to display the correct file name**************
end
item: Remark
Text=~~~~~~~Edit the Package to the Title Name of the package for the Finished Dialog box to display correctly~~~~~
end
item: Set Variable
Variable=APPTITLE
Value=ms05-1-2-3
end
item: Remark
Text=***************************************************************************************
end
item: Remark
Text=****************Checking for O/S level to ensure the correct Temp directory***********************
end
item: If/While Statement
Variable=O/S
Value=5.1.2600
Flags=00000111
end
item: Set Variable
Variable=TEMP
Value=%win%\TEMP
end
item: Set Variable
Variable=CROOT
Value=C:
end
item: Set Variable
Variable=PFILES
Value=c:\program files
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% is a Win XP machine as of %systime%. >> %logs%\%myname%.log
Flags=00001000
end
item: Else Statement
end
remarked item: Set Variable
Variable=CROOT
Value=C:
end
remarked item: Set Variable
Variable=TEMP
Value=C:\TEMP
end
remarked item: Set Variable
Variable=PFILES
Value=c:\program files
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% is an NT 4.0 machine as of %systime%. >> %logs%\%myname%.log
Flags=00001000
end
item: Exit Installation
Variable=1
Value=not xp
Flags=1
end
item: End Block
end
item: Remark
Text=***********************Checking for EXEMPT status-*****************************
end
item: Check if File/Dir Exists
Pathname=%PFILES%\sms\smspkgexempt.txt
Flags=00000100
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% is an exempt machine for software pushes as of %systime%. >> %logs%\%myname%.log
Flags=00001000
end
item: Exit Installation
Variable=0
Value=This machine has been exempted from SMS pushes.
Flags=1
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=%croot%\Custom\Bat\Server.txt
Flags=00000100
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% is a Server >> %logs%\%myname%.log
Flags=00001000
end
item: Exit Installation
Variable=0
Value=All Servers are exempt from SMS pushes
Flags=1
end
item: End Block
end
remarked item: End Block
end
item: Remark
Text=***************Check for IE6 spk1**********************
end
remarked item: If/While Statement
Variable=IE6
Value=6.0.2600.0000
Flags=00001000
end
remarked item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% Lower IE Version as of %systime% >> %logs%\%myname%.log
Flags=00001000
end
remarked item: Exit Installation
Variable=1
Value=wrong ie version
Flags=1
end
remarked item: End Block
end
item: Remark
Text=*************************Checking for disk space*********************************
end
item: If/While Statement
Variable=SPACE
Value=50
Flags=00001000
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% does not have enough disk space as of %systime% >> %logs%\%myname%.log
Flags=00001000
end
item: Exit Installation
Variable=1
Value=Does not have enough free disk space!
Flags=1
end
item: End Block
end
item: Remark
Text=**********************Time to display a message to the user***********************
end
item: Install File
Source=\\servershare\pkgtest\XP05-1-02-03\pskill.exe
Destination=%wroot%\pskill.exe
Flags=0000000000000010
end
remarked item: Install File
Source=\\servershare\pkgtest\hotfixes\doneptch.exe
Destination=%TEMP%\doneptch.exe
Flags=0000000000100010
end
item: Install File
Source=\\servershare\pkgtest\hotfixes\Timer.exe
Destination=%TEMP%\Timer.exe
Flags=0000000000100010
end
item: Install File
Source=\\servershare\pkgtest\hotfixes\SMSMsgReb.exe
Destination=%TEMP%\SMSMsgReb.exe
Flags=0000000000100010
end
item: Remark
Text=***************Change the message done file to reflect this package*******************
end
item: Remark
Text=****************Only if this package does not reboot******************
end
item: Remark
Text=***************************************************************************************
end
item: Execute Program
Pathname=%TEMP%\SMSMsgReb.exe
end
item: Sleep
Sleep=15000
end
item: Execute Program
Pathname=%TEMP%\timer.exe
end
item: Sleep
Sleep=130000
end
item: Remark
Text=**********************Time to kill all Microsoft applications**************************
end
item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= iexplore.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= extra.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= appnode.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= msaccess.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= excel.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= winword.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= powerpnt.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= outlook.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= msoffice.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= visio32.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= winproj.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= frontpg.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= DkService.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%wroot%\pskill.exe
Command Line= connect.exe
Flags=00001000
end
remarked item: Execute Program
Pathname=%sys32%\net.exe
Command Line=stop "OfficeScanNT RealTime Scan"
Flags=00000110
end
remarked item: Execute Program
Pathname=%sys32%\net.exe
Command Line=stop "OfficeScanNT Listener"
Flags=00000110
end
remarked item: Start/Stop Service
Service Name=diskeeper
Flags=00000001
end
item: Execute Program
Pathname=%inst%\updating.exe
end
item: Remark
Text=************************All lines above should be in every package******************************
end
item: Remark
Text=**********************************************************************************************************
end
item: Remark
Text=*************************Insert the script for the package here**************************************
end
item: Execute Program
Pathname=%inst%\WindowsXP-KB871250-x86-ENU.exe
Command Line=/quiet /norestart
Flags=00001010
end
item: Execute Program
Pathname=%inst%\WindowsXP-KB890175-x86-ENU.exe
Command Line=/quiet /norestart
Flags=00001010
end
item: Execute Program
Pathname=%inst%\WindowsXP-KB891711-x86-ENU.exe
Command Line=/quiet /norestart
Flags=00001010
end
item: Sleep
Sleep=1000
end
remarked item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% installed WindowsXP-KB823980-ia64-ENU as of %systime% >> %logs%\%myname%.log
Flags=00001000
end
item: Get Registry Key Value
Variable=XPDONE
Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB871250
Value Name=comments
Flags=00000100
end
item: Get Registry Key Value
Variable=XPDONE2
Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB890175
Value Name=comments
Flags=00000100
end
item: Get Registry Key Value
Variable=XPDONE3
Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB891711
Value Name=comments
Flags=00000100
end
remarked item: Execute Program
Pathname=%TEMP%\doneptch.exe
end
item: Get System Information
Variable=SYSTIME
end
item: If/While Statement
Variable=XPDONE
Value=Windows XP Hotfix - KB871250
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% installed KB871250 as of %systime% >> %logs%\%myname%.log
Flags=00001010
end
item: Else Statement
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% KB871250 failed as of %systime% >> %logs%\bad\%myname%.log
Flags=00001010
end
item: End Block
end
item: If/While Statement
Variable=XPDONE2
Value=Windows XP Hotfix - KB890175
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% installed KB890175 as of %systime% >> %logs%\%myname%.log
Flags=00001010
end
item: Else Statement
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% KB890175 failed as of %systime% >> %logs%\bad\%myname%.log
Flags=00001010
end
item: End Block
end
item: If/While Statement
Variable=XPDONE3
Value=Windows XP Hotfix - KB891711
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% installed KB891711 as of %systime% >> %logs%\%myname%.log
Flags=00001010
end
item: Else Statement
end
item: Execute Program
Pathname=%mycom%
Command Line= /c echo %myname% KB891711 failed as of %systime% >> %logs%\bad\%myname%.log
Flags=00001010
end
item: End Block
end
item: Remark
Text=**********************************************************************************************************
end
item: Remark
Text=*****************The next 5 lines should be at the end of every package***********************
end
item: Remark
Text=*************Edit the above line to point to the correct Acknowledgement file*****************
end
remarked item: Execute Program
Pathname=%Win%\kill.exe
Command Line= -F SMSMsg.exe
Flags=00001000
end
item: Remark
Text=~~~~~~If this package requires a reboot then REM out the line below~~~~~
end
remarked item: Custom Dialog Set
Name=Finished
item: Dialog
Title English=Finished
Width=229
Height=190
Font Name=Helv
Font Size=8
item: Push Button
Rectangle=83 111 118 131
Action=1
Create Flags=01010000000000010000000000000000
Text English=OK
end
item: Static
Rectangle=4 4 224 90
Create Flags=01010000000000000000000000000000
Flags=0000000000000001
Name=Times New Roman
Font Style=-19 0 0 0 400 0 0 0 0 3 2 1 18
Text English=%Apptitle% is now installed. Thank you for your patience. You may continue after clicking the OK button below. If you have any questions, please contact the Computer Support Desk at xxx-xxx-xxxx. DMV employees should contact the DMV Help Desk at xxx-xxx-xxxx
end
end
end
item: Install File
Source=\\servershare\pkgtest\hotfixes\shutdown.exe
Destination=%win%\shutdown.exe
Flags=0000000000001010
end
item: Delete File
Pathname=%TEMP%\SMSMsgReb.exe
end
item: Delete File
Pathname=%TEMP%\Timer.exe
end
remarked item: Delete File
Pathname=%TEMP%\doneptch.exe
end
item: Execute Program
Pathname=%win%\Shutdown.exe
Command Line=/L /R /T:60 "Need to reboot to finalize software installation" /C /Y
end
item: Exit Installation
Variable=0
Flags=0
end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top