|
Answer» I need to create a batch file to run only once a COMPUTER joins a network domain. I need the batch file to install a program; let's call the program software.exe . This software will be on a shared folder on a server on the domain; let's say the network share is \\network server\shared folder\software folder\software.exe I need this batch file to run once as soon as any computer joins the domain. It is my idea of mass network deployment of a software on a domain since the manufacturer has not BUILT this feature into the application. I LOOK forward to a great solution soon. Thanx.How about calling this from your login.bat file:
CODE: [Select]echo off if exist "C:\Documents and Settins\SoftwareInstalled.txt" goto :EOF "\\network server\shared folder\software folder\software.exe" echo \\network server\shared folder\software folder\software.exe has been installed >"C:\Documents and Settins\SoftwareInstalled.txt" It will check for the SoftwareInstalled.txt file, and if it does not exist, then install the software and create the SoftwareInstalled file. If it does exist, then the software must already be installed, so quit.
It seems like the "right" way to do this is make software.exe a required software in your domain OU ... but this should work for what you asked.You'll want to check whether the particular installation program allows for unattended installation. You've probably thought of that...
|