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 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โฆ
Better way is to create the script executable with the above logic and create it as shortcut.
Step 1: The User has to launch AOL once in order to get the registry key created with the screen name
HKEY_CURRENT_USER\Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\Users\TESTID
HKEY_CURRENT_USER\Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\Users\HELLO
TESTID and HELLO being the screenname
Step 2: User has to run the shortcut that we have created to get the settings.
Example: One of the settings will be applied as:โ
[HKEY_CURRENT_USER\Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\Users\TESTID\AWAY]
โEnableIdleAutoResponseโ=dword:00000000
โIdleAutoResponseTextโ=โI am away from my computer rightnow.โ
โDisableAwayAutoResponseโ=dword:00000000
โHideIMsWhenAwayโ=dword:00000000
โDisableSoundWhenAwayโ=dword:00000000
โDisableToastersWhenAwayโ=dword:00000000
โMessageWhileAwayโ=dword:00000000
Vbscript to grab all the screennames in the machine:
Dim objFSO, objFolder, objShell, objTextFile, objFile
Dim strDirectory, strFile, strText
strDirectory = โc:\working\aolโ
strFile = โ\AOLInstall.txtโ
Const HKEY_CURRENT_USER = &H80000001
Const REG_SZ = 1
Const REG_EXPAND_SZ = 2
Const REG_BINARY = 3
Const REG_DWORD = 4
Const REG_MULTI_SZ = 7
strComputer = โ.โ
Set objRegistry = GetObject(โwinmgmts:\\โ & strComputer & โ\root\default:StdRegProvโ)
Set objFSO = CreateObject(โScripting.FileSystemObjectโ)
set objFile = nothing
set objFolder = nothing
Const ForAppending = 8
strKeyPath = โSoftware\America Online\AOL Instant Messenger (TM)\CurrentVersion\Usersโ
objRegistry.EnumValues HKEY_CURRENT_USER, strKeyPath, arrValueNames, arrValueTypes
For i = 0 to UBound(arrValueNames)
strText = arrValueNames(i)
strValueName = arrValueNames(i)
Select Case arrValueTypes(i)
Case REG_SZ
objRegistry.GetStringValue HKEY_CURRENT_USER,strKeyPath, strValueName,strValue
strText = strText & โ: โ & strValue
End Select
Wscript.Echo strValue
Set objTextFile = objFSO.OpenTextFile _
(strDirectory & strFile, ForAppending, True)
objTextFile.WriteLine(strvalue)
objTextFile.Close
Next
Reference: www.symantec.com/connect/articles/how-seโฆ-through-wise-script
Iโm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND