{"id":25,"date":"2011-05-19T10:19:51","date_gmt":"2011-05-19T17:19:51","guid":{"rendered":"http:\/\/constantinekrick.com\/?p=25"},"modified":"2011-06-01T05:31:11","modified_gmt":"2011-06-01T12:31:11","slug":"disabling-flash-update-notification-through-vbscript","status":"publish","type":"post","link":"http:\/\/constantinekrick.com\/?p=25","title":{"rendered":"Disabling Flash Update Notification through VbScript"},"content":{"rendered":"<div class=\"mceTemp\">\n<div class=\"mceTemp\">\n<div class=\"mceTemp\"><strong>Introduction :<\/strong> The AutoUpdate Notification for Adobe Flash can only be disabled by creating a UTF-8 encoded text file named mms.cfg in\u00a0the appropriate folder. In this post, we will go through the steps of creating the\u00a0mms.cfg file, creating a VbScript to copy the file, and a GPO (Group Policy Object) to deploy the solution.<\/div>\n<p class=\"mceTemp\"><strong>Part\u00a01: Creating mms.cfg\u00a0 <\/strong><\/p>\n<div class=\"mceTemp\">The file mms.cfg controls many aspects of flash. Today, we will be focusing soley on disabling the AutoUpdate feature. For the other commands that can be added, please visit the <a href=\"http:\/\/wwwimages.adobe.com\/www.adobe.com\/content\/dam\/Adobe\/en\/devnet\/flash\/articles\/flash_player_admin_guide\/flash_player_admin_guide.pdf\" target=\"_blank\">Adobe\u00a0Administration Guide (Chapter 4)<\/a>.\u00a0Ok, lets get started.<\/div>\n<\/div>\n<\/div>\n<ol>\n<li>Open Notepad<\/li>\n<li>Type in the following line &#8220;AutoUpdateDisable=1&#8221;\n<p><div id=\"attachment_27\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/01_NotepadAutoUpdateDisable.jpg\"><img aria-describedby=\"caption-attachment-27\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-27\" title=\"01_NotepadAutoUpdateDisable\" src=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/01_NotepadAutoUpdateDisable-300x177.jpg\" alt=\"AutoUpdateDisable=1\" width=\"300\" height=\"177\" srcset=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/01_NotepadAutoUpdateDisable-300x177.jpg 300w, http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/01_NotepadAutoUpdateDisable.jpg 383w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-27\" class=\"wp-caption-text\">AutoUpdateDisable=1<\/p><\/div><\/li>\n<li>\n<div class=\"mceTemp\">Save the File. Name the file mms.cfg and change the\u00a0encoding to UTF-8\u00a0<br \/>\n<span style=\"text-decoration: underline;\">Important : This will not work unless it is in UTF-8 ecoding.<\/span>\u00a0<\/div>\n<div class=\"mceTemp\">\n<div id=\"attachment_29\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/02_NotepadUTF8SaveFile1.jpg\"><img aria-describedby=\"caption-attachment-29\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-29\" title=\"02_NotepadUTF8SaveFile\" src=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/02_NotepadUTF8SaveFile1-300x87.jpg\" alt=\"Save File as : Name - mms.cfg Encoding - UTF-8\" width=\"300\" height=\"87\" srcset=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/02_NotepadUTF8SaveFile1-300x87.jpg 300w, http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/02_NotepadUTF8SaveFile1.jpg 625w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-29\" class=\"wp-caption-text\">Save File as : Name - mms.cfg Encoding - UTF-8<\/p><\/div>\n<\/div>\n<\/li>\n<li>\n<div class=\"mceTemp\">\n<div class=\"mceTemp\">\n<div class=\"mceTemp\">Copy\u00a0the file to a network share.\u00a0(This\u00a0is needed\u00a0for the script to run).<\/div>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n<div class=\"mceTemp\">\n<p class=\"mceTemp\"><strong>Part\u00a02 : Creating the Script\u00a0<\/strong><\/p>\n<p class=\"mceTemp\">Depending on the operating system, the mms.cfg file will need to be copied in to a specific place. Below is a listing of the various locations:<\/p>\n<li><strong>Windows NT, 2000<\/strong>&#8212; C:\\WINNT\\System32\\Macromed\\Flash<\/li>\n<li><strong>Windows XP, Vista &#8212;<\/strong>C:\\WINDOWS\\System32\\Macromed\\Flash<\/li>\n<li><strong>Windows 95, 98, or ME<\/strong>&#8211;C:\\Windows\\System\\Macromed\\Flash<\/li>\n<li><strong>Windows 7, Vista 64-bit<\/strong> &#8212; C:\\Windows\\SysWOW64<\/li>\n<\/div>\n<div class=\"mceTemp\">\n<p class=\"mceTemp\">Copy the following code into Notepad. On\u00a0line 5, insert the\u00a0location of mms.cfg on the network share inside the quotes. Save it as DisableFlashNotification.vbs<\/p>\n<pre lang=\"LANGUAGE\">'====Disable Flash Notification VbScript=====\r\n\r\n'Location of mms.cfg on network share\r\ndim mmsConfigFile\r\nmmsConfigFile = \"!!!INSERT NETWORK SHARE PATH FOR mms.cfg FILE!!!\"\r\n\r\n'_________Do not edit below this line___________________________\r\n\r\n'File System Variables\r\ndim filesys\r\nset filesys=CreateObject(\"Scripting.FileSystemObject\")\r\n\r\n'Create array of all places that mms.cfg can be.\r\ndim flashLocArray(4)\r\nflashLocArray(0) = \"C:\\WINNT\\System32\\Macromed\\Flash\\\" \t 'Windows NT, 200\r\nflashLocArray(1) = \"C:\\WINDOWS\\System32\\Macromed\\Flash\\\" 'Windows XP, Vista\r\nflashLocArray(2) = \"C:\\Windows\\System\\Macromed\\Flash\\\"\t 'Windows 95, 98, ME\r\nflashLocArray(3) = \"C:\\Windows\\SysWOW64\\\"\t\t 'Windows 64bit\r\n\r\n'Check to see if mms.cfg file exists\r\nIf filesys.FileExists(mmsConfigFile) Then\r\n\tFor Each location in flashLocArray\r\n\tflashCopyFile location, mmsConfigFile\r\n\tNext\r\nEnd If\r\n\r\n'==== Function Copy File =======================\r\nFunction flashCopyFile(strLocation, mmsConfigFile)\r\ndim filesys\r\nset filesys=CreateObject(\"Scripting.FileSystemObject\")\r\n\tIf filesys.FolderExists(strLocation) Then\r\n\tConst OverwriteExisting = True\r\n\tfilesys.CopyFile mmsConfigFile, strLocation, OverWriteExisting\r\n\tEnd if\r\nEnd Function\r\n'==== END Function Copy File ===================<\/pre>\n<\/div>\n<div id=\"_mcePaste\" class=\"mcePaste\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;\">\ufeff<\/div>\n<p><strong>NOTE:<\/strong> This script works great\u00a0on the many\u00a0flavors of Windows when deployed through Group Policy. If the script is started manually on\u00a0Windows 7 64bit,\u00a0the script will crash. This\u00a0happens\u00a0due to\u00a0insufficient rights to copy a file to the C:\\Windows\\SysWOW64 folder. Only Windows 7 64bit has this problem when ran manually. If deployed through a GPO (Group Policy Object), the script will function nicely regardless of the client operating system (include Windows 7 64bit).<\/p>\n<p><strong>Part 3: Creating a GPO to deploy the script<\/strong><\/p>\n<ol>\n<li>Start Group Policy Management<\/li>\n<li>Right Click on Group Policy Objects and click New\n<p><div id=\"attachment_42\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/03_CreateNewGPO.jpg\"><img aria-describedby=\"caption-attachment-42\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-42\" title=\"03_CreateNewGPO\" src=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/03_CreateNewGPO-300x158.jpg\" alt=\"Create a new GPO\" width=\"300\" height=\"158\" srcset=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/03_CreateNewGPO-300x158.jpg 300w, http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/03_CreateNewGPO.jpg 360w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-42\" class=\"wp-caption-text\">Create a new GPO<\/p><\/div><\/li>\n<li>Type in a name. This example used &#8220;Disable Flash Update Notification&#8221;\n<p><div id=\"attachment_43\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/04_NewGPOTitle.jpg\"><img aria-describedby=\"caption-attachment-43\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-43\" title=\"04_NewGPOTitle\" src=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/04_NewGPOTitle-300x133.jpg\" alt=\"GPO Title\" width=\"300\" height=\"133\" srcset=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/04_NewGPOTitle-300x133.jpg 300w, http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/04_NewGPOTitle.jpg 390w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-43\" class=\"wp-caption-text\">GPO Title<\/p><\/div><\/li>\n<li>\u00a0Expand the Group Policy Objects and right click on the newly created GPO &#8220;Disable Flash Update Notification&#8221; and click Edit.<\/li>\n<li>Click on Computer Configuration,\u00a0 Policies,\u00a0 Windows Settings,\u00a0 Scripts (Start\/Shutdown)\n<p><div id=\"attachment_44\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/05_GroupPolicyManagement.jpg\"><img aria-describedby=\"caption-attachment-44\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-44\" title=\"05_GroupPolicyManagement\" src=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/05_GroupPolicyManagement-300x214.jpg\" alt=\"Group Policy Management Editor\" width=\"300\" height=\"214\" srcset=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/05_GroupPolicyManagement-300x214.jpg 300w, http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/05_GroupPolicyManagement.jpg 801w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-44\" class=\"wp-caption-text\">Group Policy Management Editor<\/p><\/div><\/li>\n<li>\n<div class=\"mceTemp\">Double\u00a0click on\u00a0Startup<\/div>\n<\/li>\n<li>\n<div class=\"mceTemp\">Click Add<\/div>\n<p><div id=\"attachment_45\" style=\"width: 160px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/06_StartupProperties.jpg\"><img aria-describedby=\"caption-attachment-45\" decoding=\"async\" loading=\"lazy\" class=\"size-thumbnail wp-image-45\" title=\"06_StartupProperties\" src=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/06_StartupProperties-150x150.jpg\" alt=\"Startup Properties\" width=\"150\" height=\"157\" \/><\/a><p id=\"caption-attachment-45\" class=\"wp-caption-text\">Startup Properties<\/p><\/div><\/li>\n<li>\n<div class=\"mceTemp\">Click on Add<\/div>\n<\/li>\n<li>\n<div class=\"mceTemp\">Paste the DisableFlashNotification.vbs into the window so the screen looks like the picture below. Once the file has been pasted, click open.<\/div>\n<p><div id=\"attachment_46\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/07_UploadDisableFlashUpdate.jpg\"><img aria-describedby=\"caption-attachment-46\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-46\" title=\"07_UploadDisableFlashUpdate\" src=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/07_UploadDisableFlashUpdate-300x187.jpg\" alt=\"Upload Script into the GPO\" width=\"300\" height=\"187\" srcset=\"http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/07_UploadDisableFlashUpdate-300x187.jpg 300w, http:\/\/constantinekrick.com\/wp-content\/uploads\/2011\/05\/07_UploadDisableFlashUpdate.jpg 840w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-46\" class=\"wp-caption-text\">Upload Script into the GPO<\/p><\/div><\/li>\n<li>\n<div class=\"mceTemp\">Click Ok on all following windows.<\/div>\n<\/li>\n<li>\n<div class=\"mceTemp\">Apply the GPO to the appropriate OU (Organizational Unit).<\/div>\n<\/li>\n<\/ol>\n<p class=\"mceTemp\"><strong>Summary :<\/strong><\/p>\n<p class=\"mceTemp\">The only way to test if this is working is to use a packet sniffer.\u00a0Flash does\u00a0have\u00a0a settings manager; however, it will not reflect the changes made inside the mms.cfg.\u00a0Using a packet sniffer to test this is beyond the scope of this article, and it is a very cumbersome process. Directions on how to do this can be found <a href=\"http:\/\/kb2.adobe.com\/cps\/167\/16701594.html\" target=\"_blank\">here<\/a> at Adobe&#8217;s website.\u00a0I have found it best to look inside the various Window&#8217;s directories to see if the mms.cfg was copied over. Please ask questions in the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction : The AutoUpdate Notification for Adobe Flash can only be disabled by creating a UTF-8 encoded text file named mms.cfg in\u00a0the appropriate folder. In this post, we will go through the steps of creating the\u00a0mms.cfg file, creating a VbScript &hellip; <a href=\"http:\/\/constantinekrick.com\/?p=25\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[4,5],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1x8ho-p","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/constantinekrick.com\/index.php?rest_route=\/wp\/v2\/posts\/25"}],"collection":[{"href":"http:\/\/constantinekrick.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/constantinekrick.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/constantinekrick.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/constantinekrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":22,"href":"http:\/\/constantinekrick.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":55,"href":"http:\/\/constantinekrick.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions\/55"}],"wp:attachment":[{"href":"http:\/\/constantinekrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/constantinekrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/constantinekrick.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}