Block autoplay for network share drives

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

To block autoplay feature for network shares, here’s what you can do..

You can use a logon script below, which maps the drive and creates a shortcut on the users desktop.

Dim WshNetwork,objFSO
WshNetwork.MapNetworkDrive “W:”, “\\server1\Accounting$”,True
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
strDsk = WshShell.SpecialFolders(“Desktop”)
‘ What is the label for the shortcut?
strshortcut = strDsk & “\Accounting.lnk”
If Not objFSO.FileExists(strshortcut) Then
SET oUrlLink = WshShell.CreateShortcut(strshortcut)
‘ What is the path to the shared folder?
oUrlLink.TargetPath = “\\server1\Accounting$\
End If

This should block the autoplay feature.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

two × 5 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.