<p><a href="http://wincert.net/wp-content/uploads/2015/01/windows-7-2.jpg"><img class="alignnone size-full wp-image-547" src="http://wincert.net/wp-content/uploads/2015/01/windows-7-2.jpg" alt="Windows 7 Box,domain logon,admin pack,taskbar thumbnails,task scheduler,preview pane,windows 7,chrome theme,icon cache,admin shares,install the printer,drives,pagefile,user profile,viceversa,live mail,ISO file,installation path,deployment,mdt 2010,hotmail,command prompt" width="720" height="340" /></a></p>
<p>To block autoplay feature for network shares, here&#8217;s what you can do..</p>
<p>You can use a logon script below, which maps the drive and creates a shortcut on the users desktop.</p>
<p><!--more--></p>
<p><span style="color: #003366;">Dim WshNetwork,objFSO</span><br />
<span style="color: #003366;"> WshNetwork.MapNetworkDrive &#8220;W:&#8221;, &#8220;<a style="color: #003366;" href="file://\\server1\Accounting$";,True">\\server1\Accounting$&#8221;,True</a></span><br />
<span style="color: #003366;"> Set objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)</span><br />
<span style="color: #003366;"> strDsk = WshShell.SpecialFolders(&#8220;Desktop&#8221;)</span><br />
<span style="color: #003366;"> &#8216; What is the label for the shortcut?</span><br />
<span style="color: #003366;"> strshortcut = strDsk &; &#8220;\Accounting.lnk&#8221;</span><br />
<span style="color: #003366;"> If Not objFSO.FileExists(strshortcut) Then</span><br />
<span style="color: #003366;"> SET oUrlLink = WshShell.CreateShortcut(strshortcut)</span><br />
<span style="color: #003366;"> &#8216; What is the path to the shared folder?</span><br />
<span style="color: #003366;"> oUrlLink.TargetPath = &#8220;<a style="color: #003366;" href="file://\\server1\Accounting$\">\\server1\Accounting$\</a>&#8220;</span><br />
<span style="color: #003366;"> oUrlLink.Save</span><br />
<span style="color: #003366;"> End If</span></p>
<p>This should block the autoplay feature.</p>