<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Teh Tech &#187; cURL</title>
	<atom:link href="http://tehtech.com/tag/curl/feed/" rel="self" type="application/rss+xml" />
	<link>http://tehtech.com</link>
	<description>Being an Admin is Hard Enough</description>
	<lastBuildDate>Wed, 14 Jul 2010 16:14:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Service Pack 3 Rollout Options Switches and Scripts</title>
		<link>http://tehtech.com/service-pack-3-rollout-options-switches-and-scripts/</link>
		<comments>http://tehtech.com/service-pack-3-rollout-options-switches-and-scripts/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 19:52:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Kaseya]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[Service Pack 3]]></category>
		<category><![CDATA[Windows update]]></category>
		<category><![CDATA[windowsXP-KB936929-SP3-x86-ENU.exe]]></category>

		<guid isPermaLink="false">http://tehtech.com/?p=105</guid>
		<description><![CDATA[Okay so Service Pack 3. Scary I know, I am always weary of big service pack rollouts. However if you don&#8217;t update to SP3, you are open to contracting some nasty bugs. Here are some simple install possibilities if you don&#8217;t have it on your networkÂ yet. Â I suggest that you take a look at some [...]]]></description>
			<content:encoded><![CDATA[<p>Okay so Service Pack 3. Scary I know, I am always weary of big service pack rollouts. However if you don&#8217;t update to SP3, you are open to contracting some nasty bugs. Here are some simple install possibilities if you don&#8217;t have it on your networkÂ yet. Â I suggest that you take a look at some of the install articles on SP3 and some of the complications people haveÂ experiencedÂ before doing a mass rollout. Â Below are some options that might beÂ helpfulÂ to you, but as always test on a few computers before rolling out to a bunch. Â You might also want to check out this <a title="Switches" href="http://techrepublic.com.com/5208-6230-0.html?forumID=102&amp;threadID=262992" target="_blank" onclick="pageTracker._trackPageview('/outgoing/techrepublic.com.com/5208-6230-0.html?forumID=102_amp_threadID=262992&amp;referer=');">link</a>Â for aÂ explanationÂ of the switches and arguments forÂ installation. In my scripts below the switches I use will force all aplications closed, and do a backup of of the replaced files, and make a log.Â  A progress window is displayed during the install and at the end the computer is rebooted.Â  I found this to be the best option for rollouts as you can see the progress bar to estimate time remaining, and you do have a log and a backup if things go wrong.Â  I suggest you find the right mix of switches that work for you though.<br />
<span id="more-105"></span></p>
<p>1. Windows Update: Â Works on small networks, though it might not be the best option on any network with more than a few computers. Â </p>
<p>2. Network Install: Â The file isÂ availableÂ fromÂ MicrosoftÂ <a title="SP3" href="http://download.microsoft.com/download/d/3/0/d30e32d8-418a-469d-b600-f32ce3edf42d/WindowsXP-KB936929-SP3-x86-ENU.exe" target="_blank" onclick="pageTracker._trackPageview('/outgoing/download.microsoft.com/download/d/3/0/d30e32d8-418a-469d-b600-f32ce3edf42d/WindowsXP-KB936929-SP3-x86-ENU.exe?referer=');">here</a>. Â Then all you have to do is install it, or script it. Â  I used this script to accomplish this at a few of my locations. Â Note that you can run it over the network, but I like to copy it locally, just incase there is a networkÂ failureÂ or i need to rerun it later for some reason.</p>
<div class="box">
<p>Title DO NOT CLOSE!!!<br />
color 1f<br />
echo off<br />
net use x: <span style="color: #ff0000;">Â Serversp3<br />
</span>md c:downloads<br />
md c:downloadssp3<br />
copy x:windowsXP-KB936929-SP3-x86-ENU.exe c:downloads<br />
net use x: /delete<br />
cls<br />
echo A UPDATE IS INSTALLING ON THIS COMPUTER. DO NOT RESTART OR CLOSE THIS WINDOW. WHEN THE UPDATE IS COMPLETE THE COMPUTER WILL RESTART AUTOMATICALLY.<br />
c:downloadsWindowsXP-KB936929-SP3-x86-ENU.exe /passive /forcerestart /forceappsclose /d:c:tempbu /log:c:tempbuxpsp3.log</div>
<p>3. Kaseya with cURLing: Â This will create a ton ofÂ bandwidthÂ usageÂ if you push this to more than a few computers on the same network, as every computer will be downloading it to their local disk. Â So I don&#8217;tÂ recommendÂ this to a really large network, and it is also best done at night just so you don&#8217;t get any complaints of slowness. Â Also note that you are going to have to have curl on your kserver to make this work. Â Check out this post for a quick explination of <a title="cURL Post" href="http://tehtech.com/?p=47">cURLÂ </a>or just download it <a title="cURL" href="http://curl.haxx.se/" onclick="pageTracker._trackPageview('/outgoing/curl.haxx.se/?referer=');">hereÂ </a>Â Â  The script will check to see if the computer is running SP3 already, if it is it will stop, if not it will download it and run an unattended install followed by a reboot. Â </p>
<div class="box">Script Name: sp3 curl<br />
Script Description:Â <br />
IF Check Registry Value<br />
Parameter 1 : HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionCSDVersion<br />
= :Service Pack 3<br />
THEN<br />
ELSE<br />
Execute Shell Command<br />
Parameter 1 : md c:temp<br />
Parameter 2 : 0<br />
OS Type : 8<br />
Execute Shell Command<br />
Parameter 1 : md c:tempsp3<br />
Parameter 2 : 0<br />
OS Type : 8<br />
Write File<br />
Parameter 1 : c:tempsp3curl.exe<br />
Parameter 2 : <span style="color: #ff0000;">admincurlcurl.exe</span><br />
OS Type : 8<br />
Execute File<br />
Parameter 1 : c:tempsp3curl.exe<br />
Parameter 2 : http://download.microsoft.com/download/d/3/0/d30e32d8-418a-469d-b600-f32ce3edf42d/WindowsXP-KB936929-SP3-x86-ENU.exe -o &#8220;c:tempsp3WindowsXP-KB936929-SP3-x86-ENU.exe&#8221;<br />
Parameter 3 : 3<br />
OS Type : 8<br />
Execute Shell Command<br />
Parameter 1 : c:tempsp3WindowsXP-KB936929-SP3-x86-ENU.exe /passive /forcerestart /forceappsclose /d:c:tempbu /log:c:tempbuxpsp3.log<br />
Parameter 2 : 0<br />
OS Type : 8</div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2740910196434334";
google_ad_slot = "5492961778";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://tehtech.com/service-pack-3-rollout-options-switches-and-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Curling: Installing Adobe Reader With cURL</title>
		<link>http://tehtech.com/curling-installing-adobe-reader-with-curl/</link>
		<comments>http://tehtech.com/curling-installing-adobe-reader-with-curl/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 22:09:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[Kaseya]]></category>
		<category><![CDATA[Unattended]]></category>

		<guid isPermaLink="false">http://tehtech.com/?p=47</guid>
		<description><![CDATA[Don&#8217;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 [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;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Â <a title="cURL" href="http://curl.haxx.se/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/curl.haxx.se/?referer=');">http://curl.haxx.se/</a>Â . Â 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.<br />
<span id="more-47"></span></p>
<div class="box">http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.0/enu/AdbeRdr90_en_US.exeÂ -o &#8220;c:tempadobeAdbeRdr90_en_US.exe&#8221;</div>
<p>Essentially you use the syntax <span style="color: #ff0000;">&lt;URL of file&gt; -o &lt;Destination of file in quotes&gt;<span style="color: #000000;">Â </span></span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">The Â &#8217;-o&#8217; 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 <a title="cURL" href="http://curl.haxx.se/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/curl.haxx.se/?referer=');">http://curl.haxx.se/.</a></span></span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">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.</span></span></p>
<div class="box">md c:temp<br />
md c:tempadobe<br />
<span style="color: #ff0000;">c:tempcurl.exe</span> http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.0/enu/AdbeRdr90_en_US.exe -o &#8220;c:tempadobeAdbeRdr90_en_US.exe&#8221;<br />
c:tempadobeAdbeRdr90_en_US.exe /sAll /rs /l /msi&#8221;/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES</div>
<p>Note that you can change the path to your curl.exe to match where you have stored it on your computer.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-2740910196434334";
google_ad_slot = "5492961778";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://tehtech.com/curling-installing-adobe-reader-with-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

