Page 1 of 1 1
Topic Options
#76406 - 2003-08-17 04:28 PM Remote Patch Manager
Richie19Rich77 Offline
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
#76407 - 2003-08-17 04:52 PM Re: Remote Patch Manager
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Looks like a good start. How about using LDAP instead of WinNT so that computers in OUs could be targetted?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#76408 - 2003-08-17 05:32 PM Re: Remote Patch Manager
Radimus Moderator Offline
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...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#76409 - 2003-08-17 05:47 PM Re: Remote Patch Manager
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
How would you check that the patch is for a certian OS, surly that must be the object of the operator of this script.

It will use Task Schelduler to roll the patch out.

I will be setting up logs and so on.

Have updated the Pic.

Thanks

Top
#76410 - 2003-08-17 05:51 PM Re: Remote Patch Manager
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
One question how would I bring up the sexy Microsoft Date calendar.

[Big Grin]

Top
#76411 - 2003-08-17 06:00 PM Re: Remote Patch Manager
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Here is a start...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/monthcal/monthcal.asp
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#76412 - 2003-08-17 06:59 PM Re: Remote Patch Manager
Richie19Rich77 Offline
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 [Big Grin] .

Thanks

Top
#76413 - 2003-08-17 07:13 PM Re: Remote Patch Manager
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
can't convert.
would have done that a long ago but it's not late bindable, thus it can't be scripted.
_________________________
!

download KiXnet

Top
#76414 - 2003-08-17 07:58 PM Re: Remote Patch Manager
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Guess shawnie will have to add it to kfo then.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#76415 - 2003-08-17 08:07 PM Re: Remote Patch Manager
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
I think Shawn is looking at reading ocx files, then it will be sorted.

[ 17. August 2003, 20:08: Message edited by: Richard Farthing ]

Top
#76416 - 2003-08-21 12:03 AM Re: Remote Patch Manager
Richie19Rich77 Offline
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
#76417 - 2003-08-22 12:51 AM Re: Remote Patch Manager
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Sweet.

[stupid questions mode]
Only supports AD so no go for us NT-ers [Confused] [Frown] (looking at the title and not tried it yet)

[/stupid questions mode]

[ 22. August 2003, 00:53: Message edited by: R2D2 ]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#76418 - 2003-08-22 10:50 AM Re: Remote Patch Manager
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it actually does nothing yet.
the functionality it has currently, is working on NT side too.

will see what it comes to so will know how much it needs modding to use on both network infras.
_________________________
!

download KiXnet

Top
#76419 - 2003-08-23 12:19 AM Re: Remote Patch Manager
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
[Big Grin]

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
#76420 - 2003-08-23 12:24 AM Re: Remote Patch Manager
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Just 1000 lines? Surely we can make them up ourselves [Wink] [Razz]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#76421 - 2003-08-23 12:37 AM Re: Remote Patch Manager
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
weird...
your code is only 127K (postprepped) so it shouldn't have done that...

wonder what the limit is...
or did the server have a hickup during posting.
_________________________
!

download KiXnet

Top
#76422 - 2003-08-25 12:07 AM Re: Remote Patch Manager
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
Good one !!! [Razz]

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
Page 1 of 1 1


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

Who's Online
0 registered and 1003 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.071 seconds in which 0.026 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