Onderstaand script word gebruikt om Outlook Web Access bij je internet instellingen / programma's toe te voegen.
Echter worden de instellingen niet in het register weg geschreven.
Ook kan ik niks vinden waarop het script spaak loopt.
Script wordt uitgevoerd op WIndows XP
Echter worden de instellingen niet in het register weg geschreven.
Ook kan ik niks vinden waarop het script spaak loopt.
Script wordt uitgevoerd op WIndows XP
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| <package>
<Job id="OutlookWebAccessAsMailClient">
<script language="VBScript">
' DESCRIPTION: This Windows Script file adds all necessary registry keys
' to add OWA as selectable mail client in IE
'
' Copyright (c) Siegfried Weber. All rights reserved.
' http://groups.yahho.com/group/mscollaboration
'
'------------------------------------------------------------------------
' Initialize error handling
Option Explicit
On Error Resume Next
Dim objWSHShell ' As WScript.Shell
Dim strInput ' As String
' Ask for FQDN to Exchange Server
strInput = InputBox("Please enter the Exchange Server full qualified domain name (like: <http://era01mx001.era.local>)")
' Check if server FQDN has been supplied
If Trim(strInput) <> "" Then
' Put registry settings to make OWA a mail client one can choose in IE
Set objWSHShell = WScript.CreateObject("WScript.Shell")
With objWSHShell
.RegWrite "HKLM\SOFTWARE\Clients\Mail\Outlook Web Access\", "Microsoft Outlook Web Access", "REG SZ"
.RegWrite "HKLM\SOFTWARE\Clients\Mail\Outlook Web Access\Protocols\mailto\", "URL:MailTo Protocol", "REG SZ"
.RegWrite "HKLM\SOFTWARE\Clients\Mail\Outlook Web Access\Protocols\mailto\URL Protocol", "", "REG SZ"
.RegWrite "HKLM\SOFTWARE\Clients\Mail\Outlook Web Access\Protocols\mailto\EditFlags", &H00000002, "REG BINARY"
.RegWrite "HKLM\SOFTWARE\Clients\Mail\Outlook Web Access\Protocols\mailto\DefaultIcon\", "%ProgramFiles%\Outlook Express\msimn.exe,-2", "REG EXPAND SZ"
.RegWrite "HKLM\SOFTWARE\Clients\Mail\Outlook Web Access\shell\open\command\", """%ProgramFiles%\Internet Explorer\iexplore.exe"" " & strInput & "/exchange/", "REG EXPAND SZ"
' For Exchange 2003 use the following line to pull up the built-in OWA 2003 new mail Web form
.RegWrite "HKLM\SOFTWARE\Clients\Mail\Outlook Web Access\Protocols\mailto\shell\open\command\", """%ProgramFiles%\Internet Explorer\iexplore.exe"" " & strInput & "/exchange/%USERNAME%/drafts/?cmd=new&mailtoaddr=%1", "REG EXPAND SZ"
End With
' Tidy up
Set objWSHShell = Nothing
Else
WScript.Echo "Please enter a valid Exchange Server full qualified domain name"
End If
' Say good bye
WScript.Echo "Thank you for using this script."
</script>
</Job>
</package> |