oh2204
Goto Top

Outlook 2007 Konfiguration über kiXart

Hi,

Ich möchte über ein Anmeldescript mit kiXtart die Outlook 2007- Konfiguration vornehmen, jedoch muss ich beim ersten Start von Outlook immer wieder alles bestätigen (Default Profile und Exchange Verbindung).

Derzeit läuft alles in einer Testumgebung, von daher kann nicht viel passieren.
Folgende Dateien sind erstellt.

Der Teil des Logon- Scripts zur Outlook- Konfiguration:
at (18,2) "Konfiguriere Outlook"
IF EXIST ("C:\PROGRAMME\Microsoft Office\Office\outlook.exe") OR ("C:\PROGRAMME\Microsoft Office\Office10\outlook.exe") OR ("C:\PROGRAMME\Microsoft Office\Office11\outlook.exe") OR ("C:\PROGRAMME\Microsoft Office\Office12\outlook.exe")
	Call "\\2003SRV\NETLOGON\Logon.WNT\Outlook\outlook.txt"
ELSE
	at (18,2) "Konfiguriere Outlook - Outlook nicht installiert"
ENDIF
sleep 1


at (18,2) "Konfiguriere Microsoft Office Benutzerinformationen"
Call "\\2003SRV\NETLOGON\Logon.WNT\OfficeUserInfo.txt"
sleep 1

Inhalt der Outlook.txt:
If ExistKey("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\EDV")=0 
  at (18,2) "Konfiguriere Outlook - bereits geschehen"
  WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce", "Outlook", "Outlook", "REG_SZ") 
  WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\EDV\13dbb0c8aa05101a9bb000aa002fc45a", "001e6607", @USERID, "REG_SZ") 
Else
  at (18,2) "Konfiguriere Outlook - wird eingerichtet fuer @USERID"
  DelTree("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles") 
  AddKey("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\EDV")
  AddKey("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\EDV\13dbb0c8aa05101a9bb000aa002fc45a")
  AddKey("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce")
  WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce", "Outlook", "Outlook /ImportPRF \\2003SRV\NETLOGON\Logon.WNT\Outlook\EDV.prf", "REG_SZ") 
  WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\EDV\13dbb0c8aa05101a9bb000aa002fc45a", "001e6607", @USERID, "REG_SZ") 
EndIf

Inhalt der OfficeUserInfo.txt:
OUTLOOK


FUNCTION OUTLOOK()
    DIM $prfrem,$waste,$explorview,$editorpref,$prf,$company,$serverloc,
    $exchgsvr,$prfloc,$prffile,$ppru,$exe,$ver,$idx,$keyname,$rc,
    $outlook,$ns,$unread,$fldr,$x,$regexp,$companybin,$fullnamebin,$initials,$MSOdir
    $company='EDV'

          ; Process Company Name
          $x=1
          $regexp=''
          WHILE $x<(Len($company)+1)
             $regexp=$regexp+DecToHex(Asc(SubStr($company,$x,1)))+'00'
             $x=$x+1
          LOOP
          $regexp=$regexp+'0000'
          $companybin=$regexp
          WriteValue('HKCU\Software\Microsoft\Office\10.0\Common\UserInfo','Company',$companybin,'REG_BINARY')
          WriteValue('HKCU\Software\Microsoft\Office\11.0\Common\UserInfo','Company',$companybin,'REG_BINARY')
          WriteValue('HKCU\Software\Microsoft\Office\12.0\Common\UserInfo','Company',$companybin,'REG_BINARY')
          ; Process FullName
          $x=1
          $regexp=''
          WHILE $x<(Len(@FULLNAME)+1)
             $regexp=$regexp+DecToHex(Asc(SubStr(@FULLNAME,$x,1)))+'00'
             $x=$x+1
          LOOP
          $regexp=$regexp+'0000'
          $fullnamebin=$regexp
          WriteValue('HKCU\Software\Microsoft\Office\10.0\Common\UserInfo','UserName',$fullnamebin,'REG_BINARY')
          WriteValue('HKCU\Software\Microsoft\Office\11.0\Common\UserInfo','UserName',$fullnamebin,'REG_BINARY')
          WriteValue('HKCU\Software\Microsoft\Office\12.0\Common\UserInfo','UserName',$fullnamebin,'REG_BINARY')
          ; Process UserID
          $useridbin=SubStr(@WUSERID,1,2)
          $x=1
          $regexp=''
          WHILE $x<(Len($useridbin)+1)
             $regexp=$regexp+DecToHex(Asc(SubStr($useridbin,$x,1)))+'00'
             $x=$x+1
          LOOP
          $regexp=$regexp+'0000'
          $initials=$regexp
          WriteValue('HKCU\Software\Microsoft\Office\10.0\Common\UserInfo','UserInitials',$initials,'REG_BINARY')
          WriteValue('HKCU\Software\Microsoft\Office\11.0\Common\UserInfo','UserInitials',$initials,'REG_BINARY')
          WriteValue('HKCU\Software\Microsoft\Office\12.0\Common\UserInfo','UserInitials',$initials,'REG_BINARY')



ENDFUNCTION

Inhalt der PRF- Datei:
;Automatically generated PRF file from the Microsoft Office Customization and Installation Wizard

; **************************************************************
; Section 1 - Profile Defaults
; **************************************************************

[General]
Custom=1
DefaultProfile=Yes
OverwriteProfile=Append
ModifyDefaultProfileIfPresent=true

; **************************************************************
; Section 2 - Services in Profile
; **************************************************************

[Service List]
ServiceX=Microsoft Outlook Client
ServiceEGS=Exchange Global Section
Service1=Microsoft Exchange Server
ServiceEGS=Exchange Global Section

;***************************************************************
; Section 3 - List of internet accounts
;***************************************************************

[Internet Account List]

;***************************************************************
; Section 4 - Default values for each service.
;***************************************************************

[ServiceX]
CachedExchangeMode=0x00000002
CachedExchangeSlowDetect=true

[ServiceEGS]
CachedExchangeConfigFlags=0x00000900
MailboxName=%UserName%
HomeServer=2003srv

[Service1]
OverwriteExistingService=No
UniqueService=Yes
MailboxName=%UserName%
HomeServer=2003srv
OfflineAddressBookPath=%USERPROFILE%\local settings\application data\microsoft\outlook\
OfflineFolderPathAndFilename=%USERPROFILE%\local settings\application data\microsoft\outlook\outlook.ost
AccountName=Microsoft Exchange Server

;***************************************************************
; Section 5 - Values for each internet account.
;***************************************************************

;***************************************************************
; Section 6 - Mapping for profile properties
;***************************************************************

[Microsoft Exchange Server]
ServiceName=MSEMS
MDBGUID=5494A1C0297F101BA58708002B2A2517
MailboxName=PT_STRING8,0x6607
HomeServer=PT_STRING8,0x6608
OfflineAddressBookPath=PT_STRING8,0x660E
OfflineFolderPathAndFilename=PT_STRING8,0x6610

[Exchange Global Section]
SectionGUID=13dbb0c8aa05101a9bb000aa002fc45a
MailboxName=PT_STRING8,0x6607
HomeServer=PT_STRING8,0x6608
RPCoverHTTPflags=PT_LONG,0x6623
RPCProxyServer=PT_UNICODE,0x6622
RPCProxyPrincipalName=PT_UNICODE,0x6625
RPCProxyAuthScheme=PT_LONG,0x6627
CachedExchangeConfigFlags=PT_LONG,0x6629

[Microsoft Mail]
ServiceName=MSFS
ServerPath=PT_STRING8,0x6600
Mailbox=PT_STRING8,0x6601
Password=PT_STRING8,0x67f0
RememberPassword=PT_BOOLEAN,0x6606
ConnectionType=PT_LONG,0x6603
UseSessionLog=PT_BOOLEAN,0x6604
SessionLogPath=PT_STRING8,0x6605
EnableUpload=PT_BOOLEAN,0x6620
EnableDownload=PT_BOOLEAN,0x6621
UploadMask=PT_LONG,0x6622
NetBiosNotification=PT_BOOLEAN,0x6623
NewMailPollInterval=PT_STRING8,0x6624
DisplayGalOnly=PT_BOOLEAN,0x6625
UseHeadersOnLAN=PT_BOOLEAN,0x6630
UseLocalAdressBookOnLAN=PT_BOOLEAN,0x6631
UseExternalToHelpDeliverOnLAN=PT_BOOLEAN,0x6632
UseHeadersOnRAS=PT_BOOLEAN,0x6640
UseLocalAdressBookOnRAS=PT_BOOLEAN,0x6641
UseExternalToHelpDeliverOnRAS=PT_BOOLEAN,0x6639
ConnectOnStartup=PT_BOOLEAN,0x6642
DisconnectAfterRetrieveHeaders=PT_BOOLEAN,0x6643
DisconnectAfterRetrieveMail=PT_BOOLEAN,0x6644
DisconnectOnExit=PT_BOOLEAN,0x6645
DefaultDialupConnectionName=PT_STRING8,0x6646
DialupRetryCount=PT_STRING8,0x6648
DialupRetryDelay=PT_STRING8,0x6649

[Personal Folders]
ServiceName=MSPST MS
Name=PT_STRING8,0x3001
PathAndFilenameToPersonalFolders=PT_STRING8,0x6700 
RememberPassword=PT_BOOLEAN,0x6701
EncryptionType=PT_LONG,0x6702
Password=PT_STRING8,0x6703

[Unicode Personal Folders]
ServiceName=MSUPST MS
Name=PT_UNICODE,0x3001
PathAndFilenameToPersonalFolders=PT_STRING8,0x6700 
RememberPassword=PT_BOOLEAN,0x6701
EncryptionType=PT_LONG,0x6702
Password=PT_STRING8,0x6703

[Outlook Address Book]
ServiceName=CONTAB

[LDAP Directory]
ServiceName=EMABLT
ServerName=PT_STRING8,0x6600
UserName=PT_STRING8,0x6602
UseSSL=PT_BOOLEAN,0x6613
UseSPA=PT_BOOLEAN,0x6615
EnableBrowsing=PT_BOOLEAN,0x6622
DisplayName=PT_STRING8,0x3001
ConnectionPort=PT_STRING8,0x6601
SearchTimeout=PT_STRING8,0x6607
MaxEntriesReturned=PT_STRING8,0x6608
SearchBase=PT_STRING8,0x6603
CheckNames=PT_STRING8,0x6624
DefaultSearch=PT_LONG,0x6623

[Microsoft Outlook Client]
SectionGUID=0a0d020000000000c000000000000046
FormDirectoryPage=PT_STRING8,0x0270
WebServicesLocation=PT_STRING8,0x0271
ComposeWithWebServices=PT_BOOLEAN,0x0272
PromptWhenUsingWebServices=PT_BOOLEAN,0x0273
OpenWithWebServices=PT_BOOLEAN,0x0274
CachedExchangeMode=PT_LONG,0x041f
CachedExchangeSlowDetect=PT_BOOLEAN,0x0420

[Personal Address Book]
ServiceName=MSPST AB
NameOfPAB=PT_STRING8,0x001e3001
PathAndFilename=PT_STRING8,0x001e6600
ShowNamesBy=PT_LONG,0x00036601

; ************************************************************************
; Section 7 - Mapping for internet account properties.  DO NOT MODIFY.
; ************************************************************************

