#21161 - 2002-05-03 03:44 PM
copying KIX32.EXE to NT/2000 clients from server script
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
We have many Windows NT/2000 Workstation PCs in the organization. Many of the users on these PCs do not have admin (some only guest) privileges, so as such the logon script is unable to copy files to the PC. What I would like to do is create a script I can run daily on the server that finds all NT/2000 clients on the domain, checks for the right version of KIX32.EXE and WKIX32.exe in the %windir% and copies it if it isn't there or out of date. It would be nice if this script only copied the files to one machine about every 10 seconds and kept a log of its progress for use in later runs of the script (so it didn't duplicate efforts). About once a month the logs would be cleaned out and the script would start fresh.
Does anyone have a solution for this? I think I can safely check for version and copy files, but I'm not sure how to enumerate the NT/2000 PCs on the network, log machines, and compare logs.
Brian
|
|
Top
|
|
|
|
#21164 - 2002-05-03 04:11 PM
Re: copying KIX32.EXE to NT/2000 clients from server script
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
That sounds interesting.. I'm working on changing what you have to work with my situation. Is this this UDF you were talking about?
http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=12;t=000059
I wonder if other people would find this idea a workable solution to copying kix32.exe to NT/2000 systems outside of the logon script. The reason I can get by with not having it on the systems is in my logon bat file it will check for a kix32.exe locally and if it's not there will run the logon script from netlogon. For Windows 95, the kix32 files are copied during the logon script (from netlogon).
Brian
|
|
Top
|
|
|
|
#21166 - 2002-05-03 06:21 PM
Re: copying KIX32.EXE to NT/2000 clients from server script
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I'm thinking the jt.exe method may be better.. I wrote a script to do this, but if the standard shares aren't enabled it won't work...
Here is my script:
code:
break on call "i:\netview.kix" $fileversion = "4, 0, 2" $computer="000000000" $netview = netview("@LDOMAIN") $date = "@DATE @TIME" if @error = 0 for each $computer in $netview $computerupdateddate=READPROFILESTRING ("i:\cpkix.ini","@LDOMAIN",$computer) if $computerupdateddate = "" if GETFILEVERSION ("\\" + $computer + "ADMIN$$\kix32.exe") <> $fileversion COPY "I:\kix32exe\*.*" "\\" + $computer + "\ADMIN$$" IF @ERROR = 0 $ok = WriteProfileString ("i:\cpkix.ini","@LDOMAIN",$computer,$date) ELSE $ok = WriteProfileString ("i:\cpkix.ini","@LDOMAIN-FAILED",$computer,$date) endif ELSE $ok = WriteProfileString ("i:\cpkix.ini","@LDOMAIN",$computer,"AlreadyCurrent -- "+$date) endif endif Next Endif
Are there any comments on this?
Brian
|
|
Top
|
|
|
|
#21168 - 2002-05-03 08:19 PM
Re: copying KIX32.EXE to NT/2000 clients from server script
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I'm in somewhat the same situation as you. When browsing one domain, I find over 350 visible objects. However, not all machines are visible nor on this domain. Ideally, I should be able to do exactly the same things for NT as I do for Windows 95 through the logon script... however at this point I can't.
The logon script by design is as static as possible. Rather than make incremental changes to the logon script, I prefer to rewrite the script, making multiple optimizations. If I create a test logon script with all of my optimizations included and working, it is much easier to gain approval from management for these changes.
Management looks for these things:
1. Does it look the same to the end user? 2. Can we patch the old script to do the same things? 3. Is there another way of doing it that disturbs the end user less? 4. Has it been tested properly? 5. Does it require changes to the DCs and other supplementary systems? 6. Does it require additional maintenance? 7. Is the script long, hard to understand, and difficult to maintain or recreate? 8. Does it increase network bandwidth peak usage?
..... Many of these types of questions are very difficult to get around. Because software and hardware platforms are constantly changing, the answer is more often than not -- "wait to implement it until we know more about what we're going to be doing in a few months" or "we don't understand it so it's too complex"...
....
What I would like to do is present a logon script that :
1. copies kixtart to client machines, even though the user may not have local admin rights. 2. Maps drives based on what group a user is in. 3. Installs/maintains/updates the latest version of VirusScan (with or without local admin rights) 4. Does not add a bunch of files to the users' PCs 5. Runs quickly on slow connections. 6. Installs security updates and hotfixes when necessary (to Win95/NT/2000 -- with or without local admin rights). 7. Is not so long that you can't read through it in half an hour. ...........
So, at present, I'm working on it.. trying to figure out the best solution.
Brian
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|