This powershell snippet will tell you which mailbox is actively forwarding email, in what method (dual delivery or pure forwarding), to which email address and if the corresponding contact still exists and is active.
#Module name: findForwarderDetails
#Author: Jos Lieben (OGD)
#Date: 01-04-2016
#Description: this snippet will discover all active forwarders in your organization, and will print the original mailbox, target contact and target address and forwarding method
$output = @()
$mailboxes = Get-Mailbox -ResultSize Unlimited | Where {$_.ForwardingAddress -ne $Null}
foreach ($mailbox in $mailboxes){
$obj = New-Object PSObject
$obj | Add-Member NoteProperty mailboxName($mailbox.DisplayName)
if($mailbox.DeliverToMailboxAndForward){
$obj | Add-Member NoteProperty forwardingMode("Dual delivery")
}else{
$obj | Add-Member NoteProperty forwardingMode("Forward Only")
}
try{
$contact = Get-MailContact -Identity $mailbox.ForwardingAddress.DistinguishedName -ErrorAction Stop
$obj | Add-Member NoteProperty forwardingToName($contact.DisplayName)
$obj | Add-Member NoteProperty forwardingToEmail($contact.ExternalEmailAddress)
}catch{
$obj | Add-Member NoteProperty forwardingToName("CONTACT DOES NOT EXIST OR IS DISABLED")
$obj | Add-Member NoteProperty forwardingToEmail("CONTACT DOES NOT EXIST OR IS DISABLED")
}
$output += $obj
}
Write-Output $output
When you are moving from a traditional homedirectory based environment to Onedrive for Business, O365Migrator is the best free tool out there to assist you.
O365Migrator will provision, authorize, clean up and upload. It is everything you need to move from homedirectories to Onedrive for Business in one simple free tool.
So, recently a customer installed the Intune client in an image, as my previous post details, causing the client to enter a bricked state.
Reinstallation of the client can fix this, but we wanted minimum user interaction as a large number of machines was already distributed.
For those who remember Winrar, it is a fantastic ZIP tool that can create a self-extracting archive (.EXE) which auto-self elevates (admin rights) and can automatically start a file from the archive after extraction.
Include the Intune setup file and the certificate Microsoft includes, and this script (as .bat), and your Intune installation will be ‘cleaned up’. Note that you may see some file protection dialogs.
If you want to deploy the Intune Client using a (golden/generalized) image with System Center Configuration Manager or any other tool, make sure you haven’t already installed the Intune Client on that machine and follow the correct procedure.
The Intune Client generates a machine specific certificate in the Personal Store of the machine. This certificate is only valid for that machine. If you then base your image on this machine, all installations using that image will fail, Intune will report error 0x80070005 when trying to update. The full log of Updates.log in c:\Program Files\Microsoft\OnlineManagement\Logs will look like this below log.
EDIT: if you want to ‘reset’ / ‘fix’ the Intune Client with a script / automatically, read here