【发布时间】:2019-05-28 14:39:06
【问题描述】:
我正在编写一个 PowerShell 脚本来共享日历。 该脚本有效,但问题是我无法编辑权限,默认值为“仅可用性”。我想给出“详细信息”。
附: - 无法使用本机 Exchange cmdlet。
Add-Type -Assembly "Microsoft.Office.Interop.Outlook"
$Outlook = New-Object -ComObject Outlook.Application
$namespace = $Outlook.GetNameSpace("MAPI")
$Calendar = $Outlook.Session.Session.Folders.Item(1)
$Calendar = $Calendar.Folders.Item("Calendar")
$CalendarShare = $namespace.CreateSharingItem($Calendar)
$CalendarShare.To = "somemail@mail.com"
$CalendarShare.Send()
【问题讨论】:
标签: powershell outlook com