{"id":1322,"date":"2017-12-04T07:05:06","date_gmt":"2017-12-04T07:05:06","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1322"},"modified":"2020-01-09T09:36:15","modified_gmt":"2020-01-09T09:36:15","slug":"how-to-set-the-preferrence-for-aol-through-wise-script","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-set-the-preferrence-for-aol-through-wise-script\/","title":{"rendered":"How to Set the Preferrence for AOL Through Wise Script"},"content":{"rendered":"<p><strong>installanywhereExpert created the topic: How to Set the Preferrence for AOL Through Wise Script<\/strong><br \/>\nThe setting preference is stored under<br \/>\nHKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users<\/p>\n<p>If you want to apply certain settings for all the screennames (username), we need to write a wise script executable that should pick all the screennames available in the machine and apply the settings&#8230;<\/p>\n<p>Better way is to create the script executable with the above logic and create it as shortcut.<\/p>\n<p>Step 1: The User has to launch AOL once in order to get the registry key created with the screen name<br \/>\nHKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users\\TESTID<br \/>\nHKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users\\HELLO<\/p>\n<p>TESTID and HELLO being the screenname<\/p>\n<p>Step 2: User has to run the shortcut that we have created to get the settings.<\/p>\n<p>Example: One of the settings will be applied as:&#8217;<br \/>\n[HKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users\\TESTID\\AWAY]<br \/>\n&#8220;EnableIdleAutoResponse&#8221;=dword:00000000<br \/>\n&#8220;IdleAutoResponseText&#8221;=&#8221;<HTML><BODY BGCOLOR=\\\"#ffffff\\\"><FONT LANG=\\\"0\\\">I am away from my computer rightnow.<\/FONT><\/BODY><\/HTML>&#8221;<br \/>\n&#8220;DisableAwayAutoResponse&#8221;=dword:00000000<br \/>\n&#8220;HideIMsWhenAway&#8221;=dword:00000000<br \/>\n&#8220;DisableSoundWhenAway&#8221;=dword:00000000<br \/>\n&#8220;DisableToastersWhenAway&#8221;=dword:00000000<br \/>\n&#8220;MessageWhileAway&#8221;=dword:00000000<\/p>\n<p>Vbscript to grab all the screennames in the machine:<\/p>\n<p>Dim objFSO, objFolder, objShell, objTextFile, objFile<br \/>\nDim strDirectory, strFile, strText<br \/>\nstrDirectory = &#8220;c:\\working\\aol&#8221;<br \/>\nstrFile = &#8220;\\AOLInstall.txt&#8221;<\/p>\n<p>Const HKEY_CURRENT_USER = &#038;H80000001<br \/>\nConst REG_SZ = 1<br \/>\nConst REG_EXPAND_SZ = 2<br \/>\nConst REG_BINARY = 3<br \/>\nConst REG_DWORD = 4<br \/>\nConst REG_MULTI_SZ = 7<\/p>\n<p>strComputer = &#8220;.&#8221;<\/p>\n<p>Set objRegistry = GetObject(&#8220;winmgmts:\\\\&#8221; &#038; strComputer &#038; &#8220;\\root\\default:StdRegProv&#8221;)<br \/>\nSet objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br \/>\nset objFile = nothing<br \/>\nset objFolder = nothing<br \/>\nConst ForAppending = 8<\/p>\n<p>strKeyPath = &#8220;Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users&#8221;<br \/>\nobjRegistry.EnumValues HKEY_CURRENT_USER, strKeyPath, arrValueNames, arrValueTypes<\/p>\n<p>For i = 0 to UBound(arrValueNames)<br \/>\n  strText = arrValueNames(i)<br \/>\n  strValueName = arrValueNames(i)<br \/>\n  Select Case arrValueTypes(i)<br \/>\n    Case REG_SZ<br \/>\n      objRegistry.GetStringValue HKEY_CURRENT_USER,strKeyPath, strValueName,strValue<br \/>\n      strText = strText &#038; &#8220;: &#8221; &#038; strValue<br \/>\n    End Select<\/p>\n<p>  Wscript.Echo strValue<br \/>\nSet objTextFile = objFSO.OpenTextFile _<br \/>\n(strDirectory &#038; strFile, ForAppending, True)<\/p>\n<p>objTextFile.WriteLine(strvalue)<br \/>\nobjTextFile.Close<br \/>\nNext<\/p>\n<p>Reference:<a href=\"http:\/\/www.symantec.com\/connect\/articles\/how-se...-through-wise-script\" target=\"_blank\" rel=\"noopener\"> www.symantec.com\/connect\/articles\/how-se&#8230;-through-wise-script<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>installanywhereExpert created the topic: How to Set the Preferrence for AOL Through Wise Script The setting preference is stored under HKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users If you want to apply&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[278],"class_list":["post-1322","post","type-post","status-publish","format-standard","hentry","category-general","tag-script"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1322"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1322\/revisions"}],"predecessor-version":[{"id":1323,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1322\/revisions\/1323"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}