Home / Technical FAQ’s
$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

}
Categories: Exchange, Office365, PowerShell
Set-MailboxAutoReplyConfiguration -Identity ALIAS -AutoReplyState Enabled -InternalMessage "Internal Message" -ExternalMessage "Externam Message"
Categories: Exchange, Office365, PowerShell
get-mailbox -resultsize unlimited | where {$_.primarysmtpaddress -like "*@contoso.com"} | Measure-Object
Set-Mailbox -Identity "Desmond Miles" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress "[email protected]"
Categories: Exchange, PowerShell
Set-CalendarProcessing -Identity "Conference Room" -AllowConflicts $true
Categories: Exchange, PowerShell
Get-MigrationUser -BatchId BATCH | where {$_.Status -ne 'Completed'} | Get-MigrationUserStatistics
Categories: Exchange, Office365, PowerShell
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
Get-Mailbox -Identity "ALIAS" | Get-InboxRule
Categories: Exchange, PowerShell
Get-Mailbox -Filter {$_.EmailAddresses -eq "[email protected]"}
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
Categories: Exchange, Office365, PowerShell
Get-VM -ComputerName "Hyperv01" | Get-VMNetworkAdapter
Categories: Azure, PowerShell
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-Mailbox "Desmond Miles" -HiddenFromAddressListsEnabled $true
Categories: Exchange, PowerShell
Set-Mailbox "Meeting Room 311" -Type Room
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 "ALIAS" -EmailAddresses @{add= '[email protected]'}
Categories: Exchange, PowerShell
Set-Mailbox "John.Doe" -UseDatabaseQuotaDefaults $false -IssueWarningQuota 9.5GB -ProhibitSendQuota 10GB -ProhibitSendReceiveQuota 15GB
Categories: Exchange, PowerShell