Application Settings in Login Scripts

Lotus Notes

Basic Lotus Notes Settings

IF INGROUP(“Citrix Domino Users”)
 AT (16,21) “Skapar Notes katalog för Citrix”
 IF EXIST (H:Lotus)
 
 ELSE
  md H:Lotus
  md H:LotusNotesdata
  copy “G:TOOLSSDKSCXNotesdata*.*” “H:LotusNotesdata”
  copy “G:TOOLSSDKSCXnotes.ini” “H:Lotus”
 ENDIF
ENDIF

Backing up important Notes files

AT (16,21) “Creating backup of important Notes Files”
copy “c:lotusnotesdata*.id” “c:lotusnotesdata*.idbak”
copy “c:lotusnotesdatanames.nsf” “c:lotusnotesdatanames.nsfbak”
copy “c:lotusnotesdatabookmark.nsf” “c:lotusnotesdatabookmark.nsfbak”
copy “c:lotusnotesdatadesktop5.dsk” “c:lotusnotesdatadesktop5.dskbak”


Microsoft Office

Configure Office MultiLanguage Pack (sv,no,dk)

$result=AddKey(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”,”1033″, “On”, “REG_SZ”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”,”2057″, “On”, “REG_SZ”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”,”1053″, “On”, “REG_SZ”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”,”1030″, “On”, “REG_SZ”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”,”1044″, “On”, “REG_SZ”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”,”2068″, “On”, “REG_SZ”)

; Configure Office MultiLanguage Pack (UI,HELP)

$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”,”UILanguage”, “409”, “REG_DWORD”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftOffice9.0CommonLanguageResources”,”HelpLanguage”, “409”, “REG_DWORD”)


Internet Explorer

Setup Homepage Settings in Internet Explorer

$result=WRITEVALUE(“HKEY_CURRENT_USERSoftwareMicrosoftInternetExplorerMain”, “Start Page”, http://www.johanpersson.nu, “REG_SZ”)

Setup Proxy Settings in Internet Explorer

$result=AddKey(“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings”,”ProxyServer”, “10.0.0.1:8080”, “REG_SZ”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings”,”ProxyEnable”, “00000001”, “REG_DWORD”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings”,”ProxyOverride”, “<local>”, “REG_SZ”)

Setting Size of Temprary Internet files

$result=WRITEVALUE(“HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsCache”,”Persistent”,”0″,”REG_DWORD”)
$result=WRITEVALUE(“HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionInternet Settings5.0CacheContent”,”CacheLimit”,”20480″,”REG_DWORD”)
$result=WRITEVALUE(“HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsCacheContent”,”CacheLimit”,”20480″,”REG_DWORD”)

Delete Temporary Internet Files

AT (4,1) “Deleting Temp Files for IE on Dagmar…”
DEL “C:Documents and Settings” + @USERID + “Local SettingsTemporary Internet Files*.*” /c /f /h /s


IBM Client Access

Setup AS/400 Connections

$result=AddKey(“HKEY_CURRENT_USERSoftwareIBMClient Access ExpressCurrentVersionEnvironmentsMy AS/400 Connections”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareIBMClient Access ExpressCurrentVersionEnvironmentsMy AS/400 Connections”,”Default System”, “address“, “REG_SZ”)
$result=AddKey(“HKEY_CURRENT_USERSoftwareIBMClient Access ExpressCurrentVersionEnvironmentsMy AS/400 ConnectionsServerCommunication”)
$result=WriteValue(“HKEY_CURRENT_USERSoftwareIBMClient Access ExpressCurrentVersionEnvironmentsMy AS/400 ConnectionsserverCommunication”,”User ID”,@userid , “REG_SZ”) $result=WriteValue(“HKEY_CURRENT_USERSoftwareIBMClient Access ExpressCurrentVersionEnvironmentsMy AS/400 ConnectionsServerCommunication”,”Signon Mode”,”00000001″ , “REG_DWORD”) $result=WriteValue(“HKEY_CURRENT_USERSoftwareIBMClient Access ExpressCurrentVersionEnvironmentsMy AS/400 ConnectionsServerCommunication”,”IP Address”,”adress” , “REG_SZ”)


Symantec DLO

Installing DLO

if EXISTKEY(“HKEY_LOCAL_MACHINESOFTWAREVERITASDLOClientUserShare”)<>0
   AT (16,21) “Installing DLO…                    “
   SHELL “%COMSPEC% /e:1024 /c
\DLOSRVsetup.exe /settings \DLOSRVdloagentsetup.ini
Endif

Changing Mediaserver on Client

$DLO = ReadValue (“HKEY_CURRENT_USERSoftwareLogin”,”DLO”)

IF $DLO<>1
   WriteValue(“HKEY_CURRENT_USERSOFTWAREVERITASDLOClient”,”DefaultMediaServer”, “DLOSRV”, “REG_SZ”)
   WriteValue(“HKEY_LOCAL_MACHINESOFTWAREVERITASDLOClient”,”DefaultMediaServer”, “DLOSRV”, “REG_SZ”)

   WriteValue(“HKEY_CURRENT_USERSoftwareLogin”,”DLO”, “1”, “REG_SZ”)
ENDIF


Symantec Antivirus Corporate Edition

Installing Symantec Antivirus

If Exist(“C:Documents and SettingsAll UsersApplication DataSymantecSymantec AntiVirus Corporate Edition7.5”)<>1
 AT (16,21) “Antivirus Not Installed…              “
 msiexec.exe /i
\AVSRVVPHOMECLT-INSTWIN32SAV10.msi REBOOT=ReallySuppress INSTALLSERVER=0 NETWORKTYPE=1 SERVERNAME=GIS RUNLIVEUPDATE=0 ADDLOCAL=SAVMain,SAVUI,SAVHelp,QClient /qb!
 Sleep 20
EndIf

Move client to new AV server

$AV = ReadValue (“HKEY_CURRENT_USERSoftwareLogin”,”AV”)

IF $AV<>2
   AT (16,21) “Migrating Symantec Antivirus…         “
   copy “
\NEWAVSRVVPHOMEGroupsComputersGRC.DAT” “C:Documents and SettingsAll UsersApplication DataSymantecSymantec AntiVirus Corporate Edition7.5”
   WriteValue(“HKEY_CURRENT_USERSoftwareLogin”,”AV”, “2”, “REG_SZ”)
Endif

Trend Antivirus Officescan

Install Trend Antivirus

shell “%COMSPEC% /c start /SEPARATE \avserverofcscanautopcc

Move Trend AV Clients to a new server

$AVMV = ReadValue (”
HKEY_CURRENT_USERSoftwareLogin”,”AVMV”)
IF $AVMV<>0
  AT (2,1) “Moving Antivirus Client                     ”
  SHELL “%COMSPEC% /C
\domainnetlogonipxfer.exe -s avserver -p 8080 -m 1 -c 53844″
  WriteValue(“HKEY_CURRENT_USERSoftwareLogin”,”AVMV”, “0”, “REG_SZ”)
 ENDIF

Comments

Leave a Reply

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)