#76406 - 2003-08-17 04:28 PM
Remote Patch Manager
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
I am creating a GUI Patch Manager, which may be of help to some people.
It is not finished but you should get the idea.
Please give me sugestions on what else should be in there.
I did have a Network/Server select window, but as our company would never use this I didn't put it in (We have over 90 VLANS).
Thanks
UNDER DEVELOPMENT - WILL POST SOON [ 02. September 2003, 01:24: Message edited by: Richard Farthing ]
|
|
Top
|
|
|
|
#76408 - 2003-08-17 05:32 PM
Re: Remote Patch Manager
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I'd put in a check for 'skip if already patched' and what to check for.
Certain patches are for certain OSs... might want to filter inappropriate ones out
would this remotely execute or task schedule the patch?
you would probably need to generate specific logs, patch successful, patch not needed, patch error, computer unavailable...
|
|
Top
|
|
|
|
#76410 - 2003-08-17 05:51 PM
Re: Remote Patch Manager
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
One question how would I bring up the sexy Microsoft Date calendar.
|
|
Top
|
|
|
|
#76412 - 2003-08-17 06:59 PM
Re: Remote Patch Manager
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
Well looking at that, I think I will wait until someone else has converted it to kix .
Thanks
|
|
Top
|
|
|
|
#76416 - 2003-08-21 12:03 AM
Re: Remote Patch Manager
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
I have finished my script now (Remote Installation Patch Manager), you can download it from the following location:
Remote Installation Manager
I will update the main code on the 1st post.
Thanks [ 21. August 2003, 00:04: Message edited by: Richard Farthing ]
|
|
Top
|
|
|
|
#76419 - 2003-08-23 12:19 AM
Re: Remote Patch Manager
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
Sorry when I posted It cut off the bottom 1000 lines of the script.
It does work, but I have only tested it on Windows 2000 using AD.
I have updated some things that will be uploaded to my FTP server soon.
1. I will be using this to send out patches to remote PC's. 2. It will document the PC's that it installed on to and the PC's that it failed to connect to.
Thanks [ 22. August 2003, 12:22: Message edited by: Richard Farthing ]
|
|
Top
|
|
|
|
#76422 - 2003-08-25 12:07 AM
Re: Remote Patch Manager
|
Saleem
Hey THIS is FUN
Registered: 2001-04-11
Posts: 280
Loc: UAE
|
Good one !!!
I was doing this task in my company now, I made a (vulger) script to do it, It look mess but it is doing so many checks, If you can add those checks in ur script it would be wonderfull, I'll post my code here, may be u'll get some idea out of that.
code:
$computerlist=NetView2() For Each $computer In $computerlist ;? ''+$computer $PRODUCTTYPE=ReadValue('\\'+$computer+'\HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\CONTROL\PRODUCTOPTIONS','PRODUCTTYPE') If $PRODUCTTYPE="WinNT" $regkey='\\'+$computer+'\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion' $regvalue='CurrentVersion' If ReadValue($regkey,$regvalue)='5.0' Use t: "\\$remotepc\c$" Sleep 2 If @error=0 ;? "U have admin privilage" $wm=ping ("$computer",1) $Len=Len("$wm") $NWA=SubStr($wm,4,$Len-8) $POS=InStr($NWA,".") $NAP=SubStr($NWA,1,$POS-1) $NA=LTrim("$NAP") If($na="2" OR $na="23" OR $na="24") $regvalue1=KeyExist('\\'+$computer+'\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFIx\KB823980') If $regvalue1=0 ? "$cOMPUTER dosent have Hotfix" Shell "%comspec% /c xcopy /Q /e /Y /i \\w2k0182\Patch \\$computer\c$\patch\" Copy "d:\patch\patchdel.bat" "\\$computer\c$" WriteValue ('\\'+$computer+'\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce',"delfolder",'c:\patchdel.bat','REG_SZ') $name=patchinstall.job $comp='$computer' $date=TODAY $time=NOW $type=ONCE $cmd='c:\patch\update.exe' $prms='-q -z -n' $user=admin $pw=password $comment='patch deployment' $typeargs='' $rc=scheduletask($name,$comp,$date,$time,$type,$cmd,$prms,$user,$pw,$comment,$typeargs,$jt) Open(1,"C:\patchinstall.TXT",5) WriteLine (1,"$computer scheduled for patch install"+@CRLF) Close(1) ; copy service pack to local machine ; schedule local machine install via Task Scheduler Else ? "$computer patch allready installed" EndIf Else ? "$computer is not in target subnet" EndIf Use t: /Del Else ? "you dont have admin privilage in $computer" EndIf Else ? "$computer is either not Windows 2000 or is offline" EndIf Else ? "$computer is server" EndIf Next
I am using netview2 to deploy the patch only to pingable machines.
_________________________
“I’ll not change you unless you don’t have intention to change yourself”
--H:Quran
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1188 anonymous users online.
|
|
|