<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/3.3.2" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Notes, Solutions, and Rants - Limited to 8 last days</title>
		<link>http://tech.mikeal.com/blog1.php</link>
		<atom:link rel="self" type="application/rss+xml" href="http://tech.mikeal.com/blog1.php?tempskin=_rss2" />
		<description></description>
		<language>en-US</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=3.3.2"/>
		<ttl>60</ttl>
				<item>
			<title>Making shortcuts on remote PCs using vbscript and psexec</title>
			<link>http://tech.mikeal.com/blog1.php/2010/08/27/making-shortcuts-on-remote-pcs-using-vbscript-and-psexec</link>
			<pubDate>Fri, 27 Aug 2010 19:56:12 +0000</pubDate>			<dc:creator>Mikeal</dc:creator>
			<category domain="main">scripts</category>			<guid isPermaLink="false">14@http://tech.mikeal.com/</guid>
						<description>&lt;p&gt;Most of this information I'm taking from other websites, but I wanted a copy all in the same place.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.computerperformance.co.uk/ezine/ezine119.htm&quot;&gt;computerperformance.co.uk&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx&quot;&gt;sysinternals tools from technet&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.mvps.org/serenitymacros/iconlist.html&quot;&gt;mvps.org icon finder for Shell32 with numbers!&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Basically you create a vbscript that makes a shortcut, using the mvps.org chart to assign the icon image you want, and then push that vbs file out using psexec cli tool from the sysinternals suite.    &lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br /&gt;
