Page 1 of 1 1
Topic Options
#102946 - 2003-07-16 02:20 AM Remote Install of Service Pack x
RichardG_dup1 Offline
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... [Smile]
Top
#102947 - 2003-07-16 02:32 AM Re: Remote Install of Service Pack x
Radimus Moderator Offline
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...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#102948 - 2003-07-16 02:35 AM Re: Remote Install of Service Pack x
NTDOC Administrator Online   content
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. [Big Grin]

Top
#102949 - 2003-07-16 02:36 AM Re: Remote Install of Service Pack x
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
here is about that last I messed with this.

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=2;t=004060#000000
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#102950 - 2003-07-16 02:50 AM Re: Remote Install of Service Pack x
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
and here is the portion to get the MAC addr

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=13;t=000580
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#102951 - 2003-07-16 02:53 AM Re: Remote Install of Service Pack x
RichardG_dup1 Offline
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
#102952 - 2003-07-16 04:32 AM Re: Remote Install of Service Pack x
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
KSMS has a working Wake-on-LAN subroutine in the server-side script.

One could also use the Task Scheduler to install the Service Pack via a batch file that copies the service pack to the local machine, unpacks it, then runs the install, then restarts the computer.
_________________________
There are two types of vessels, submarines and targets.

Top
#102953 - 2003-07-16 08:59 AM Re: Remote Install of Service Pack x
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Have you actually used Glenn's UDF for this Jens?

It is so large, it is daunting. Just curious who has tried it and how much trouble was it to get setup and working. 10 min, 30 min, 1 hr, 4 hrs, 1 day, 3 days?

Top
#102954 - 2003-07-16 04:32 PM Re: Remote Install of Service Pack x
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Nope, I'm using my own UDF as I only do simple scheduling stuff.
_________________________
There are two types of vessels, submarines and targets.

Top
#102955 - 2003-07-16 09:35 PM Re: Remote Install of Service Pack x
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
doc, the size does not mean that it's hard to get to work [Big Grin]

that would indicate...
well, that should then mean that getting checker running took quite a while [Wink]
_________________________
!

download KiXnet

Top
#102956 - 2003-07-17 12:00 AM Re: Remote Install of Service Pack x
Radimus Moderator Offline
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 ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#102957 - 2003-07-17 01:54 AM Re: Remote Install of Service Pack x
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
static scrollbar on the listview. [Wink]
still purely AD...
that does not change the skin but might add something for us NT-domainers.

the remote groupbox.
wake on lan, that is like if the machine is offline, so in other cases, not needed.
and it's pre. it needs to be done before anything else.
then, logoff users.
pre anything else but WAL.
remote exec.
and shutdown.

not sure what the meaning for this soft is.
it kinda looks like a tool for remote-exec but then also remote-power tool as remote-exec is disablable.
_________________________
!

download KiXnet

Top
#102958 - 2003-07-17 03:21 AM Re: Remote Install of Service Pack x
Radimus Moderator Offline
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)
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#102959 - 2003-08-20 05:52 AM Re: Remote Install of Service Pack x
Glenn Barnas Administrator Offline
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! \:D

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.083 seconds in which 0.039 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