#102727 - 2003-07-10 11:12 PM
is Kix running away with the processor
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I've run into an issue deploying win2kSP4 with kix 4.21
I don't know if this is has anything to do with each other, and I'm currently testing now, but this is the sitch:
Basically what happens is, win2k extracts as expected, update.exe starts and drops to 0% proc time, Kix32 goes to 100% time and then sits there. If I raise update.exe to high priority you can hear the drive start to work and kix processor time drops down.
The code is basically unchanged from the code I used to deploy SP3
code:
if $os="Win2k" and right(trim(@csd),1) < '4' if updateapp("Win2kSP4",3)="yes" md '%windir%\sp4' sleep 2 $=sendmessage(@wksta," The computer will automatically restart when complete.@CRLF This will take about 10-15 minutes.") $=writevalue("$HKLMS\Microsoft\Ole","LegacyImpersonationLevel","2",REG_DWORD) $=Writeprofilestring("$logon\inventory\Install.log","Win2kSP4","@wksta","@date") shell'$setup\apps\win2ksp4\w2ksp4_EN.exe /U /X:%windir%\sp4' run '%windir%\sp4\i386\update\update.exe /q /N /F ' $m=split("A CRITICAL Update is NOW taking place. Please do not open any programs until your system reboots and starts again. This Update will take about 10-15 minutes.", "The Upgrade is running. Please do not open any programs. The Upgrade will be complete in about 15 minutes and your computer will restart.",chr(44)) while 1 for each $message in $m $=Messagebox($message, "Message from MIS",65536) sleep 3 next loop quit endif endif
I'm adding sleep statements inside the while loop to try and slow down kix (if that is the issue). The loop is there to keep throwing message boxes up to entertain the user while the SP installs.
Any Ideas??
|
|
Top
|
|
|
|
#102729 - 2003-07-11 10:12 AM
Re: is Kix running away with the processor
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
|
Top
|
|
|
|
#102734 - 2003-07-11 10:26 AM
Re: is Kix running away with the processor
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
|
Top
|
|
|
|
#102736 - 2003-07-11 11:36 AM
Re: is Kix running away with the processor
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
the idea is that the message box will keep appearing during the entire time that sp4 is running.... so the silly user clicks away the box and forgets the update is running, they get reminded again.
Lonk may be right if the Split isn't splitting.. I will investigate further at the office
|
|
Top
|
|
|
|
#102739 - 2003-07-12 12:00 AM
Re: is Kix running away with the processor
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
yep, it never gets to the quit... but that doesn't hurt. If nothing else, it is a 'reminder' the script is supposed to end.
|
|
Top
|
|
|
|
#102741 - 2003-07-11 02:58 PM
Re: is Kix running away with the processor
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
that was the problem...
code:
; ****************************** Win2k Service Pack 4 ***************************************** if $os="Win2k" and right(trim(@csd),1) < '4' if updateapp("Win2kSP4",3)="yes" $=setconsole("hide") md '%windir%\sp4' sleep 2 $=writevalue("$HKLMS\Microsoft\Ole","LegacyImpersonationLevel","2",REG_DWORD) $=Writeprofilestring("$logon\inventory\Install.log","Win2kSP4","@wksta","@date") shell '$setup\apps\win2ksp4\w2ksp4_EN.exe /U /X:%windir%\sp4' sleep 2 run '%windir%\sp4\i386\update\update.exe /u /N /F ' $m= "A CRITICAL Update is NOW taking place. Please do not open any programs until your system reboots.", "The Upgrade is running. Please do not open any programs. This will take about 10-15 minutes.", "The Upgrade will be complete in about 15 minutes and your computer will restart on it's own.", "You can stop clicking now." while ubound($m)>0 for each $message in $m $=Messagebox($message, "Message from MIS",65536) sleep 2 next loop quit endif endif
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1119 anonymous users online.
|
|
|