Re: Office Communicator 2005 sign-in name, auto populate after install somehow?
Beholder242
For those of us who are more comfortable with batch scripting than VBScript, here is the script I use for automated Communicator installs, if you do not have SMS or another deployment method available.
Some notes about this script:
Our company is set up that office employees have S: drives available that replicate with all our offices around the world. Remote users (ones who dialup or use VPN to get into our network) do not get S: drives, so the first part of the script does three things: 1, detects if Communicator is already installed by seeing if it has a key present in the LOCAL_MACHINE portion of the registry (if the script throws an error here, don't panic, this is normal) and 2, checks that the S: drive exists and the installation file exists, and 3, installs Windows Installer 3.1 before installing Communicator, just in case the workstation is behind on updates.
The second part of the script checks to see if the user logging in already has Communicator configured for them. If yes, then the script simply exits, but otherwise it sets up in the registry the defaults that we use: don't play the tour, don't open main window at startup (optional, REM'ed out below--as shown, window will open), disable Customer Experience Improvement Program participation, sets received files to go into user's My Documents instead of a subdirectory inside My Documents, configures their sign-in name, runs automatically at next logon, and automatically signs in user even from the first execution.
Thanks to Samlw for inspiring me to add a few more keys into this and do as much behind the scenes configuration as possible.
On to the script!
@echo off
set OCINST=
set USERCFG=
REM *** TEST FOR COMMUNICATOR PRESENT ON SYSTEM ***
echo Checking for presence of Office Communicator...
reg query "HKLM\Software\Microsoft\Communicator" >NUL && set OCINST=YES
echo Checked registry, processing result...
if "%OCINST%"=="YES" goto CONFIGUSER
echo Installing Office Communicator.
if not exist S:\nul goto NOCORP
if not exist S:\Install\Communicator.msi goto NOINST
S:\Install\WindowsInstaller-KB893803-v2-x86.exe /quiet /norestart
S:\Install\Communicator.msi /passive
REM *** TEST FOR COMMUNICATOR CONFIGURATION FOR CURRENT USER ***
:CONFIGUSER
reg query HKCU\Software\Microsoft\Communicator /v "UserMicrosoft RTC Instant Messaging" >NUL && set USERCFG=YES
if "%USERCFG%"=="YES" goto :EOF
echo Configuring Office Communicator for current user.
reg add "hkcu\Software\Microsoft\Communicator" /v TourPlayed /t REG_DWORD /d 1 /f
REM reg add "hkcu\Software\Microsoft\Communicator" /v AutoOpenMainWindowWhenStartup /t REG_DWORD /d 0 /f
reg add "hkcu\Software\Microsoft\Communicator" /v "CEIP Preference" /t REG_DWORD /d 0 /f
reg add "hkcu\Software\Microsoft\Communicator" /v FtReceiveFolder /t REG_SZ /d "%USERPROFILE%\My Documents" /f
reg add "hkcu\Software\Microsoft\Communicator" /v "UserMicrosoft RTC Instant Messaging" /t REG_SZ /d "%USERNAME%@<<YOURDOMAIN>>.com" /f
reg add "hkcu\Software\Microsoft\Windows\CurrentVersion\Run" /v "Communicator" /t REG_SZ /d "%ProgramFiles%\Microsoft Office Communicator\Communicator.exe" /f
reg add "hkcu\Software\Microsoft\Communicator" /v "RTCState" /t REG_BINARY /d 01000000 /f
reg add "hkcu\Software\Microsoft\Communicator" /v AutoRunWhenLogonToWindows /t REG_DWORD /d 1 /f
reg add "hkcu\Software\Microsoft\Communicator" /v FirstTimeUser /t REG_DWORD /d 0 /f
goto :EOF
:NOCORP
echo No Corporate S: drive found. Unable to continue.
goto :EOF
:NOINST
echo Installation file not found. Unable to continue.
goto :EOF