Page 1 of 1 1
Topic Options
#109 - 1999-06-14 09:46 AM Update user OS
Anonymous
Unregistered


Hi everybody
I am trying to write login script to update all the operating system and application to Y2k. using Kixtart can anybody help me and tell how to go about it.
my idea is to have login script can check what operating system version is (win95/98/NT) then implemment the patch files to the that OS then reboot system. next time when the user login will check if the user system has been updated with y2k.
We have Novell and NT network can use kixtart login script in novell server and NT server?
Thanks

Top
#110 - 1999-06-15 02:54 AM Re: Update user OS
Anonymous
Unregistered


If you go in the Kixtart - Script forum, you'll find a script sample named 'Domain login script' (or something approaching) which will give you an answer.

Bye

Top
#111 - 1999-06-16 04:42 PM Re: Update user OS
Anonymous
Unregistered


I'm trying to do the same myself
I haven't tried these yet

IF "%BUILD%" = "NT4_01"
SHELL "CMD /C \\server\update\PATCH\SETUP.BAT"
SETM "BUILD=NT4_02"
ENDIF

OR TRY
;MSNET.DDL UPDATE
$RETURNCODE = EXIST ("%WINDIR%\UPDATE1.TXT")
IF $RETURNCODE = 0
SHELL "%COMSPEC% /C COPY \\SERVER\UPDATES\UPDATE1.TXT %WINDIR%"
RUN "%COMSPEC% /C \\ZASRV01\UPDATES\MSNETUPD.EXE /Q"
ENDIF

;PING UPDATE
$RETURNCODE = EXIST ("C:\WINDOWS\UPDATE2.TXT")
IF @INWIN = 2 AND $RETURNCODE = 0
SHELL "COMMAND.COM /C COPY \\SERVER\UPDATES\UPDATE2.TXT C:\WINDOWS"
SHELL "C:\COMMAND.COM /E:1024 /C" + \\SERVER\UPDATES + "\PINGUPD.EXE /Q"
ENDIF

Hope this helps


Top
#112 - 1999-06-16 04:43 PM Re: Update user OS
Anonymous
Unregistered


I'm trying to do the same myself
I haven't tried these yet

IF "%BUILD%" = "NT4_01"
SHELL "CMD /C \\server\update\PATCH\SETUP.BAT"
SETM "BUILD=NT4_02"
ENDIF

OR TRY
;MSNET.DDL UPDATE
$RETURNCODE = EXIST ("%WINDIR%\UPDATE1.TXT")
IF $RETURNCODE = 0
SHELL "%COMSPEC% /C COPY \\SERVER\UPDATES\UPDATE1.TXT %WINDIR%"
RUN "%COMSPEC% /C \\ZASRV01\UPDATES\MSNETUPD.EXE /Q"
ENDIF

;PING UPDATE
$RETURNCODE = EXIST ("C:\WINDOWS\UPDATE2.TXT")
IF @INWIN = 2 AND $RETURNCODE = 0
SHELL "COMMAND.COM /C COPY \\SERVER\UPDATES\UPDATE2.TXT C:\WINDOWS"
SHELL "C:\COMMAND.COM /E:1024 /C" + \\SERVER\UPDATES + "\PINGUPD.EXE /Q"
ENDIF

Hope this helps


Top
#113 - 1999-06-16 05:15 PM Re: Update user OS
Anonymous
Unregistered


$res = EXISTKEY("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Updates\UPD970630R1")
IF $res > 0
SHELL "start C:\WINDOWS\rundll32.exe setupx.dll,InstallHinfSection DefaultInstall 128 \\Server\updates\vipupd\W95UPD.INF"
ENDIF

Top
#114 - 1999-06-19 05:38 PM Re: Update user OS
Anonymous
Unregistered


Miguel,
Thanks for your help
I have tried to use this syntax
if exist("c:\windows\w95y2kun.inf")
goto winsock2
else
messagebox($message,"software update:win95y2k")
run "$lserver + \updates\win95y2kbut
endif
All my update files are on the PDC ("\\myserver\netlogon\updates")
I am still have problem try to run this patch file.
please if you have sample of your script will be helpful. have you tried the "Domain Login Script sample by Fang09 on the 10th June.I have tried this script but doesn't work.

thanks

------------------
Thanks

D.Riadi
driss_riadi@gtech.com

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 1343 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.038 seconds in which 0.019 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