1 2 3 4 5 6 7 8 9 10 |
$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 } |
1 |
Set-MailboxAutoReplyConfiguration -Identity ALIAS -AutoReplyState Enabled -InternalMessage "Internal Message" -ExternalMessage "Externam Message" |
1 |
get-mailbox -resultsize unlimited | where {$_.primarysmtpaddress -like "*@contoso.com"} | Measure-Object |
1 |
Set-Mailbox -Identity "Desmond Miles" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress "Desmond.Miles@contoso.com" |
Categories: Exchange, PowerShell
1 |
Set-CalendarProcessing -Identity "Conference Room" -AllowConflicts $true |
Categories: Exchange, PowerShell
1 |
Get-MigrationUser -BatchId BATCH | where {$_.Status -ne 'Completed'} | Get-MigrationUserStatistics |
1 |
New-MoveRequest -Identity ALIAS@contoso.com -TargetDatabase SERVER\Path\MDB01 -BadItemLimit 2000 –AcceptLargeDataLoss |
Categories: Exchange, PowerShell
1 2 |
\temp=Get-MailboxStatistics -Identity ALIAS@contoso.com -IncludeMoveReport $temp.MoveHistory[0] | Export-CSV C:\MoveReport.csv |
Categories: Exchange, PowerShell
1 |
Add-MailboxPermission -Identity "MAILBOX" -user "Mailbox Alias or Mailboxgroup Alias" -AccessRights FullAccess -InheritanceType All |
Categories: Exchange, PowerShell
1 |
Get-Mailbox -Identity "ALIAS" | Get-InboxRule |
Categories: Exchange, PowerShell
1 |
Get-Mailbox -Filter {$_.EmailAddresses -eq "email@yourdomain.com"} |
Categories: Exchange, PowerShell
1 2 3 |
$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session |
1 |
Get-VM -ComputerName "Hyperv01" | Get-VMNetworkAdapter |
Categories: Azure, PowerShell
1 2 3 |
Get-AdfsCertificate ` | Select-Object CertificateType, Thumbprint ` | Export-Csv -Path C:\temp\adfsthumbs.csv -Encoding ASCII -NoTypeInformation |
Categories: ADFS, PowerShell
1 2 |
Get-OWAVirtualDirectory -AdPropertiesOnly | Select Server,InternalUrl,ExternalUrl Get-ECPVirtualDirectory -AdPropertiesOnly | Select Server,InternalUrl,ExternalUrl |
Categories: Exchange, PowerShell
1 |
Set-Mailbox "Desmond Miles" -HiddenFromAddressListsEnabled $true |
Categories: Exchange, PowerShell
1 2 3 |
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
1 |
New-MoveRequest -Identity IDENTITY -Remote -RemoteHostName hybridmrs.contoso.com -TargetDeliveryDomain "contoso.com" -RemoteCredential $ONPREMCREDS -BadItemLimit 1000 |
Categories: Exchange, PowerShell
1 |
New-AcceptedDomain -DomainName Contoso.com -DomainType Authoritative -Name 'Contoso Ltd.' |
Categories: Exchange, PowerShell
1 |
Get-MessageTrackingLog -Server SERVER -Start "MM/DD/YYYY hh:mm.SS" -End "MM/DD/YYYY hh:mm.SS" -sender "SMTP address" |
Categories: Exchange, PowerShell
1 |
Get-DistributionGroupMember "DistributionGroup@contoso.com" | where {$_.Name -eq 'Name Surename'} |
Categories: Exchange, PowerShell
1 |
New-MailboxExportRequest -Mailbox ALIAS -Filepath '\\<server>\e$\Restores\<alias>.pst' |
Categories: Exchange, PowerShell
1 |
Get-Mailbox -ResultSize Unlimited | where-object {$_.haspicture -eq $false} | select-object Name, UserPrincipalName, HasPicture | format-list |
Categories: Exchange, PowerShell
1 |
Set-Mailbox "ALIAS" -EmailAddresses @{add= 'john.doe@contoso.com'} |
Categories: Exchange, PowerShell
1 |
Set-Mailbox "John.Doe" -UseDatabaseQuotaDefaults $false -IssueWarningQuota 9.5GB -ProhibitSendQuota 10GB -ProhibitSendReceiveQuota 15GB |
Categories: Exchange, PowerShell