Don’t worry, you wont need a broom for this. cURL is a free opensoure, crossplatform, tiny application used for file transfer over urls, and browser emulation form command line. It is avaliable here http://curl.haxx.se/ . I happened across this while back while looking for a way to remotely download files from microsoft without user intervention and this has proved to be very useful. So heres how it works to do a basic download. In this example we are downloading Adobe Reader 9 from adobe.com.
Essentially you use the syntax <URL of file> -o <Destination of file in quotes>
The ’-o’ switch will output the file where you want it to go, the directory must already exist though. Additionally this will work only for URLs that do not begin with HTTP. Telnet, TFTP, FTP, and many other common protocols are supported. If you need to curl from a HTTPS site you must also download the open SSL package from http://curl.haxx.se/.
Now to put it all together. This script can be used as a batch file to download and install Adobe Reader 9 from Adobe.com without any user intervention. The download is automated, and the necessary switches to completely automate the installation are below. The instalation of adobe is completely silent, it installs for all users with no user input or display. Give it about 5 min to complete the install after the curl finishes. This script can be used in a login script on a domain, or pushed through a management application such as Kaseya.
md c:tempadobe
c:tempcurl.exe http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.0/enu/AdbeRdr90_en_US.exe -o “c:tempadobeAdbeRdr90_en_US.exe”
c:tempadobeAdbeRdr90_en_US.exe /sAll /rs /l /msi”/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES
Note that you can change the path to your curl.exe to match where you have stored it on your computer.
[ad]