I have created a script which ease helpdesk the need for configuring the MS Communicator account for the user. This is provided that the SIP address is the same as their Exchange Email Address.
Below is the script
'Script created by Yih Wen
Dim WSHShell
On Error Resume Next
' Get current logon user Email Address
Set objADSystemInfo = CreateObject("ADSystemInfo")
' Get the current information into a new Object
Set objUser = GetObject("LDAP://" & objADSystemInfo.UserName)
'Now use the mail property for the SMTP Address
'Wscript.Echo "SMTP Address: " & objUser.mail
'Import Registry Settings
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\UserMicrosoft RTC Instant Messaging", objUser.mail, "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\FtReceiveFolder", "d:\\%username%\\My Received Files", "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ManualConfigSIPURI", "", "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ManualConfigPhURI", "", "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PSTNConferencingProvider", "", "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PSTNConferencingTollFreeNumber", "", "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PSTNConferencingTollNumber", "", "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PSTNConferencingAccount", "", "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PSTNConferencingCallbackNumber", "", "REG_SZ"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PSTNConferencingParticipantPasscode", "", "REG_BINARY"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PSTNConferencingAdministratorPasscode", "", "REG_BINARY"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\RTCState", 01,00,00,00, "REG_BINARY"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\IMTBHide", 01,00,00,00, "REG_BINARY"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\AutoRunWhenLogonToWindows", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\FirstTimeUser", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PersonalContactStore", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\AutoOpenMainWindowWhenStartup", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\Language", 409, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\CEIP Preference", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ShowEmoticons", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\TimestampInIMMsgs", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ControlPhone", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PhoneConfigType", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\EnableMachinePhoneToForwardTo", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\MachinePhoneToForwardTo", ffffffff, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\DefaultCallOutDevice", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\IdleThreshold", 5, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ShowBusyWhenConference", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ShowDNDWhenFullScreen", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\AutoRetrieveOOFSettings", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PublishCalendarPresence", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\SendMailForMissedCall", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\SendMailForAutoForwardedCall", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PauseWMPWhenUsingPhone", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ExpandDetailsPane", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ViewExtensibilityTabs", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ShowStatusIcons", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\ExtendedView", 0, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\PreferredMediaTypes", f, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\TourPlayed", 1, "REG_DWORD"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Communicator\AddToFirewallExceptionList", 0, "REG_DWORD"
WScript.Quit
| Copyright © 1996 Meni Milstein. No portion may be reproduced without my written permission. All registered trademarks or trademarks belong to their respective companies. Should any right be infringed, it is unintentional. Let us know and the matter will be rectified. All other contents that may be linked from this site, and or forum posts in this site are not under our immediate control and not our responsibility. We do our best to maintain all the Forums and editing them sometimes takes several days. |