' Create ShortCut.vbs - Create a Desktop Shortcut.&lt;br /&gt;
' VBScript to create .lnk file&lt;br /&gt;
' Author Guy Thomas &lt;a href=&quot;http://computerperformance.co.uk&quot;&gt;http://computerperformance.co.uk&lt;/a&gt;&lt;br /&gt;
' Version 2.4 - July 2006&lt;br /&gt;
' ----------------------------------------------------------' &lt;br /&gt;
Option Explicit&lt;br /&gt;
Dim objShell, objDesktop, objLink&lt;br /&gt;
Dim strAppPath, strWorkDir, strIconPath&lt;br /&gt;
&lt;br /&gt;
' --------------------------------------------------&lt;br /&gt;
' Here are the variables that to change if you are making a 'real' script&lt;br /&gt;
&lt;br /&gt;
strWorkDir =&quot;C:\windows&quot;&lt;br /&gt;
strAppPath = &quot;http://tech.mikeal.com&quot;&lt;br /&gt;
strIconPath = &quot;%SystemRoot%\system32\SHELL32.dll,74&quot;&lt;br /&gt;
&lt;br /&gt;
Set objShell = CreateObject(&quot;WScript.Shell&quot;)&lt;br /&gt;
objDesktop = objShell.SpecialFolders(&quot;Desktop&quot;)&lt;br /&gt;
Set objLink = objShell.CreateShortcut(objShell.SpecialFolders(&quot;AllUsersDesktop&quot;) &amp;amp; &quot;\Mikeal's Tech Blog.lnk&quot;)&lt;br /&gt;
&lt;br /&gt;
' ---------------------------------------------------&lt;br /&gt;
' Section which adds the shortcut's key properties&lt;br /&gt;
&lt;br /&gt;
objLink.Description = &quot;Mikeal's Tech Blog&quot;&lt;br /&gt;
objLink.HotKey = &quot;CTRL+SHIFT+S&quot;&lt;br /&gt;
objLink.IconLocation = strIconPath&lt;br /&gt;
objLink.TargetPath = strAppPath&lt;br /&gt;
objLink.WindowStyle = 3&lt;br /&gt;
objLink.WorkingDirectory = strWorkDir&lt;br /&gt;
objLink.Save&lt;br /&gt;
&lt;br /&gt;
WScript.Quit&lt;br /&gt;
&lt;br /&gt;
' End of creating a desktop shortcut&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;strIconPath&lt;/strong&gt; The 74 value in the is the number that selects the icon image.  Check &lt;a href=&quot;http://www.mvps.org/serenitymacros/iconlist.html&quot;&gt;mvps.org&lt;/a&gt; to find the image and value you want.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;strAppPath&lt;/strong&gt; is the url, or executable path for the shortcut.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;objShell.CreateShortcut&lt;/strong&gt; Set the to the location you want the shortcut created.&lt;/li&gt;
&lt;li&gt;Modify the &lt;strong&gt;objLink.Description&lt;/strong&gt;, and &lt;strong&gt;Hotkey&lt;/strong&gt; as needed.&lt;/li&gt;
&lt;li&gt;Save the file as 'create myshortcut.vbs' and test it.  If everything works correctly you can now take psexec and execute the script on other remote computers.&lt;/li&gt;
&lt;li&gt;To push out the vbs file you will need to make 2 batch files and a text file.  You must place all these files, along with the psexec.exe file from the sysinternals package, on a network share.  Make sure the share is accessible PCs the shortcut will be deployed to.  The executable path has to work for the computers you are pushing it to.&lt;/li&gt;&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Launch.bat:&lt;/strong&gt;&lt;br /&gt;
cscript &quot;\\server\share\create myshortcut.vbs&quot;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Install.bat:&lt;/strong&gt;&lt;br /&gt;
psexec @workstations.txt -u domain\domainadmin -p myadminpwhere &quot;\\server\share\launch.bat&quot;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;workstations.txt:&lt;/strong&gt;&lt;br /&gt;
mypcname.mydomain.com&lt;br /&gt;
workstation2.mydomain.com&lt;br /&gt;
workstation3.mydomain.com&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can use IP address instead of DNS names in workstations.txt if needed. &lt;/p&gt;

&lt;p&gt;When finished run the install.bat file from dos.  install.bat will execute launch.bat on the remote computers listed in workstations.txt.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://tech.mikeal.com/blog1.php/2010/08/27/making-shortcuts-on-remote-pcs-using-vbscript-and-psexec&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Most of this information I'm taking from other websites, but I wanted a copy all in the same place.</p>

<p><a href="http://www.computerperformance.co.uk/ezine/ezine119.htm">computerperformance.co.uk</a><br />
<a href="http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx">sysinternals tools from technet</a><br />
<a href="http://www.mvps.org/serenitymacros/iconlist.html">mvps.org icon finder for Shell32 with numbers!</a></p>

<p>Basically you create a vbscript that makes a shortcut, using the mvps.org chart to assign the icon image you want, and then push that vbs file out using psexec cli tool from the sysinternals suite.    </p>

<p><code><br />
' Create ShortCut.vbs - Create a Desktop Shortcut.<br />
' VBScript to create .lnk file<br />
' Author Guy Thomas <a href="http://computerperformance.co.uk">http://computerperformance.co.uk</a><br />
' Version 2.4 - July 2006<br />
' ----------------------------------------------------------' <br />
Option Explicit<br />
Dim objShell, objDesktop, objLink<br />
Dim strAppPath, strWorkDir, strIconPath<br />
<br />
' --------------------------------------------------<br />
' Here are the variables that to change if you are making a 'real' script<br />
<br />
strWorkDir ="C:\windows"<br />
strAppPath = "http://tech.mikeal.com"<br />
strIconPath = "%SystemRoot%\system32\SHELL32.dll,74"<br />
<br />
Set objShell = CreateObject("WScript.Shell")<br />
objDesktop = objShell.SpecialFolders("Desktop")<br />
Set objLink = objShell.CreateShortcut(objShell.SpecialFolders("AllUsersDesktop") &amp; "\Mikeal's Tech Blog.lnk")<br />
<br />
' ---------------------------------------------------<br />
' Section which adds the shortcut's key properties<br />
<br />
objLink.Description = "Mikeal's Tech Blog"<br />
objLink.HotKey = "CTRL+SHIFT+S"<br />
objLink.IconLocation = strIconPath<br />
objLink.TargetPath = strAppPath<br />
objLink.WindowStyle = 3<br />
objLink.WorkingDirectory = strWorkDir<br />
objLink.Save<br />
<br />
WScript.Quit<br />
<br />
' End of creating a desktop shortcut<br />
</code></p>

<ol>
<li><strong>strIconPath</strong> The 74 value in the is the number that selects the icon image.  Check <a href="http://www.mvps.org/serenitymacros/iconlist.html">mvps.org</a> to find the image and value you want.</li>
<li><strong>strAppPath</strong> is the url, or executable path for the shortcut.</li>
<li><strong>objShell.CreateShortcut</strong> Set the to the location you want the shortcut created.</li>
<li>Modify the <strong>objLink.Description</strong>, and <strong>Hotkey</strong> as needed.</li>
<li>Save the file as 'create myshortcut.vbs' and test it.  If everything works correctly you can now take psexec and execute the script on other remote computers.</li>
<li>To push out the vbs file you will need to make 2 batch files and a text file.  You must place all these files, along with the psexec.exe file from the sysinternals package, on a network share.  Make sure the share is accessible PCs the shortcut will be deployed to.  The executable path has to work for the computers you are pushing it to.</li></ol>
<ul>
<li><strong>Launch.bat:</strong><br />
cscript "\\server\share\create myshortcut.vbs"</li>
<li><strong>Install.bat:</strong><br />
psexec @workstations.txt -u domain\domainadmin -p myadminpwhere "\\server\share\launch.bat"</li>
<li><strong>workstations.txt:</strong><br />
mypcname.mydomain.com<br />
workstation2.mydomain.com<br />
workstation3.mydomain.com</li>
</ul>

<p>You can use IP address instead of DNS names in workstations.txt if needed. </p>

<p>When finished run the install.bat file from dos.  install.bat will execute launch.bat on the remote computers listed in workstations.txt.</p><div class="item_footer"><p><small><a href="http://tech.mikeal.com/blog1.php/2010/08/27/making-shortcuts-on-remote-pcs-using-vbscript-and-psexec">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://tech.mikeal.com/blog1.php/2010/08/27/making-shortcuts-on-remote-pcs-using-vbscript-and-psexec#comments</comments>
			<wfw:commentRss>http://tech.mikeal.com/blog1.php?tempskin=_rss2&#38;disp=comments&#38;p=14</wfw:commentRss>
		</item>
				<item>
			<title>URL Rewrite for IIS7 http to https redirection</title>
			<link>http://tech.mikeal.com/blog1.php/2010/08/25/url-rewrite-for-iis7-http-to-https-redirection</link>
			<pubDate>Wed, 25 Aug 2010 21:33:24 +0000</pubDate>			<dc:creator>Mikeal</dc:creator>
			<category domain="main">IIS7</category>			<guid isPermaLink="false">13@http://tech.mikeal.com/</guid>
						<description>&lt;p&gt;This is a great addition. &amp;#160;Finally we have an easy way to redirect users. &amp;#160;I'm using this to rewrite all http connections as https.&lt;/p&gt;
&lt;p&gt;You can use the web installed for URL Rewrite &lt;a href=&quot;http://www.iis.net/download/urlrewrite&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After you have the extension loaded you can make rules 2 ways. &amp;#160;Either by editing the web.config file in the root of your website, or with the GUI in IIS7. &amp;#160;I find working with the web.config easier.&lt;/p&gt;
&lt;p&gt;&lt;img title=&quot;web.config&quot; src=&quot;http://www.mikeal.com/images/webconfigurlrewrite.png&quot; alt=&quot;web.config&quot; width=&quot;458&quot; height=&quot;144&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Using the GUI look for the icon selected below.&lt;/p&gt;
&lt;p&gt;&lt;img title=&quot;urlrewrite&quot; src=&quot;http://www.mikeal.com/images/urlrewrite.png&quot; alt=&quot;urlrewrite&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Select Add Rule(s) from the right menu, then blank rule. &amp;#160;The settings for http to https redirection are shown below.&lt;/p&gt;
&lt;p&gt;&lt;img title=&quot;urlrewrite&quot; src=&quot;http://www.mikeal.com/images/urlrewritegui.png&quot; alt=&quot;urlrewrite&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The last setting is to change the redirection type to Found(302).&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://tech.mikeal.com/blog1.php/2010/08/25/url-rewrite-for-iis7-http-to-https-redirection&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>This is a great addition. &#160;Finally we have an easy way to redirect users. &#160;I'm using this to rewrite all http connections as https.</p>
<p>You can use the web installed for URL Rewrite <a href="http://www.iis.net/download/urlrewrite">here</a>.</p>
<p>After you have the extension loaded you can make rules 2 ways. &#160;Either by editing the web.config file in the root of your website, or with the GUI in IIS7. &#160;I find working with the web.config easier.</p>
<p><img title="web.config" src="http://www.mikeal.com/images/webconfigurlrewrite.png" alt="web.config" width="458" height="144" /></p>
<p>Using the GUI look for the icon selected below.</p>
<p><img title="urlrewrite" src="http://www.mikeal.com/images/urlrewrite.png" alt="urlrewrite" /></p>
<p>Select Add Rule(s) from the right menu, then blank rule. &#160;The settings for http to https redirection are shown below.</p>
<p><img title="urlrewrite" src="http://www.mikeal.com/images/urlrewritegui.png" alt="urlrewrite" /></p>
<p>The last setting is to change the redirection type to Found(302).</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p><div class="item_footer"><p><small><a href="http://tech.mikeal.com/blog1.php/2010/08/25/url-rewrite-for-iis7-http-to-https-redirection">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://tech.mikeal.com/blog1.php/2010/08/25/url-rewrite-for-iis7-http-to-https-redirection#comments</comments>
			<wfw:commentRss>http://tech.mikeal.com/blog1.php?tempskin=_rss2&#38;disp=comments&#38;p=13</wfw:commentRss>
		</item>
				<item>
			<title>FastCGI timeout value change</title>
			<link>http://tech.mikeal.com/blog1.php/2010/08/25/fastcgi-timeout-value-change</link>
			<pubDate>Wed, 25 Aug 2010 17:52:47 +0000</pubDate>			<dc:creator>Mikeal</dc:creator>
			<category domain="main">IIS7</category>			<guid isPermaLink="false">12@http://tech.mikeal.com/</guid>
						<description>&lt;p&gt;By default IIS7 doesn't have a icon to control FastCGI, but you can modify the values in the command line. &amp;#160;I'm using php as the example as that is the most common use for FastCGI.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\php\php-cgi.exe'].activeTimeout:600&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Replace the fullPath with your actual executable path. &amp;#160;The Timeout value is in seconds, so this sets it to 10 minutes.&lt;/p&gt;
&lt;p&gt;Check to see if the values were imput correct with this command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;appcmd list config -section:system.webServer/fastCgi&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img title=&quot;cmd&quot; src=&quot;http://www.mikeal.com/images/FastCGI1.png&quot; alt=&quot;cmd&quot; width=&quot;496&quot; height=&quot;112&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You can also use &lt;a href=&quot;http://php.iis.net/&quot;&gt;Microsoft's installer&lt;/a&gt; for php. &amp;#160;This will give you a FastCGI icon in IIS you can use to configure these settings.&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://tech.mikeal.com/blog1.php/2010/08/25/fastcgi-timeout-value-change&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>By default IIS7 doesn't have a icon to control FastCGI, but you can modify the values in the command line. &#160;I'm using php as the example as that is the most common use for FastCGI.</p>
<p><code>appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\php\php-cgi.exe'].activeTimeout:600</code></p>
<p>Replace the fullPath with your actual executable path. &#160;The Timeout value is in seconds, so this sets it to 10 minutes.</p>
<p>Check to see if the values were imput correct with this command:</p>
<p><code>appcmd list config -section:system.webServer/fastCgi</code></p>
<p><img title="cmd" src="http://www.mikeal.com/images/FastCGI1.png" alt="cmd" width="496" height="112" /></p>
<p>You can also use <a href="http://php.iis.net/">Microsoft's installer</a> for php. &#160;This will give you a FastCGI icon in IIS you can use to configure these settings.</p>
<p>&#160;</p><div class="item_footer"><p><small><a href="http://tech.mikeal.com/blog1.php/2010/08/25/fastcgi-timeout-value-change">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://tech.mikeal.com/blog1.php/2010/08/25/fastcgi-timeout-value-change#comments</comments>
			<wfw:commentRss>http://tech.mikeal.com/blog1.php?tempskin=_rss2&#38;disp=comments&#38;p=12</wfw:commentRss>
		</item>
			</channel>
</rss>
