#102946 - 2003-07-16 02:20 AM
Remote Install of Service Pack x
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Just wondering if anyone out there has had experience with installing service packs onto systems logged on as a user? I am thinking SU or RShell. If anyone has a better idea...
|
|
Top
|
|
|
|
#102947 - 2003-07-16 02:32 AM
Re: Remote Install of Service Pack x
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
look for a few posts of mine on Remote Install or Remote Execute
The basic concept is to push the file to the target machine push a batch file (or whatever) with the commands to execute use RemoteExec() to execute the batch
NOTE that remote exec will have local admin (system account) but NO network permissions AND will be invisible to any currently logged on user.
You would be best to do this against a PC that is powered ON, but not logged into.
I have been looking into completing an app that would use WakeOnLAN to wake up powered off PCs, and push this type of update (SP4, IE, Etc.) to machines in the evenings...
I just haven't gotten around to it...
|
|
Top
|
|
|
|
#102948 - 2003-07-16 02:35 AM
Re: Remote Install of Service Pack x
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
LOL
Well get around to it Rad. We were talking about something like that just today.
|
|
Top
|
|
|
|
#102949 - 2003-07-16 02:36 AM
Re: Remote Install of Service Pack x
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#102950 - 2003-07-16 02:50 AM
Re: Remote Install of Service Pack x
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#102951 - 2003-07-16 02:53 AM
Re: Remote Install of Service Pack x
|
RichardG_dup1
Fresh Scripter
Registered: 2003-07-11
Posts: 16
Loc: Melbourne, Australia
|
Thanks Radimus,
I'll get stuck in and let you know how things go...
R
|
|
Top
|
|
|
|
#102956 - 2003-07-17 12:00 AM
Re: Remote Install of Service Pack x
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
been playing with KD / kforms and have made the gui for REM
Comments/suggestions... Other than make it work.
The listview at the bottom will have checkboxes that can be auto selected by the checkboxes in groupbox1
groupbox2 will select what commands are sent to the selected machines
I'll play with the resizeable form, the only thing I'd want to resize is the list view at the bottom [ 17. July 2003, 00:00: Message edited by: Radimus ]
|
|
Top
|
|
|
|
#102958 - 2003-07-17 03:21 AM
Re: Remote Install of Service Pack x
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
assuming that you were to run this after normal business hours, you would normally find
some turned off some logged off some abandoned in the middle of whatever word doc they were writing.
so assuming you checked them all (in order of execution)
The WOL check would wakeup only to each selected machine if powered off the logoff, would only logoff the machines abandoned if selected it would then deploy and exec the update to each selected machine and then shutdown each selected machine (probably put a 15 or 30 minute delay)
|
|
Top
|
|
|
|
#102959 - 2003-08-20 05:52 AM
Re: Remote Install of Service Pack x
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
|
For what it's worth...
I have a KixForms tool called DEPLOY. It works in conjunction with the INSTALL tool I posted here a while ago. INSTALL takes group of arguments and basically figures out how to run an unattended install process.
DEPLOY asks for the product name (also the folder name) and any arguments. It also gets a time/date to begin the push, and a list of server names in a text file.
For every server in the list, DEPLOY gets the target IP address, figures out the subnet and identifies the nearest Software Distribution file server (we have 5 - one per main site). It then pushes out a batch file that connects to the closest SWDIST server and runs the INSTALL command. My tsControl library is used to remotely schedule the task, using an admin's account credentials. This way, the task runs with admin/network access rights. The INSTALL command determines if a reboot should occur. Results are logged to the target server for later collection, although we're considering logging to the SWDIST server the install ran from.
Anyway, I got called into the office at 1am Monday to respond to the virus attack - by 2:30, I had forced the McAfee DAT file update and the KB823980 hotfix to 43 NT and 157 2K servers, and by 3am had verified tht the vulnerability had been patched on all servers.
NTDoc - the tsControl library may be daunting, but it lends itself to larger scheduling applications like the TSadm tool (posted on KixForms) and DEPLOY. Look at the sample code included in the zip file for help in getting started. I often use that sample file as a starting point for new scripts.
With tsControl, you can read events, update task and trigger settings, update security, get event status, and delete.
Glenn
PS - I have a new Kix script called MAINT that I'm wrapping up. It runs without args from a server, connects to a SWDIST server and reads a config file to determine what to do - apply service packs, hotfix packages, install or remove applications. Even handles continuation after reboots. Using this in our build lab, I've cut the server build process from 20 pages/30 Major steps to 5 pages/8 Major steps.
_________________________
Actually I am a Rocket Scientist!
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1619 anonymous users online.
|
|
|