$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session foreach($user in Get-Mailbox -RecipientTypeDetails UserMailbox) { $cal = $user.alias+":\Calendar" Set-MailboxFolderPermission -Identity $cal -User Default -AccessRights LimitedDetails }
Set-MailboxAutoReplyConfiguration -Identity ALIAS -AutoReplyState Enabled -InternalMessage "Internal Message" -ExternalMessage "Externam Message"
Set-Mailbox -Identity "Desmond Miles" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress "[email protected]"
Categories:
Exchange,
PowerShell
Get-MigrationUser -BatchId BATCH | where {$_.Status -ne 'Completed'} | Get-MigrationUserStatistics
New-MoveRequest -Identity [email protected] -TargetDatabase SERVER\Path\MDB01 -BadItemLimit 2000 –AcceptLargeDataLoss
Categories:
Exchange,
PowerShell
\temp=Get-MailboxStatistics -Identity [email protected] -IncludeMoveReport $temp.MoveHistory[0] | Export-CSV C:\MoveReport.csv
Categories:
Exchange,
PowerShell
Add-MailboxPermission -Identity "MAILBOX" -user "Mailbox Alias or Mailboxgroup Alias" -AccessRights FullAccess -InheritanceType All
Categories:
Exchange,
PowerShell
$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session
Get-AdfsCertificate ` | Select-Object CertificateType, Thumbprint ` | Export-Csv -Path C:\temp\adfsthumbs.csv -Encoding ASCII -NoTypeInformation
Categories:
ADFS,
PowerShell
Get-OWAVirtualDirectory -AdPropertiesOnly | Select Server,InternalUrl,ExternalUrl Get-ECPVirtualDirectory -AdPropertiesOnly | Select Server,InternalUrl,ExternalUrl
Categories:
Exchange,
PowerShell
Set-MailboxAutoReplyConfiguration -Identity "John Doe" -AutoReplyState Enabled ` -InternalMessage "I'm currently on leave until 23th April. Please contact Desmond Miles on x23043 for urgent matters." ` -ExternalMessage "I'm currently on leave. Please contact our Administration Department on +41 58 411 77 11 for further assistance."
Categories:
Exchange,
PowerShell
New-MoveRequest -Identity IDENTITY -Remote -RemoteHostName hybridmrs.contoso.com -TargetDeliveryDomain "contoso.com" -RemoteCredential $ONPREMCREDS -BadItemLimit 1000
Categories:
Exchange,
PowerShell
New-AcceptedDomain -DomainName Contoso.com -DomainType Authoritative -Name 'Contoso Ltd.'
Categories:
Exchange,
PowerShell
Get-MessageTrackingLog -Server SERVER -Start "MM/DD/YYYY hh:mm.SS" -End "MM/DD/YYYY hh:mm.SS" -sender "SMTP address"
Categories:
Exchange,
PowerShell
Get-DistributionGroupMember "[email protected]" | where {$_.Name -eq 'Name Surename'}
Categories:
Exchange,
PowerShell
New-MailboxExportRequest -Mailbox ALIAS -Filepath '\\\e$\Restores\.pst'
Categories:
Exchange,
PowerShell
Get-Mailbox -ResultSize Unlimited | where-object {$_.haspicture -eq $false} | select-object Name, UserPrincipalName, HasPicture | format-list
Categories:
Exchange,
PowerShell
Set-Mailbox "John.Doe" -UseDatabaseQuotaDefaults $false -IssueWarningQuota 9.5GB -ProhibitSendQuota 10GB -ProhibitSendReceiveQuota 15GB
Categories:
Exchange,
PowerShell