<?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>Wayne Zimmerman&#039;s Blog &#187; map drives</title>
	<atom:link href="http://www.waynezim.com/tag/map-drives/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.waynezim.com</link>
	<description>My World of Tech, Life and Anything Else</description>
	<lastBuildDate>Thu, 11 Mar 2010 05:02:56 +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>Passing Parameters to VB Script to Map Network Drives</title>
		<link>http://www.waynezim.com/2009/05/passing-parameters-to-vb-script-to-map-network-drives/</link>
		<comments>http://www.waynezim.com/2009/05/passing-parameters-to-vb-script-to-map-network-drives/#comments</comments>
		<pubDate>Tue, 05 May 2009 01:39:56 +0000</pubDate>
		<dc:creator>Wayne Zimmerman</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Logon]]></category>
		<category><![CDATA[map drives]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Startup]]></category>

		<guid isPermaLink="false">http://www.waynezim.com/?p=61</guid>
		<description><![CDATA[The other day I got an instant message from a fellow network administrator asking for a script that would map drives to by simply passing parameters from command line. This caused me to go into Google mode checking how parameters are passed in to Visual Basic Script and then applying the basic network drive mapping [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I got an instant message from a fellow network administrator asking for a script that would map drives to by simply passing parameters from command line. This caused me to go into Google mode checking how parameters are passed in to Visual Basic Script and then applying the basic network drive mapping script. Now I feel that only the proper thing to do is share it with everyone out there that is looking for the same thing he was. This is a very simple script that does something equally simple. Hopefully this will simply some of the group policies that are out there.
<p>Usage: mapme.vbs Z //server/share<br />This would result in passing Z as the drive letter and mapping it to the UNC path of //server/share</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.waynezim.com/wp-content/plugins/wp-codebox/wp-codebox.php?p=61&amp;download=mapme.vbs">mapme.vbs</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p612"><td class="code" id="p61code2"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">Set</span> objArgs = WScript.Arguments
<span style="color: #000080;">Set</span> objNetwork = WScript.CreateObject(<span style="color: #800000;">&quot;WScript.Network&quot;</span>)
objNetwork.MapNetworkDrive  objArgs(0) &amp; <span style="color: #800000;">&quot;:&quot;</span> , objArgs(1)</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.waynezim.com/2009/05/passing-parameters-to-vb-script-to-map-network-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