[I_Mail]
AccountType=POP3
;--- POP3 Account Settings ---
AccountName=PT_UNICODE,0x0002
DisplayName=PT_UNICODE,0x000B
EmailAddress=PT_UNICODE,0x000C
;--- POP3 Account Settings ---
POP3Server=PT_UNICODE,0x0100
POP3UserName=PT_UNICODE,0x0101
POP3UseSPA=PT_LONG,0x0108
Organization=PT_UNICODE,0x0107
ReplyEmailAddress=PT_UNICODE,0x0103
POP3Port=PT_LONG,0x0104
POP3UseSSL=PT_LONG,0x0105
; --- SMTP Account Settings ---
SMTPServer=PT_UNICODE,0x0200
SMTPUseAuth=PT_LONG,0x0203
SMTPAuthMethod=PT_LONG,0x0208
SMTPUserName=PT_UNICODE,0x0204
SMTPUseSPA=PT_LONG,0x0207
ConnectionType=PT_LONG,0x000F
ConnectionOID=PT_UNICODE,0x0010
SMTPPort=PT_LONG,0x0201
SMTPSecureConnection=PT_LONG,0x020A
ServerTimeOut=PT_LONG,0x0209
LeaveOnServer=PT_LONG,0x1000

[IMAP_I_Mail]
AccountType=IMAP
;--- IMAP Account Settings ---
AccountName=PT_UNICODE,0x0002
DisplayName=PT_UNICODE,0x000B
EmailAddress=PT_UNICODE,0x000C
;--- IMAP Account Settings ---
IMAPServer=PT_UNICODE,0x0100
IMAPUserName=PT_UNICODE,0x0101
IMAPUseSPA=PT_LONG,0x0108
Organization=PT_UNICODE,0x0107
ReplyEmailAddress=PT_UNICODE,0x0103
IMAPPort=PT_LONG,0x0104
IMAPUseSSL=PT_LONG,0x0105
; --- SMTP Account Settings ---
SMTPServer=PT_UNICODE,0x0200
SMTPUseAuth=PT_LONG,0x0203
SMTPAuthMethod=PT_LONG,0x0208
SMTPUserName=PT_UNICODE,0x0204
SMTPUseSPA=PT_LONG,0x0207
ConnectionType=PT_LONG,0x000F
ConnectionOID=PT_UNICODE,0x0010
SMTPPort=PT_LONG,0x0201
SMTPSecureConnection=PT_LONG,0x020A
ServerTimeOut=PT_LONG,0x0209
CheckNewImap=PT_LONG,0x1100
RootFolder=PT_UNICODE,0x1101

[INET_HTTP]
AccountType=HOTMAIL
Account=PT_UNICODE,0x0002
HttpServer=PT_UNICODE,0x0100
UserName=PT_UNICODE,0x0101
Organization=PT_UNICODE,0x0107
UseSPA=PT_LONG,0x0108
TimeOut=PT_LONG,0x0209
Reply=PT_UNICODE,0x0103
EmailAddress=PT_UNICODE,0x000C
FullName=PT_UNICODE,0x000B
Connection Type=PT_LONG,0x000F
ConnectOID=PT_UNICODE,0x0010


Hoffe das Ihr mir helfen könnt.

Content-ID: 110818

Url: https://administrator.de/forum/outlook-2007-konfiguration-ueber-kixart-110818.html

Ausgedruckt am: 23.12.2024 um 04:12 Uhr

JJKix
JJKix 07.04.2009 um 00:52:55 Uhr
Goto Top
Wenn du weißt welche Einstellungen es in der PRF- Datei sind, die so abgeändert werden müssen, dass diese Fragen nicht aufkommen, dann ist es mit der Kix-Funktion WriteProfileString (siehe KixTart-Doku) leicht zu manipulieren.

Wenn du aber auf der Suche nach den korrekten Einstellungen bist, ist es kein Probelm das mit Hilfe von KixTart gelöst werden kann, sondern seitens Outlook bzw. Exchange-Server bzw. ActiveDirectory.
oh2204
oh2204 08.04.2009 um 19:23:20 Uhr
Goto Top
"Wenn du aber auf der Suche nach den korrekten Einstellungen bist, ist es kein Probelm das mit Hilfe von KixTart gelöst werden kann, sondern seitens Outlook bzw. Exchange-Server bzw. ActiveDirectory."

Wo sollte ich da nachschauen?