메일 즐겨 찾기 폴더에 내 공용 폴더 달력을 표시하는 프로세스를 자동화하는 방법은 무엇입니까?공용 폴더 달력을 자동화하여 메일의 즐겨 찾기 폴더에 표시하는 방법
나는 로그인 스크립트 또는 그룹 정책으로이를 수행하려고했습니다.
Windows Server 2008 R2 및 Windows Server 2003 R2를 실행하는 도메인 컨트롤러에서 Microsoft Exchange Server 2007을 사용하고 있습니다.
모든 워크 스테이션 시스템이 하나의 Outlook 2010 또는 Outlook 2007
이에 검색하는 동안 나는 내가 보여 공용 폴더 달력을 만들 단지 수 있어요 스크립트 아래 찾았지만이 스크립트에 의해 (이미 경로를 수정) 공용 폴더는 좋아하지만 메일 즐겨 찾기 폴더에는 없습니다.
Const olPublicFoldersAllPublicFolders = 18
Dim olkApp, olkSes, olkFolder
Set olkApp = CreateObject("Outlook.Application")
Set olkSes = olkApp.GetNameSpace("MAPI")
'Change the profile name on the next line'
olkSes.Logon "Outlook"
'Change the folder name on the next line. Repeat the next two lines for each folder
you want to add.'
Set olkFolder =
olkSes.GetDefaultFolder(olPublicFoldersAllPublicFolders).Folders("Public
calender").Folders("p cal")
olkFolder.AddToPFFavorites
'Change the folder name on the next line. Repeat the next two lines for each folder
you want to add.'
Set olkFolder = OpenOutlookFolder("Public Folders\Favorites\P cal")
AddFavoriteFolder olkFolder
olkSes.Logoff
Set olkApp = Nothing
Set olkSes = Nothing
Set olkFolder = Nothing
WScript.Quit
Sub AddFavoriteFolder(olkFolder)
' Purpose: Add a folder to Favorite Folders.'
' Written: 5/2/2009'
' Author: BlueDevilFan'
' Outlook: 2007'
Const olModuleMail = 0
Const olFavoriteFoldersGroup = 4
Dim olkPane, olkModule, olkGroup
Set olkPane = olkApp.ActiveExplorer.NavigationPane
Set olkModule = olkPane.Modules.GetNavigationModule(olModuleMail)
Set olkGroup =
olkModule.NavigationGroups.GetDefaultNavigationGroup(olFavoriteFoldersGroup)
olkGroup.NavigationFolders.Add olkFolder
Set olkPane = Nothing
Set olkModule = Nothing
Set olkGroup = Nothing
End Sub
Function OpenOutlookFolder(strFolderPath)
' Purpose: Opens an Outlook folder from a folder path.'
' Written: 4/24/2009'
' Author: BlueDevilFan'
' Outlook: All versions'
Dim arrFolders, varFolder, bolBeyondRoot
On Error Resume Next
If strFolderPath = "" Then
Set OpenOutlookFolder = Nothing
Else
Do While Left(strFolderPath, 1) = "\"
strFolderPath = Right(strFolderPath, Len(strFolderPath) - 1)
Loop
arrFolders = Split(strFolderPath, "\")
For Each varFolder In arrFolders
Select Case bolBeyondRoot
Case False
Set OpenOutlookFolder = olkSes.Folders(varFolder)
bolBeyondRoot = True
Case True
Set OpenOutlookFolder = OpenOutlookFolder.Folders(varFolder)
End Select
If Err.Number <> 0 Then
Set OpenOutlookFolder = Nothing
Exit For
End If
Next
End If
On Error GoTo 0
End Function
어떻게하는지 알아 냈습니까? –
브렛 (Brett)은 즐겨 찾기 폴더에만 메일 폴더를 추가 할 수있는 것처럼 보입니다. 캘린더는 PF 즐겨 찾기에 추가 될 때 캘린더 모듈에 표시됩니다. 그것에 대한 초기 토론은 여기를 참고하십시오 : http://www.pcreview.co.uk/forums/adding-public-folder-calendar-favorite-folders-t3778320.html – AardVark71