Solved

Install applicatoins on Windows 2000

Posted on 2003-11-10
5
483 Views
Last Modified: 2010-04-14
I want to install several applications on almost 100 Windows 2000 PCs. How can I make all these applications to start their installation process automatically, rather I need to trigger the installations manually one by one?

Thanks in advance for help
0
Comment
Question by:kuanfai
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:PaulHieb
ID: 9719496
It can be very easy if you have an active directory domain and server. Some of the tools that you'll want to use include group policy software installation and logon scripts.

Both of these can be setup from the same place in 'active directory users and computers' from the server or PC with the administration tools installed.

you can still do logon scripts and group policy on individual machines, not on the domain. but it requires touching each one, either physically or though the network and shared drives. Let me know you scenario and I will expound on either.

Paul Hieb
Network Engineer
M Technology Services
0
 

Author Comment

by:kuanfai
ID: 9719542
The PCs are in one workgroup, but there is no server to control them. Since my application utilized several other applications or tools, I want to install them on these PCs with one command or script something like the shell script on Linux. I know that there is a tool called ON Command CCM 4.5 that can do this. However it out of my budget to buy this tool. I believe there should be a way to do this in Window 2000 with some command, isn't it?
0
 
LVL 2

Expert Comment

by:PaulHieb
ID: 9719613
If these applications require lots of feedback to install you might be best off programming a VB script using Windows scripting host. you can also use windiff.exe to 'build' packages. of these I know, but have never implemented. food for thought though.

However, you can write simple batch files to map drives, begin installation of programs, even if they require input, and to copy shortcuts, other files or import registry files. then it's as simple as dropping the bat file in the startup folder or imoporting a regfile that adds a 'run' or 'runonce' reference to the batch file. pretty much any command you can use in command line mode you can batch. And there are some other cool tricks to automate batch jobs. I have some samples and step by steps if you like.
0
 

Author Comment

by:kuanfai
ID: 9719650
Thanks for the comments. I would very appreciate if you can email me the samples on how to achieve this. my email address is: kuanfai_yf@hotmail.com
0
 
LVL 2

Accepted Solution

by:
PaulHieb earned 250 total points
ID: 9719779
Here's some of the scripts we're using....

printers.bat.... automatically sets up network printers.

@Echo off
if exist %temp%\Sales5.txt goto SkipPrinter1
if errorlevel 1 goto SkipPrinter1
 echo Installing Sales5.  Press Yes to any questions....
 start \\mtserv\LJ5Sales
 echo Installed > %temp%\Sales5.txt
:SkipPrinter1
if exist %temp%\MTS4.txt goto SkipPrinter2
if errorlevel 1 goto SkipPrinter2
 echo Installing MTS4.  Press Yes to any questions....
 start \\mtserv\mtslj4
 echo Installed > %temp%\MTS4.txt
:SkipPrinter2
if exist %temp%\tektronix.txt goto SkipPrinter3
if errorlevel 1 goto SkipPrinter3
 echo Installing Tektronix.  Press Yes to any questions....
 start \\mtserv\tektronix
 echo Installed > %temp%\tektronix.txt
:SkipPrinter3


Here's one to run a backup job from the comand line.
this only works if you use the RSM utility to discover the GUID of you tape drive. -- Only for backup, but it shows some methods of if-then logic, variables, and using the output of other commands down the line.

d:
cd\
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do  set dt=%%i-%%j-%%k-%%l
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
set tm=%tm::=-%
set dtt=%dt%%tm%
rsm.exe refresh /pg85C01307D4C24BDFB7AA3AA3BDD3E509
ping -n 30 127.0.0.1>nul
for /f %%a in ('rsm.exe view /cg85C01307D4C24BDFB7AA3AA3BDD3E509 /TPhysical_media /guiddisplay /b') DO set media=%%a
set partition=%media%
rsm.exe erase /pg%partition%
ping -n 30 127.0.0.1>nul
rsm.exe refresh /pg85C01307D4C24BDFB7AA3AA3BDD3E509
rsm.exe freemedia /pg%partition%
rsm.exe refresh /pg85C01307D4C24BDFB7AA3AA3BDD3E509
ping -n 30 127.0.0.1>nul
ntbackup.exe backup @D:\Full.bks /n "%dtt%" /d "%dtt%" /n "%dtt%" /v:yes /r:yes /rs:no /hc:on /m normal /j "%dtt%" /l:f /p "4mm DDS"
rsm.exe eject /LG85C01307D4C24BDFB7AA3AA3BDD3E509 /astart
pause

The following text in a .reg file can be directly imported into the local registry or scripted by appending the file name and path of the file as an argument to the 'regedit' executable. the following, if imported enables remote desktop sonnections to XP Pro Machines.

example: 'regedit -s myregfile.reg' (the -s to suppress confirmation dialogs)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
"fDenyTSConnections"=dword:00000000

Or open up your windows 2000 TCP stack a little (good for LAN communication)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"EnablePMTUHDetect"=dword:00000000
"EnablePMTUDiscovery"=dword:00000001
"GlobalMaxTcpWindowSize"=dword:0005ae4c
"SackOpts"=dword:00000001
"Tcp1323Opts"=dword:00000003
"TcpWindowSize"=dword:0005ae4c

Now you see how easy it would be to install as many apps as you wanted if you had every file and registry entry stored from an app and just put the copy and import commands into a batch file. Let me know how it goes. if you run into anything, I'd be glad to help on it.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
A procedure for exporting installed hotfix details of remote computers using powershell
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now