block autoplay for network share drives

Posted on 2009-04-24
Last Modified: 2013-12-04
how can i block autoplay for network mapped share drives. I dnt want to applied through domain leve policy is there any  computer level policy which i can applie

i only want my users to open the mapped share drive through explorer.

Question by:samithsukumar
    LVL 47

    Expert Comment

    Read here for an Advanced Autorun / Autoplay settings ADM file
    LVL 17

    Expert Comment

    LVL 3

    Author Comment

    is there any way to force my user to open my network share drive through explorer.rather than double clicking on drive.
    LVL 47

    Accepted Solution

    You could use a logon script as in example below, that 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

    Open in new window

    LVL 20

    Expert Comment

    Nice grade....

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
    As a Mac user and former AppleCare AHA & Senior Advisor, I'm constantly bombarded with questions about Macs and if they need Antivirus. This short article is my response to those questions.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now