<?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>John Arends &#187; Windows</title>
	<atom:link href="http://www.johnarends.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnarends.com</link>
	<description>Techno babble</description>
	<lastBuildDate>Fri, 13 Jan 2012 04:21:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Trying to prevent lab users from forgetting their USB jump drives</title>
		<link>http://www.johnarends.com/2009/09/trying-to-prevent-lab-users-from-forgetting-their-usb-jump-drives/</link>
		<comments>http://www.johnarends.com/2009/09/trying-to-prevent-lab-users-from-forgetting-their-usb-jump-drives/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 04:09:00 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Computer Labs]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.johnarends.com/?p=11</guid>
		<description><![CDATA[One of the things I do at work is manage some university computer labs. Our student workers keep an eye on things, and noticed an increasing number of people were walking away leaving their USB jump drives still plugged into the computer. (It seems like most students call them a "USB" now, which to me [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I do at work is manage some university computer labs. Our student workers keep an eye on things, and noticed an increasing number of people were walking away leaving their USB jump drives still plugged into the computer. (It seems like most students call them a "USB" now, which to me is the same thing as calling a firewire hard drive a "firewire," but I digress...)</p>
<p>Anyway, I Googled around a bit, and wrote some VBscript code to add to our logout script to try to detect USB drives. It works pretty well, since we've had a huge reduction of lost drives piling up in our lost and found drawer since the script was put in place.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Set FSO = CreateObject("Scripting.FileSystemObject")</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Set Drives = FSO.Drives</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">strMessage = "Please unplug your USB Drive!" &amp; vbcr &amp; vbcr &amp; "Please unplug your USB Drive!" &amp; vbcr &amp; vbcr &amp; "Please unplug your USB Drive!" _</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>&amp; vbcr &amp; vbcr &amp; "DO NOT FORGET!"</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">For Each DiskDrive In Drives</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>If DiskDrive.DriveType = "1" Then</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>If DiskDrive.IsReady = "True" Then</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>strMbox = MsgBox(strMessage ,48,"Unplug USB Drive")</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>End If</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>End If</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Next</div>
<pre>Set FSO = CreateObject("Scripting.FileSystemObject")
Set Drives = FSO.Drives

strMessage = "Please unplug your USB Drive!" &amp; vbcr &amp; vbcr &amp; "Please unplug your USB Drive!" &amp; vbcr &amp; vbcr &amp; "Please unplug your USB Drive!" _
     &amp; vbcr &amp; vbcr &amp; "DO NOT FORGET!"

For Each DiskDrive In Drives
<span style="white-space: pre;">	</span>If DiskDrive.DriveType = "1" Then
<span style="white-space: pre;">		</span>If DiskDrive.IsReady = "True" Then<span style="white-space: pre;">	</span>
<span style="white-space: pre;">			</span>strMbox = MsgBox(strMessage ,48,"Unplug USB Drive")
<span style="white-space: pre;">		</span>End If
<span style="white-space: pre;">	</span>End If
Next</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.johnarends.com/2009/09/trying-to-prevent-lab-users-from-forgetting-their-usb-jump-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Vista to work with older CIFS servers</title>
		<link>http://www.johnarends.com/2008/08/getting-vista-to-work-with-older-cifs-servers/</link>
		<comments>http://www.johnarends.com/2008/08/getting-vista-to-work-with-older-cifs-servers/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 16:57:40 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.johnarends.com/?p=6</guid>
		<description><![CDATA[I occasionally need to connect to CIFS shares on a Samba 2.0 server and an OS/2 server from my Vista machine but it doesn't work by default. The fix is relatively easy. This link was helpful: http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=339270746]]></description>
			<content:encoded><![CDATA[<p>I occasionally need to connect to CIFS shares on a Samba 2.0 server and an OS/2 server from my Vista machine but it doesn't work by default. The fix is relatively easy.</p>
<p>This link was helpful:</p>
<p><a href="http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=339270746">http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=339270746</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnarends.com/2008/08/getting-vista-to-work-with-older-cifs-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

