Site icon WinCert

Block autoplay for network share drives

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

Exit mobile version