Powershell – Export AD users to CSV

########################################################### # Evert-Jan van de Keuken # IT-Solved | www.it-solved.nl ########################################################### $path = split-path -parent $MyInvocation.MyCommand.Definition #Create a variable for the date stamp in the log file $LogDate = get-date -f yyyyMMddhhmm #Define CSV and log file location variables #they have to be on the same location as the script $csvfile = $path + “\ALLADUsers_$logDate.csv” …read more →

Exchange – locations protocol logs

By default, the protocol log files exist in the following locations: Receive connector protocol log files for the Transport service on Mailbox servers %ExchangeInstallPath%TransportRoles\Logs\Hub\ProtocolLog\SmtpReceive Receive connector protocol log files for the Mailbox Transport service on Mailbox servers %ExchangeInstallPath%TransportRoles\Logs\Mailbox\ProtocolLog\SmtpReceive Receive connector protocol log files for the Front End Transport service on Client Access servers %ExchangeInstallPath%TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpReceive Send …read more →

Exchange – remove and add folder permissions

#IT-Solved #april 2016 #V3 20160405 automapping uit bij zetten full access import-module Activedirectory Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn; Set-ADServerSettings -ViewEntireForest $true cls $all_rights = @() $mailboxzoek = $null $mailboxzoek = read-host “Mailboxnaam” #Mailbox ophalen if ($($mailboxzoek) -eq “”) { Write-Host “Geen mailbox gekozen!” -ForegroundColor Red exit } try { $mailboxzoek =Get-Mailbox $($mailboxzoek) -ErrorAction Stop } Catch { Write-Host …read more →

Exchange – Convert mailboxes to type regular

Get-mailbox | Where-Object {$_.RecipientTypeDetails -eq “%type%”} | set-mailbox -type regular Get-Mailbox -Identity MarketingDept1 | Format-List RecipientTypeDetails get-mailbox | Where-Object {$_.RecipientType -eq “UserMailbox”} | Format-List alias,RecipientTypeDetails| out-file c:\windows\temp\mbtype.log