Page 1 of 1 1
Topic Options
#40457 - 2003-05-20 11:38 AM windows and ie patches and OS plus software License
messiah Offline
Lurker

Registered: 2003-05-20
Posts: 2
I had mixs of os like nt, win2k svr/pro, me and xp home/pro. They are segregated among vlans and microsoft's software analyser doesn't work. I had tried the software scripts and it works fine.

I'm using KIX scripts and please don't ask me to use others like udf or vbscript as I don't know and I don't have time.

Now I would like to find out how can I identify OS to install the windows and IE patches. For example if it's an NT and if patch a has already installed do nothing and if patch b and c is not installed, install them from \\patchserver\nt\patches

As there are many patches out there, I would assume that the script will be very long. Perhaps you can provide me the sample and I'll start from there.

Lastly, is there any KIX scripts to log down the OS's and software licenses gathered from the PC? The samples I've found provides only the software products.

Thanks in advance.
_________________________
Messiah

Top
#40458 - 2003-05-20 01:24 PM Re: windows and ie patches and OS plus software License
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
No problem - I would use something like this

code:
  
Break on

If Exist("c:\temp\IEver5.log")
Del "c:\temp\fail.log"
EndIf

If Exist("c:\temp\IEver6.log")
Del "c:\temp\IEver6.log"
EndIf

If Exist("c:\temp\AaronistheBest.log")
Del "c:\temp\IEver6.log"
EndIf

$os_Version_IE= ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer","version")

If $os_Version_IE= "5.50.4807.2300"
WriteProfileString("c:\temp\ieVer5.log","ie6","sp","$os_service_p")
WriteProfileString("c:\temp\ieVer5.log","ie6","fart","checkdrive")
WriteProfileString("c:\temp\ieVer5.log","ie6","sp","6.0")
EndIf
If $os_Version_IE= "6.0.2800.1106"
WriteProfileString("c:\temp\IeVer6.log","ie6","sp","$os_service_p")
WriteProfileString("c:\temp\IeVer6.log","ie6","fart","checkdrive")
WriteProfileString("c:\temp\IeVer6.log","ie6","sp","6.0")
Else
WriteProfileString("c:\temp\AaronistheBEST.log","ie6","sp","$os_service_p")
WriteProfileString("c:\temp\AaronistheBEST.log","ie6","fart","checkdrive")
WriteProfileString("c:\temp\AaronistheBEST.log","ie6","sp","6.0")
EndIf

Exit

I basically use this script to check the IE verison and then it writes to a log file but you can amend it to how you like (put the key for the veriosn of os etc), you can put the $PCname as the name of the log so you can easily gather all the info. Or even get the script to write the info to one file on a server or sumfin... Hope this is what you want...of course you will have to find the verion numbers your self [Wink]
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#40459 - 2003-05-20 01:39 PM Re: windows and ie patches and OS plus software License
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
ummm... UDFs are kix scripts

As I look through them, there are UDFs to determine OS, IEVersion, hotfixes, etc.

A few minutes of research on them will SAVE you lots of time coding.

But that is your choice
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#40460 - 2003-05-20 08:20 PM Re: windows and ie patches and OS plus software License
Anonymous
Unregistered


FWIW - I use the following excerpt for distributing IE and OE patches. All machines are running at least IE 5.5 SP2, so I don't check for anything less or greater than IE 6.0 SP1. The update process works for me on Win98 and 2000/XP machines. The OE patch doesn't get installed until the IE patch has installed. The user keeps getting bugged to do it until it's done.

; ---------------------------------------
; UPDATE CHECK FOR INTERNET EXPLORER
; ---------------------------------------

$spver = readvalue("HKEY_Local_Machine\Software\Microsoft\Windows\CurrentVersion\Internet Settings","MinorVersion")
$iever = getfileversion("c:\program files\internet explorer\iexplore.exe","ProductVersion")

sleep 3

if instr($spver, "Q813489") = 0

? "Please wait while the Internet Explorer update starts..."
?

if instr($iever,"5.5") = 0 and instr($iever,"6.0") = 0
messagebox("You do not have IE 5.5 or 6.0, please let Robert know.", "Incorrect Version of IE", 0)
goto End
endif

messagebox("Please wait while your version of Internet Explorer is updated. Answer 'Yes' and then 'Ok' to the following prompts when they appear. Once the update has been successfully installed, your computer will need to be rebooted.", "Internet Explorer Update", 0)

if instr($iever,"5.5") and instr($spver, "SP2")

? "Launching update for IE 5.5 SP2..."
shell "\\server\netlogon\mspatch\ie55sp2_q813489.exe"
goto End
endif

if instr($iever,"6.0") and instr($spver, "SP1")

? "Launching update for IE 6.0 SP1..."
shell "\\server\netlogon\mspatch\ie60sp1_q813489.exe"
goto End

endif

if instr($iever,"6.0")

? "Launching update for IE 6.0..."
shell "\\server\netlogon\mspatch\ie60_q813489.exe"
goto End
endif

endif

; ---------------------------------------
; UPDATE CHECK FOR OUTLOOK EXPRESS
; ---------------------------------------

if instr($spver, "Q813489") and instr($spver, "Q330994") = 0

? "Please wait while the Outlook Express update starts..."
?

messagebox("Please wait while your version of Outlook Express is updated. Answer 'Yes' and then 'Ok' to the following prompts when they appear. Once the update has been successfully installed, your computer will need to be rebooted.", "Outlook Express Update", 0)

if instr($iever,"5.5") and instr($spver, "SP2")

? "Launching update for OE 5.5 SP2..."
shell "\\server\netlogon\mspatch\oe55sp2_q330994.exe"
goto End
endif

if instr($iever,"6.0") and instr($spver, "SP1")

? "Launching update for OE 6.0 SP1..."
shell "\\server\netlogon\mspatch\oe60sp1_q330994.exe"
goto End

endif

if instr($iever,"6.0")

? "Launching update for OE 6.0..."
shell "\\server\netlogon\mspatch\oe60_q330994.exe"
goto End
endif
endif

[ 20. May 2003, 20:23: Message edited by: Robert Fernatt ]

Top
#40461 - 2003-05-21 03:09 AM Re: windows and ie patches and OS plus software License
messiah Offline
Lurker

Registered: 2003-05-20
Posts: 2
Hi Guys,

Thanks a bunch. I'll try em later. I hope you all can help me on the OS's and software licenses to be captured onto a CSV or mdb file.

Thanks again. [Big Grin]
_________________________
Messiah

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.05 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org