Answer the question
In order to leave comments, you need to log in
How to make automatic copying from one calendar to another in Exchange 2010?
Good afternoon, dear colleagues. I'm completely off track - can anyone help?
You need to automatically set up one-way copying of events from one mailbox calendar [email protected] to the mailbox calendar [email protected] using the PoSh script or something else.
Do not offer sharing using Outlook tools, it is not suitable.
Answer the question
In order to leave comments, you need to log in
EWS:
https://docs.microsoft.com/ru-ru/exchange/client-d...
here is a description of the basic things, but from c# to powershell you yourself will have to translate
by analogy with, for example, sending a letter
Import-Module "C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll"
#[timezoneinfo]::Utc необходим чтобы при загрузке сообщений не получать ошибку "The specified time zone isn't valid."
$EWS = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService 'Exchange2013',([timezoneinfo]::Utc)
$EWS.AutodiscoverUrl('[email protected]')
$email = [Microsoft.Exchange.WebServices.Data.EmailMessage]($EWS)
[void]$email.ToRecipients.Add('[email protected]')
$email.Subject = 'test mail'
$email.Body = 'This is the first email I''ve sent by using the EWS Managed API'
# Enable XML trace
$EWS.TraceEnabled = $true
$EWS.TraceFlags = 'All'
$email.Send()
#$email.SendAndSaveCopy()
# поиск
$inbox = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($EWS,[Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox)
$mailitems = $inbox.FindItems(10)
$mailitems | ForEach {$_.Load()}
$mailitems | Select Sender,Subject,Body
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question