<?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>SAPIEN Technologies &#187; Batch/CMD</title>
	<atom:link href="http://blog.sapien.com/index.php/topics/batchcmd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sapien.com</link>
	<description>Tools for IT Success</description>
	<lastBuildDate>Wed, 28 Jul 2010 20:03:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ChangeVue to get traditional command-line interface</title>
		<link>http://blog.sapien.com/index.php/2009/06/16/changevue-to-get-traditional-command-line-interface/</link>
		<comments>http://blog.sapien.com/index.php/2009/06/16/changevue-to-get-traditional-command-line-interface/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 21:00:23 +0000</pubDate>
		<dc:creator>Ferdinand Rios</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>
		<category><![CDATA[ChangeVue]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Software News]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[command line]]></category>

		<guid isPermaLink="false">http://blog.sapien.com/?p=1543</guid>
		<description><![CDATA[ChangeVue 2009, SAPIEN Technologies’ source control system, is about to get yet another new way to manage its content: a traditional command line interface! Soon you will be able to manage your existing ChangeVue repositories directly through the CMD.exe console or through traditional batch files. The command line executable, CVC.exe, will be automatically installed when you [...]]]></description>
			<content:encoded><![CDATA[<p style="padding-top: 5px; padding-right: 60px; padding-bottom: 5px; padding-left: 10px; font-family: Verdana; font-size: 11px; line-height: 18px; margin: 0px;">ChangeVue 2009, SAPIEN Technologies’ source control system, is about to get yet another new way to manage its content: a traditional command line interface! Soon you will be able to manage your existing ChangeVue repositories directly through the CMD.exe console or through traditional batch files. The command line executable, CVC.exe, will be automatically installed when you install ChangeVue. By calling that executable, you will have instant access to over 20 ChangeVue commands.</p>
<p style="font-family: Verdana; font-size: 11px;padding-top: 5px; padding-right: 60px; padding-bottom: 5px; padding-left: 10px; line-height: 18px; margin: 0px;">With this executable you can perform all manner of ChangeVue tasks such as:</p>
<p><span style="font-family: Verdana; font-size: 11px; line-height: 18px; font-size: 11px;"> </span></p>
<ul>
<li>add and remove projects</li>
<li>add and remove files</li>
<li>check files in and out</li>
<li>get comments and file histories</li>
<li>label files and projects</li>
<li>perform wildcard searches and pipe results</li>
<li>and much more.</li>
</ul>
<p style="padding-top: 5px; padding-right: 60px; padding-bottom: 5px; padding-left: 10px; font-family: Verdana; font-size: 11px; line-height: 18px; margin: 0px;">The ChangeVue command line executable should be available with the July monthly build release of ChangeVue 2009. Make sure that you download that update to get all of the new ChangeVue command line power!</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F&amp;title=ChangeVue+to+get+traditional+command-line+interface" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F&amp;title=ChangeVue+to+get+traditional+command-line+interface" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F&amp;title=ChangeVue+to+get+traditional+command-line+interface" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F&amp;title=ChangeVue+to+get+traditional+command-line+interface" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F&amp;title=ChangeVue+to+get+traditional+command-line+interface', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F&amp;title=ChangeVue+to+get+traditional+command-line+interface" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2009%2F06%2F16%2Fchangevue-to-get-traditional-command-line-interface%2F&amp;title=ChangeVue+to+get+traditional+command-line+interface" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/batch' rel='tag' target='_self'>batch</a>, <a class='technorati-link' href='http://technorati.com/tag/ChangeVue' rel='tag' target='_self'>ChangeVue</a>, <a class='technorati-link' href='http://technorati.com/tag/command+line' rel='tag' target='_self'>command line</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2009/06/16/changevue-to-get-traditional-command-line-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wayne&#8217;s World of IT Revised</title>
		<link>http://blog.sapien.com/index.php/2008/09/23/waynes-world-of-it-revised/</link>
		<comments>http://blog.sapien.com/index.php/2008/09/23/waynes-world-of-it-revised/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 10:00:39 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[DSQuery]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://blog.sapien.com/index.php/2008/09/23/waynes-world-of-it-revised/</guid>
		<description><![CDATA[I've blogged in the past about Wayne Martin and his outstanding list of command line tips. These are one line commands, some complex some simple, that you can use to accomplish a wide range of task.  The overall number of tips is to 425 and Wayne recently reorganized them into 7 categories to make it easier for people to digest. There's very little scripting with any of these commands. Most use native or freely available command line tools. But because they are executed from a command line you could incorporate them into a script.  I encourage you to check them out.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve blogged in the past about <a href="http://waynes-world-it.blogspot.com/" target="_blank">Wayne Martin</a> and his outstanding list of command line tips. These are one line commands, some complex some simple, that you can use to accomplish a wide range of task.&nbsp; The overall number of tips is to 425 and Wayne recently reorganized them into 7 categories to make it easier for people to digest. There&#8217;s very little scripting with any of these commands. Most use native or freely available command line tools. But because they are executed from a command line you could incorporate them into a script.&nbsp; I encourage you to check them out.</p>
<p>The single list:
<p><a href="http://waynes-world-it.blogspot.com/2008/09/useful-command-lines.html">http://waynes-world-it.blogspot.com/2008/09/useful-command-lines.html</a>
<p>The same commands split into categories:
<p><a href="http://waynes-world-it.blogspot.com/2008/09/useful-active-directory-command-line.html">http://waynes-world-it.blogspot.com/2008/09/useful-active-directory-command-line.html</a>
<p><a href="http://waynes-world-it.blogspot.com/2008/09/useful-dns-dhcp-and-wins-command-line.html">http://waynes-world-it.blogspot.com/2008/09/useful-dns-dhcp-and-wins-command-line.html</a>
<p><a href="http://waynes-world-it.blogspot.com/2008/09/useful-general-command-line-operations.html">http://waynes-world-it.blogspot.com/2008/09/useful-general-command-line-operations.html</a>
<p><a href="http://waynes-world-it.blogspot.com/2008/09/useful-vmware-esx-and-vc-command-line.html">http://waynes-world-it.blogspot.com/2008/09/useful-vmware-esx-and-vc-command-line.html</a>
<p><a href="http://waynes-world-it.blogspot.com/2008/09/useful-windows-mscs-cluster-command.html">http://waynes-world-it.blogspot.com/2008/09/useful-windows-mscs-cluster-command.html</a>
<p><a href="http://waynes-world-it.blogspot.com/2008/09/useful-windows-printer-command-line.html">http://waynes-world-it.blogspot.com/2008/09/useful-windows-printer-command-line.html</a>
<p><a href="http://waynes-world-it.blogspot.com/2008/09/useful-ntfs-and-security-command-line.html">http://waynes-world-it.blogspot.com/2008/09/useful-ntfs-and-security-command-line.html</a></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F&amp;title=Wayne%26%238217%3Bs+World+of+IT+Revised" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F&amp;title=Wayne%26%238217%3Bs+World+of+IT+Revised" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F&amp;title=Wayne%26%238217%3Bs+World+of+IT+Revised" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F&amp;title=Wayne%26%238217%3Bs+World+of+IT+Revised" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F&amp;title=Wayne%26%238217%3Bs+World+of+IT+Revised', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F&amp;title=Wayne%26%238217%3Bs+World+of+IT+Revised" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F23%2Fwaynes-world-of-it-revised%2F&amp;title=Wayne%26%238217%3Bs+World+of+IT+Revised" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Active+Directory' rel='tag' target='_self'>Active Directory</a>, <a class='technorati-link' href='http://technorati.com/tag/cli' rel='tag' target='_self'>cli</a>, <a class='technorati-link' href='http://technorati.com/tag/Cluster' rel='tag' target='_self'>Cluster</a>, <a class='technorati-link' href='http://technorati.com/tag/commandline' rel='tag' target='_self'>commandline</a>, <a class='technorati-link' href='http://technorati.com/tag/DHCP' rel='tag' target='_self'>DHCP</a>, <a class='technorati-link' href='http://technorati.com/tag/DNS' rel='tag' target='_self'>DNS</a>, <a class='technorati-link' href='http://technorati.com/tag/DSQuery' rel='tag' target='_self'>DSQuery</a>, <a class='technorati-link' href='http://technorati.com/tag/NTFS' rel='tag' target='_self'>NTFS</a>, <a class='technorati-link' href='http://technorati.com/tag/security' rel='tag' target='_self'>security</a>, <a class='technorati-link' href='http://technorati.com/tag/tips' rel='tag' target='_self'>tips</a>, <a class='technorati-link' href='http://technorati.com/tag/vmware' rel='tag' target='_self'>vmware</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2008/09/23/waynes-world-of-it-revised/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Techmentor NYC</title>
		<link>http://blog.sapien.com/index.php/2008/09/03/techmentor-nyc/</link>
		<comments>http://blog.sapien.com/index.php/2008/09/03/techmentor-nyc/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 16:00:18 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>
		<category><![CDATA[Books and Training]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[ADSI]]></category>
		<category><![CDATA[Mr. Roboto]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Techmentor]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[wmi]]></category>

		<guid isPermaLink="false">http://blog.sapien.com/index.php/2008/09/03/techmentor-nyc/</guid>
		<description><![CDATA[I've been getting things ready for my next Techmentor appearance. This one is practically in my back yard. I'll be in NYC on Monday and Tuesday next week.]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 5px 0px 0px" alt="Techmentor 10th Anniversary" src="http://techmentorevents.com/index_assets/images/logo_TM10th.gif" align="left"> I&#8217;ve been getting things ready for my next Techmentor appearance. This one is practically in my back yard. I&#8217;ll be in <a href="http://techmentorevents.com/2008/newyork/eBrochure.pdf" target="_blank">NYC</a> on Monday and Tuesday next week.</p>
<h3>&nbsp;</h3>
<h3>My Sessions:</h3>
<p><a href="http://techmentorevents.com/2008/newyork/automation.aspx#tm7" target="_blank">Managing Active Directory with Windows PowerShell</a></p>
<p><a href="http://techmentorevents.com/2008/newyork/automation.aspx#tm10" target="_blank">Mr. Roboto&#8217;s Automation Toolkit</a></p>
<p><a href="http://techmentorevents.com/2008/newyork/automation.aspx#tm14" target="_blank">Monitoring Performance, Events and Alerts with Windows PowerShell</a></p>
<p><a href="http://techmentorevents.com/2008/newyork/automation.aspx#tt6" target="_blank">Securing Windows PowerShell</a> (with Don Jones)</p>
<p>If you&#8217;re attending I hope you&#8217;ll stop by and say hello.&nbsp; At some point I&#8217;ll post some material from the show so even if you can&#8217;t make it you won&#8217;t feel left out.&nbsp; Although you might feel you&#8217;re missing a lot of fun and a great experience after watching this:</p>
<div class="wlWriterSmartContent" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:d3de00bf-0bed-4f30-b8c1-4103c91c27d4" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div><embed src="http://blip.tv/play/9gcBAA" type="application/x-shockwave-flash" width="250" height="240" allowscriptaccess="always" allowfullscreen="true"></embed></div>
</div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F&amp;title=Techmentor+NYC" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F&amp;title=Techmentor+NYC" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F&amp;title=Techmentor+NYC" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F&amp;title=Techmentor+NYC" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F&amp;title=Techmentor+NYC', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F&amp;title=Techmentor+NYC" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F09%2F03%2Ftechmentor-nyc%2F&amp;title=Techmentor+NYC" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/ADSI' rel='tag' target='_self'>ADSI</a>, <a class='technorati-link' href='http://technorati.com/tag/Mr.+Roboto' rel='tag' target='_self'>Mr. Roboto</a>, <a class='technorati-link' href='http://technorati.com/tag/powershell' rel='tag' target='_self'>powershell</a>, <a class='technorati-link' href='http://technorati.com/tag/scripting' rel='tag' target='_self'>scripting</a>, <a class='technorati-link' href='http://technorati.com/tag/Techmentor' rel='tag' target='_self'>Techmentor</a>, <a class='technorati-link' href='http://technorati.com/tag/VBScript' rel='tag' target='_self'>VBScript</a>, <a class='technorati-link' href='http://technorati.com/tag/Windows' rel='tag' target='_self'>Windows</a>, <a class='technorati-link' href='http://technorati.com/tag/wmi' rel='tag' target='_self'>wmi</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2008/09/03/techmentor-nyc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Techmentor: The San Francisco IT Treat</title>
		<link>http://blog.sapien.com/index.php/2008/02/19/techmentor-the-san-francisco-it-treat/</link>
		<comments>http://blog.sapien.com/index.php/2008/02/19/techmentor-the-san-francisco-it-treat/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 15:00:12 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>
		<category><![CDATA[Books and Training]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Mr. Roboto]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[Techmentor]]></category>

		<guid isPermaLink="false">http://blog.sapien.com/index.php/2008/02/19/techmentor-the-san-francisco-it-treat/</guid>
		<description><![CDATA[I finished up my slide decks for the first Techmentor conference of the year in San Francisco (March 30 - April 3). If you've never been to a Techmentor conference you're missing a great opportunity to hear and see your favorite IT speakers. Plus it's a lot of fun to meet your peers, swap war stories and even some strategy and tips. Here's what I have in store for you...]]></description>
			<content:encoded><![CDATA[<p>I finished up my slide decks for the first <a target="_blank" href="http://www.techmentorevents.com">Techmentor</a> conference of the year in San Francisco (March 30 -</p>
<div style="margin: 0px; padding: 10px 10px 0px 0px; display: inline; float: left;" id="scid:84E294D0-71C9-4bd0-A0FE-95764E0368D9:0413ade2-ea03-432b-8897-b1049ce1c0e5" class="wlWriterSmartContent"><a title="Click to view this map on Live.com" alt="Click to view this map on Live.com" id="map-f788314d-3e43-4359-9f78-1b940a9f1b5e" href="http://maps.live.com/default.aspx?v=2&amp;cp=q8xrsq4szx1t&amp;lvl=1&amp;style=o&amp;scene=13283509&amp;mkt=en-US&amp;FORM=LLWR"><img width="320" height="240" align="texttop" alt="Moscone Center West" src="http://blog.sapien.com/wp-content/uploads/2008/02/map-0b596013ddf1.jpg" /></a><br />
<label style="font-size: 0.8em;" for="map-f788314d-3e43-4359-9f78-1b940a9f1b5e">Moscone Center West</label></div>
<p>April 3). If you&#8217;ve never been to a Techmentor conference you&#8217;re missing a great opportunity to hear and see your favorite IT speakers. Plus it&#8217;s a lot of fun to meet your peers, swap war stories and even some strategy and tips.</p>
<p>&nbsp;</p>
<p>Here&#8217;s what I have in store for you:</p>
<p><strong><em>Automating Remote Systems Management with PowerShell v1.0 and WMI</em></strong></p>
<p>Although PowerShell is an incredibly valuable administrative tool, a major feature is its support for Windows Management Instrumentation (WMI). In this session&nbsp; you&#8217;ll learn how to access remote system information, build management reports, monitor WMI events and more all with PowerShell. This will be a demo-rich session with many real-world and practical examples you can take home and use immediately.</p>
<p><strong><em>Automating Exchange Server 2007 Management</em></strong></p>
<p>Come see how easy it is to manage your Exchange 2007 servers from the PowerShell console. I&#8217;ll guide you through common Exchange management tasks including managing mailboxes, users, contacts, databases and more. You may know how to accomplish these tasks in Exchange 2003 or from the Exchange 2007 management GUI, but the real power is at the console. If you are evaluating Exchange 2007, you&#8217;ll be very excited and eager to deploy it when we&#8217;re finished. This will be a demo-heavy session with many real-world and practical examples you can take home and use immediately.</p>
<p><strong><em>Mr. Roboto&rsquo;s Resource Kit</em></strong></p>
<p><a href="http://blog.sapien.com/wp-content/uploads/2008/02/jdh-mrroboto.png"><img width="65" height="61" border="0" align="left" src="http://blog.sapien.com/wp-content/uploads/2008/02/jdh-mrroboto-thumb.png" alt="JDH-MrRoboto" style="border-width: 0px; margin: 0px 10px 0px 0px;" /></a> In this session I&#8217;ll open up my bag of tricks and tools for managing Windows servers and desktops. From mass password changes to event log management to security <a target="_blank" href="http://redmondmag.com/columns/columnist.asp?ColumnistsID=38">Mr. Roboto</a> will show how to keep on top of your environment with free or low-cost alternatives. You&#8217;ll leave with plenty of tools you can begin using immediately to make your job easier and maybe even a little fun.</p>
<p><strong><em>Logon Scripting Fundamentals </em></strong></p>
<p>Do you have logon scripts for your users? Do you still need them? Do they do what you want them to do? What good are logon scripts anyway? You&#8217;ll learn the best way to leverage logon scripts and integrate them into Group Policy. You&#8217;ll also see how to create logon scripts with no scripting required. In fact, <font color="#800080"><em>no scripting experience is required</em></font> at all for this session.</p>
<p>Finally, if that&#8217;s not enough I&#8217;m also doing a half-day post-conference workshop. This is separate from the main conference.</p>
<p><strong><em>Automating Active Directory Management with Windows PowerShell</em></strong></p>
<p>You&#8217;ve got Active Directory to manage and you have PowerShell. What can you do? It turns out, quite a bit. I will teach you how to use PowerShell to manage Active Directory users, groups and computers. You&#8217;ll learn how to manage individual objects as well as bulk creation and management. You&#8217;ll learn how easy it is to import a CSV file with 1000 new users and create fully populated accounts in a matter seconds. We&#8217;ll explore the ADSI type adapters, the Active Directory PSDrive provider from the PowerShell Community Extensions and the free Quest Active Directory Management Console. This will be a demo-heavy session with many real-world and practical examples you can take home and use immediately. Much of the content will be live demontrations of material from my forthcoming book, <em>Managing Directory Services with Windows PowerShell.</em> You may bring a laptop to follow along, but this is NOT instructor-led training with hands-onlabs. If you come with a laptop, it should have a virtual machine running a <br />
Windows 2003 domain controller. The virtual machine should be running PowerShell v1.0 and the current versions of the PowerShell Community Extensions and the Quest Active Directory Management console.</p>
<p>&nbsp;</p>
<p>And this is just what I&#8217;m doing.&nbsp; Check out the <a target="_blank" href="http://techmentorevents.com/2008/sf/agenda.aspx">full schedule</a> and <a target="_blank" href="http://center.uoregon.edu/conferences/TechMentor/TMSpring08/registration/">register</a> today. You won&#8217;t be disappointed. I often hear at conferences from attendees that they often learn something or pickup some tip that more than justifies the conference expense. Something that solves a prickly problem and they leave happy and eager. I hope to see you there.</p>
<p><img width="640" height="189" src="http://techmentorevents.com/2008/sf/images/fp_splash.jpg" alt="Techmentor 10th Anniversary" /></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F&amp;title=Techmentor%3A+The+San+Francisco+IT+Treat" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F&amp;title=Techmentor%3A+The+San+Francisco+IT+Treat" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F&amp;title=Techmentor%3A+The+San+Francisco+IT+Treat" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F&amp;title=Techmentor%3A+The+San+Francisco+IT+Treat" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F&amp;title=Techmentor%3A+The+San+Francisco+IT+Treat', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F&amp;title=Techmentor%3A+The+San+Francisco+IT+Treat" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F19%2Ftechmentor-the-san-francisco-it-treat%2F&amp;title=Techmentor%3A+The+San+Francisco+IT+Treat" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Active+Directory' rel='tag' target='_self'>Active Directory</a>, <a class='technorati-link' href='http://technorati.com/tag/Exchange+2007' rel='tag' target='_self'>Exchange 2007</a>, <a class='technorati-link' href='http://technorati.com/tag/Mr.+Roboto' rel='tag' target='_self'>Mr. Roboto</a>, <a class='technorati-link' href='http://technorati.com/tag/powershell' rel='tag' target='_self'>powershell</a>, <a class='technorati-link' href='http://technorati.com/tag/Techmentor' rel='tag' target='_self'>Techmentor</a>, <a class='technorati-link' href='http://technorati.com/tag/VBScript' rel='tag' target='_self'>VBScript</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2008/02/19/techmentor-the-san-francisco-it-treat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Registry queries the easy way</title>
		<link>http://blog.sapien.com/index.php/2008/02/07/registry-queries-the-easy-way/</link>
		<comments>http://blog.sapien.com/index.php/2008/02/07/registry-queries-the-easy-way/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 21:23:57 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[reg.exe]]></category>
		<category><![CDATA[registry]]></category>

		<guid isPermaLink="false">http://testblog.sapien.com/index.php/2008/02/07/registry-queries-the-easy-way/</guid>
		<description><![CDATA[Another topic that I&#8217;ve seen resurface in the forums I frequent is reading remote registries. If you know exactly what you&#8217;re looking for it doesn&#8217;t get any easier than using REG.EXE from the command line. Here&#8217;s how to use it and a batch file ready for you to use.

]]></description>
			<content:encoded><![CDATA[<p>Another topic that I&rsquo;ve seen resurface in the forums I frequent is reading remote registries. If you know exactly what you&rsquo;re looking for it doesn&rsquo;t get any easier than using REG.EXE from the command line.  Here are some examples from the command&rsquo;s help:</p>
<p>Examples:</p>
<p>REG QUERY HKLM\Software\Microsoft\ResKit /v Version<br />
Displays the value of the registry value Version</p>
<p>REG QUERY \ABC\HKLM\Software\Microsoft\ResKit\Nt\Setup /s<br />
Displays all subkeys and values under the registry key Setup<br />
on remote machine ABC</p>
<p>REG QUERY HKLM\Software\Microsoft\ResKit\Nt\Setup /se #<br />
Displays all the subkeys and values with &ldquo;#&rdquo; as the seperator<br />
for all valuenames whose type is REG_MULTI_SZ.</p>
<p>REG QUERY HKLM /f SYSTEM /t REG_SZ /c /e<br />
Displays Key, Value and Data with case sensitive and exact<br />
occurrences of &ldquo;SYSTEM&rdquo; under HKLM root for the data type REG_SZ</p>
<p>REG QUERY HKCU /f 0F /d /t REG_BINARY<br />
Displays Key, Value and Data for the occurrences of &ldquo;0F&rdquo; in data<br />
under HKCU root for the data type REG_BINARY</p>
<p>REG QUERY HKLM\SOFTWARE /ve<br />
Displays Value and Data for the empty value (Default)<br />
under HKLM\SOFTWARE</p>
<p>To see the complete help open a command prompt and type REG query /? or REG /? to see all the things this tool can accomplish.</p>
<p>I put together a batch file to streamline the query process. It is also attached as a text file.</p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">@echo off<br />
REM ReqQuery.bat<br />
REM Keywords: Registry,REG,REMote<br />
REM USAGE <br />
REM RegQuery.bat [computername] </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">::**********NOTES**********<br />
REM This script will the registry for the specified key. <br />
REM The computer name and registry key value will be displayed. <br />
REM You can specify a computername as a runtime parameter. </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">REM If you don&rsquo;t specify a name, the script will query <br />
REM the local machine. </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">REM If you want to save results run<br />
REM RegQueryList.bat &gt; results.txt </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">REM To process a list of computers use an expression like this:<br />
REM   for /f %s in (servers.txt) do @regquery.bat %s &gt;&gt; results.txt </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">REM If you don&rsquo;t specify a computer, the local computer will<br />
REM be queried. </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">::**********CONFIGURATION**********<br />
REM Define the registry path to query. Do not use quotes. <br />
REM Remote computers can query either HKLM or HKCU, although as<br />
REM a practical matter you can really only use HKLM </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">  set regPath=hklm\software\microsoft\windows NT\currentversion </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">REM Enter the registry key that you want the value of:<br />
set regKey=RegisteredOwner </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">::**********MAIN SCRIPT**********<br />
if %1$==$ (<br />
set computer=%computername%<br />
) else (<br />
set computer=%1<br />
) </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">REM uncomment next line for debugging<br />
REM echo Reg Query &ldquo;\%computer%\%regpath%&rdquo; /v %regkey% </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">FOR /F &ldquo;tokens=*&rdquo; %%a in (&lsquo;Reg Query &ldquo;\%computer%\%regpath%&rdquo; /v %regkey% ^| </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">find /i &ldquo;%regkey%&rdquo;&rsquo;) do @echo %computer%  %%a </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">GOTO :OUT </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">:OUT<br />
set regPath=<br />
set regKey=<br />
set computer= </font></p>
<p><font face="Courier New" color="#008040" style="color: rgb(0, 128, 64);">:EOF</font></p>
<p>The script takes a computer name as a run time parameter. If you don&rsquo;t specify one then the local computer will be queried.</p>
<p>The script is intended to return the value of a single registry key. There are two variables you need to edit in the script before running it. Of course, you may prefer to modify this script so you can pass keys and values as additional run time parameters.</p>
<p>To query a single computer, open a command prompt in your script directory and run something like this:</p>
<p><font face="Courier New">C:\Scripts&gt;regquery jdhit-dc01<br />
jdhit-dc01  RegisteredOwner    REG_SZ    Jeffery D. Hicks</font></p>
<p>As written you&rsquo;ll need to use traditional console redirection to save the results:</p>
<p><font face="Courier New">C:\Scripts&gt;regquery jdhit-dc01 </font>&gt; owner.txt</p>
<p>What about a bunch of computers?  Easy. Use the FOR command like this:</p>
<p><font face="Courier New">c:\Scripts\for /f %s in (servers.txt) do @regquery.bat %s &gt;&gt; owners.txt</font></p>
<p>If owners.txt already exists all output will be appended to it so you might need to delete first if it exists.</p>
<p>There&rsquo;s no provision for alternate credentials using REG, so you&rsquo;ll likely need admin rights for the remote computer you are querying.</p>
<p>If you have simple needs, a simple tool like REG will do the trick.  Next time we&rsquo;ll revisit this topic with VBScript and WMI.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:222bf1e7-84c9-48af-a5a9-28edb3dd8be7" style="margin: 0px; padding: 0px; display: inline;"><span class="sizeLess20">Technorati Tags: </span><a rel="tag" href="http://technorati.com/tags/REG"><span class="sizeLess20">REG</span></a><span class="sizeLess20">, </span><a rel="tag" href="http://technorati.com/tags/Registry"><span class="sizeLess20">Registry</span></a><span class="sizeLess20">, </span><a rel="tag" href="http://technorati.com/tags/CMD"><span class="sizeLess20">CMD</span></a><span class="sizeLess20">, </span><a rel="tag" href="http://technorati.com/tags/Batch"><span class="sizeLess20">Batch</span></a><span class="sizeLess20">, </span><a rel="tag" href="http://technorati.com/tags/Scripting"><span class="sizeLess20">Scripting</span></a><span class="sizeLess20">, </span><a rel="tag" href="http://technorati.com/tags/Automation"><span class="sizeLess20">Automation</span></a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F&amp;title=Registry+queries+the+easy+way" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F&amp;title=Registry+queries+the+easy+way" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F&amp;title=Registry+queries+the+easy+way" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F&amp;title=Registry+queries+the+easy+way" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F&amp;title=Registry+queries+the+easy+way', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F&amp;title=Registry+queries+the+easy+way" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2008%2F02%2F07%2Fregistry-queries-the-easy-way%2F&amp;title=Registry+queries+the+easy+way" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/batch' rel='tag' target='_self'>batch</a>, <a class='technorati-link' href='http://technorati.com/tag/cli' rel='tag' target='_self'>cli</a>, <a class='technorati-link' href='http://technorati.com/tag/cmd' rel='tag' target='_self'>cmd</a>, <a class='technorati-link' href='http://technorati.com/tag/command+line' rel='tag' target='_self'>command line</a>, <a class='technorati-link' href='http://technorati.com/tag/reg.exe' rel='tag' target='_self'>reg.exe</a>, <a class='technorati-link' href='http://technorati.com/tag/registry' rel='tag' target='_self'>registry</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2008/02/07/registry-queries-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Techmentor 2007 Las Vegas Samples Now Available for Download</title>
		<link>http://blog.sapien.com/index.php/2007/11/02/techmentor-2007-las-vegas-samples-now-available-for-download/</link>
		<comments>http://blog.sapien.com/index.php/2007/11/02/techmentor-2007-las-vegas-samples-now-available-for-download/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 20:48:22 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>
		<category><![CDATA[Books and Training]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://testblog.sapien.com/index.php/2007/11/02/techmentor-2007-las-vegas-samples-now-available-for-download/</guid>
		<description><![CDATA[We have a zip file with all of our demos and decks from the recent Techmentor conference in Las Vegas.  The file is about 72MB but should have all the scripting goodness you are looking for.

]]></description>
			<content:encoded><![CDATA[<p>We have a zip file with all of our demos and decks from the recent Techmentor conference in Las Vegas.&nbsp; The file is about 72MB but should have all the scripting goodness you are looking for.&nbsp; </p>
<p>You can download the file at the <a target="_blank" href="http://www.scriptinganswers.com/essentials.asp">Essentials </a>page on <a class="offsite-link-inline" target="_blank" href="http://www.scriptinganswers.com">ScriptingAnswers.com</a>. The zip file has material from all of the scripting track sessions, plus the Logon Script Cookbook session which was in Bruce&#8217;s track. If you missed the last conference, keep an eye on <a class="offsite-link-inline" target="_blank" href="http://techmentorevents.com/">http://techmentorevents.com/</a> for information about the next one.</p>
<p>Thank to all of you for support and encouragement. We hope you got a lot out of the conference.&nbsp; 2008 looks to be an equally busy year for conferences so we hope you see you somewhere.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F&amp;title=Techmentor+2007+Las+Vegas+Samples+Now+Available+for+Download" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F&amp;title=Techmentor+2007+Las+Vegas+Samples+Now+Available+for+Download" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F&amp;title=Techmentor+2007+Las+Vegas+Samples+Now+Available+for+Download" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F&amp;title=Techmentor+2007+Las+Vegas+Samples+Now+Available+for+Download" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F&amp;title=Techmentor+2007+Las+Vegas+Samples+Now+Available+for+Download', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F&amp;title=Techmentor+2007+Las+Vegas+Samples+Now+Available+for+Download" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F11%2F02%2Ftechmentor-2007-las-vegas-samples-now-available-for-download%2F&amp;title=Techmentor+2007+Las+Vegas+Samples+Now+Available+for+Download" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2007/11/02/techmentor-2007-las-vegas-samples-now-available-for-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Techmentor Orlando 2007 Session Material</title>
		<link>http://blog.sapien.com/index.php/2007/04/13/techmentor-orlando-2007-session-material/</link>
		<comments>http://blog.sapien.com/index.php/2007/04/13/techmentor-orlando-2007-session-material/#comments</comments>
		<pubDate>Sat, 14 Apr 2007 02:13:51 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>
		<category><![CDATA[Books and Training]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://testblog.sapien.com/index.php/2007/04/13/techmentor-orlando-2007-session-material/</guid>
		<description><![CDATA[Don and I have finally gotten zip files with all the updated session material from the Techmentor Orlando 2007 conference.  There is a zip file for each of us at &#8230;

]]></description>
			<content:encoded><![CDATA[<p>Don and I have finally gotten zip files with all the updated session material from the Techmentor Orlando 2007 conference.&nbsp; There is a zip file for each of us at <a title="http://www.scriptinganswers.com/essentials.asp" href="http://www.scriptinganswers.com/essentials.asp">http://www.scriptinganswers.com/essentials.asp</a>.&nbsp; </p>
<p>I know in my zip file there are several readme files so make sure you look at them. I&#8217;ve included the video demos which will likely require you to install a codec or two.&nbsp; I&#8217;ve included them in the zip file so you don&#8217;t have to go hunting for them.</p>
<p>These files won&#8217;t be around forever so be sure to download them soon.&nbsp; </p>
<p>If you missed the conference in Orlando, hopefully you can make arrangements to join us in fabulous <a href="http://techmentorevents.com/">Las Vegas Oct. 15-19, 2007</a>.</p>
<p>&nbsp;</p>
<div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:548a587c-0108-4f54-a51c-27ae8c024f77" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"><span class="sizeLess20">Technorati tags: </span><a href="http://technorati.com/tags/Techmentor" rel="tag"><span class="sizeLess20">Techmentor</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/PowerShell" rel="tag"><span class="sizeLess20">PowerShell</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/VBScript" rel="tag"><span class="sizeLess20">VBScript</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Batch" rel="tag"><span class="sizeLess20">Batch</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/CMD" rel="tag"><span class="sizeLess20">CMD</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/DonJones" rel="tag"><span class="sizeLess20">DonJones</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/JeffHicks" rel="tag"><span class="sizeLess20">JeffHicks</span></a></div>
<p>&nbsp;</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F&amp;title=Techmentor+Orlando+2007+Session+Material" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F&amp;title=Techmentor+Orlando+2007+Session+Material" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F&amp;title=Techmentor+Orlando+2007+Session+Material" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F&amp;title=Techmentor+Orlando+2007+Session+Material" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F&amp;title=Techmentor+Orlando+2007+Session+Material', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F&amp;title=Techmentor+Orlando+2007+Session+Material" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F13%2Ftechmentor-orlando-2007-session-material%2F&amp;title=Techmentor+Orlando+2007+Session+Material" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2007/04/13/techmentor-orlando-2007-session-material/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I can name that OS in one note</title>
		<link>http://blog.sapien.com/index.php/2007/04/11/i-can-name-that-os-in-one-note/</link>
		<comments>http://blog.sapien.com/index.php/2007/04/11/i-can-name-that-os-in-one-note/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 19:00:00 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>

		<guid isPermaLink="false">http://testblog.sapien.com/index.php/2007/04/11/i-can-name-that-os-in-one-note/</guid>
		<description><![CDATA[At the recent Techmentor conference in Orlando, I did a few (popular) sessions on using automating with batch files and using the command line. One tool I talked about was WMIC, or the WMI command line interface. This is available on Windows XP and later.  With this tool you can use WMI without having to know scripting or much about WMI. In fact, I can give you some WMIC commands to run that might be very helpful in your batch files.

]]></description>
			<content:encoded><![CDATA[<p>At the recent <a class="offsite-link-inline" href="http://techmentorevents.com/" target="_blank">Techmentor </a>conference in Orlando, I did a few (popular) sessions on using automating with batch files and using the command line. One tool I talked about was WMIC, or the WMI command line interface. This is available on Windows XP and later.&nbsp; With this tool you can use WMI without having to know scripting or much about WMI. In fact, I can give you some WMIC commands to run that might be very helpful in your batch files.</p>
<p>First, if you&#8217;ve never used WMIC, open a command prompt and type: WMIC</p>
<p>You should get a&nbsp; brief installation message followed by a WMIC prompt.&nbsp; You can type exit to return to the command prompt. WMIC has an interactive mode like NSLOOKUP or you can access it directly from the command line.</p>
<p>Today I&#8217;ll give you an expression to return the current operating system and service pack on a given computer.</p>
<p>First, run this command to see your local system:</p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">C:\&gt; wmic os get caption,csdversion | find /i /v &#8220;Caption&#8221;</font></p>
<p>This will return something like:</p>
<p>Microsoft Windows XP Professional Service Pack 2</p>
<p>To check a remote system use a command like this:</p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">C:\&gt; wmic /node:&#8221;JDH-DC01&#8221; os get caption,csdversion | find /i /v &#8220;Caption&#8221;</font></p>
<p>If the computer name has a dash in the name, enclose it in &#8220;&#8221; as I did here. Since we&#8217;re talking about WMI, what about alternate credentials:</p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">C:\&gt; wmic /node:&#8221;JDH-DC01&#8221; /user:domain\admin /password:MyP@$$ os get caption,csdversion | find /i /v &#8220;Caption&#8221;</font></p>
<p>If the password has any special characters be sure to enclose it in quotes.</p>
<p>Finally, if you want to check several machines, you can either specify the computer names like this:</p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">C:\&gt; wmic /node:&#8221;jdh-dc01&#8221;,godot,dogtoy os get csname,caption,csdversion | find /i /v &#8220;Caption&#8221;</font></p>
<p>Or tell WMIC to use a text file of computernames:</p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">C:\&gt; wmic /node:@servers.txt os get csname,caption,csdversion | find /i /v &#8220;Caption&#8221;</font></p>
<p>I&#8217;ve added the CSNAME property so you get the computername as well. Otherwise, you might not be able to tell what OS goes with which computer.</p>
<p>That&#8217;s all for now.&nbsp; I&#8217;ve just scratched the surface here. What do you think? Can you incorporate any of this into your batch files?&nbsp; What would like to be able to do with this?</p>
<div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:1db77079-53ff-4590-a11e-08b6a0cea3ba" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"><span class="sizeLess20">Technorati tags: </span><a href="http://technorati.com/tags/WMI" rel="tag"><span class="sizeLess20">WMI</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/WMIC" rel="tag"><span class="sizeLess20">WMIC</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Scripting" rel="tag"><span class="sizeLess20">Scripting</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Commandline" rel="tag"><span class="sizeLess20">Commandline</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Windows" rel="tag"><span class="sizeLess20">Windows</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/CLI" rel="tag"><span class="sizeLess20">CLI</span></a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F&amp;title=I+can+name+that+OS+in+one+note" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F&amp;title=I+can+name+that+OS+in+one+note" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F&amp;title=I+can+name+that+OS+in+one+note" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F&amp;title=I+can+name+that+OS+in+one+note" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F&amp;title=I+can+name+that+OS+in+one+note', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F&amp;title=I+can+name+that+OS+in+one+note" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F04%2F11%2Fi-can-name-that-os-in-one-note%2F&amp;title=I+can+name+that+OS+in+one+note" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2007/04/11/i-can-name-that-os-in-one-note/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Final Choice</title>
		<link>http://blog.sapien.com/index.php/2007/03/30/the-final-choice/</link>
		<comments>http://blog.sapien.com/index.php/2007/03/30/the-final-choice/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 17:00:00 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>

		<guid isPermaLink="false">http://testblog.sapien.com/index.php/2007/03/30/the-final-choice/</guid>
		<description><![CDATA[Let&#8217;s wrap up our look at CHOICE.EXE and how to use it in batch files. I&#8217;ve shown you some basic examples but CHOICE has a few &#8220;advanced&#8221; features you might want to incorporate into your batch file.

]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s wrap up our look at CHOICE.EXE and how to use it in batch files. I&#8217;ve shown you some basic examples but CHOICE has a few &#8220;advanced&#8221; features you might want to incorporate into your batch file.</p>
<p>As I&#8217;ve explained before, menu choices by default are case-insensitive. However, you can enforce a case-sensitive choice with the /CS switch:</p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">@echo off<br />echo a = Lower Case choice<br />echo A = Upper case choice<br />Choice /c &#8220;aA&#8221; /CS /M &#8220;Make a choice&#8221; </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">if errorlevel 2 GOTO :Upper<br />if errorlevel 1 GOTO :Lower<br />GOTO :EOF </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:Upper<br />echo Upper Case choice<br />GOTO :EOF </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:Lower<br />echo Lower Case choice<br />GOTO :EOF </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:EOF</font> </p>
<p>The user&#8217;s choices are &#8220;a&#8221; or &#8220;A&#8221;. Again, the script jumps to the appropriate section depending on what was selected. </p>
<p>There may be times in your batch file where you want to provide a menu choice, but don&#8217;t want to wait indefinitely. For those situations you will use a combination of /T to specify a timeout value in seconds between 0 and 9999,&nbsp;and /D to indicate the default value. The /D value must be one of the options listed with /C. </p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">@echo off<br />Choice /T 5 /D Y /M &#8220;Do you want to continue?&#8221; </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">if errorlevel 2 GOTO :NO<br />if errorlevel 1 GOTO :YES<br />GOTO :EOF </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:NO<br />echo Not continuing<br />GOTO :EOF </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:YES<br />echo Continuing<br />GOTO :EOF </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:EOF</font></p>
<p>This prompt will wait for 5 seconds for the user to make a choice. If they don&#8217;t respond by then, the script will force the default choice of Y which will evaulated just as if the user had typed Y at the choice prompt. <br />By now you should have enough information and samples on how to incorporate CHOICE into your batch files. If you ever forget the options, simpy run CHOICE /? at a command prompt for syntax help. </p>
<p>&nbsp;</p>
<div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:83ce4693-13bd-4c78-881f-148d88247d3b" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"><span class="sizeLess20">Technorati tags: </span><a href="http://technorati.com/tags/CMD" rel="tag"><span class="sizeLess20">CMD</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/choice" rel="tag"><span class="sizeLess20">choice</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Commandline" rel="tag"><span class="sizeLess20">Commandline</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Batch" rel="tag"><span class="sizeLess20">Batch</span></a></div>
<p>&nbsp;</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F&amp;title=The+Final+Choice" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F&amp;title=The+Final+Choice" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F&amp;title=The+Final+Choice" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F&amp;title=The+Final+Choice" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F&amp;title=The+Final+Choice', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F&amp;title=The+Final+Choice" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F30%2Fthe-final-choice%2F&amp;title=The+Final+Choice" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2007/03/30/the-final-choice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More fun with CHOICE</title>
		<link>http://blog.sapien.com/index.php/2007/03/29/more-fun-with-choice/</link>
		<comments>http://blog.sapien.com/index.php/2007/03/29/more-fun-with-choice/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 17:00:00 +0000</pubDate>
		<dc:creator>Jeffery Hicks</dc:creator>
				<category><![CDATA[Batch/CMD]]></category>

		<guid isPermaLink="false">http://testblog.sapien.com/index.php/2007/03/29/more-fun-with-choice/</guid>
		<description><![CDATA[Let&#8217;s continue to look at CHOICE.EXE and how to use it in a batch file. Here&#8217;s what you might have for a command line menu system of common admin tasks:

]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s continue to look at CHOICE.EXE and how to use it in a batch file. Here&#8217;s what you might have for a command line menu system of common admin tasks:</p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">@AdminMenu.bat<br /></font><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">GOTO :MENU <br /></font><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:MENU</font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">cls<br /></font><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">echo Admin Menu<br />echo 1 &#8211; Create User<br />echo 2 &#8211; Create Group<br />echo 3 &#8211; Create Computer<br />echo 4 &#8211; Quit<br />Choice /C 1234 /M &#8220;Enter a menu selection&#8221; </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">if errorlevel 4 GOTO :EOF<br />if errorlevel 3 GOTO :COMPUTER<br />if errorlevel 2 GOTO :GROUP<br />if errorlevel 1 GOTO :USER<br />GOTO :EOF </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:USER<br />ECHO Create New user</font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">PAUSE<br />goto :MENU</font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:GROUP<br />ECHO Create New Group</font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">PAUSE<br />goto :MENU </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:COMPUTER </font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">ECHO Create New computer</font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">PAUSE<br />goto :MENU</font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:EOF</font> </p>
<p>I&#8217;m echoing a menu to the screen and then using CHOICE to prompt the user to make a menu selection. The /C switch lets met specify the choice options and /M will be the message prompt. When run, the user should see something like this: </p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">Admin Menu<br />1 &#8211; Create User<br />2 &#8211; Create Group<br />3 &#8211; Create Computer<br />4 &#8211; Quit<br />Enter a menu selection [1,2,3,4]?</font> </p>
<p>The cursor will wait at the prompt until the user makes a selection of 1,2,3 or 4. Any other selection will cause the computer to complain with a beep. The only other way to abort is to press Ctrl-C and break out of the script so you should always give the user an option to gracefully exit your script. </p>
<p>As I discussed last time, the selected option will correspond to an Errorlevel value so all I have to do is jump to the right section of the script: </p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">if errorlevel 4 GOTO :EOF<br />if errorlevel 3 GOTO :COMPUTER<br />if errorlevel 2 GOTO :GROUP<br />if errorlevel 1 GOTO :USER<br />GOTO :EOF </font></p>
<p>I probably don&#8217;t need the last GOTO :EOF statement since the user can only enter the choices I&#8217;ve made or CHOICE will beep and not move on. Still, I like including this to cover the unexpected so that the script will gracefully exit. It doesn&#8217;t cost me anything to keep it in.</p>
<p>Within each section, I just have placeholder code to indicate what each section will do. The Pause command waits for the user to press any key, and then script execution returns to the main menu.</p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">:COMPUTER <br /></font><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">ECHO Create New computer</font></p>
<p><font style="color: #0000ff" face="Lucida Console" color="#0000ff" size="2">PAUSE<br />goto :MENU</font></p>
<p>I&#8217;ve got one more entry on this topic so stay tuned.</p>
<div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:f1c03d85-50f8-423d-bdc8-d75b70717869" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"><span class="sizeLess20">Technorati tags: </span><a href="http://technorati.com/tags/CMD" rel="tag"><span class="sizeLess20">CMD</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Batch" rel="tag"><span class="sizeLess20">Batch</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Choice" rel="tag"><span class="sizeLess20">Choice</span></a><span class="sizeLess20">, </span><a href="http://technorati.com/tags/Commandline" rel="tag"><span class="sizeLess20">Commandline</span></a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F&amp;title=More+fun+with+CHOICE" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F&amp;title=More+fun+with+CHOICE" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F&amp;title=More+fun+with+CHOICE" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F&amp;title=More+fun+with+CHOICE" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F&amp;title=More+fun+with+CHOICE', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F&amp;title=More+fun+with+CHOICE" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.sapien.com%2Findex.php%2F2007%2F03%2F29%2Fmore-fun-with-choice%2F&amp;title=More+fun+with+CHOICE" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>
<!-- start wp-tags-to-technorati 1.02 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.sapien.com/index.php/2007/03/29/more-fun-with-choice/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
