GET-MAILBOX * | where { $_.PrimarySMTPAddress.Domain -eq ‘kennethdalbjerg.dk’ }
Tag Archives: exchange
Roles to be installed before Exchange 2010 SP1
Start powershell and run import-module servermanager
Then run
Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart
Active Sync – Unexpected Exchange mailbox Server (Exchange 2003)
Unexpected Exchange mailbox Server error: Server: [server01.XXXX.XX] User: [[email protected]] HTTP status code: [503]. Verify that the Exchange mailbox Server is working correctly.
If you got this error, please follow this steps:
- Try disabling the firewall
- Reset Exchange Folder in IIS – http://support.microsoft.com/kb/883380 (Dont remove exchange-oma)
- Remove Exchange-oma and create it again http://support.microsoft.com/kb/817379
- Remove IPV6 from the server
Give all users access to all mailbox calendar
foreach ($Mailbox in (Get-Mailbox -ResultSize Unlimited)) { Add-MailboxFolderPermission -identity “$($Mailbox.Name):\calendar” -AccessRights Author -User default }
Exchange Room Mailbox automatic deletes calendar appointments
If you have created a room mailbox, and want to create appointments directly in the calendar of the room mailbox, then you need to:
- Enable the user in Active Directory
- Set the password of the user
- Log on to a workstation with that user
- Start Outlook
- On the Tools menu, click Options, and then click Calendar Options.
- Under Advanced options, click Resource Scheduling.
- Select the Automatically accept meeting requests and process cancellations check box.
- You can then select the following options:
- Automatically decline conflicting meeting requests
- Automatically decline recurring meeting requests
Then it will not automatic delete calendar appointments anymore.
Powershell – Export user/mailboxes to CSV file
get-mailbox | select name, alias, samaccountname, RecipientType, RecipientTypeDetails, displayname | export-csv C:\ITA\usersexport.csv -encoding unicode
Powershell – Import users from CSV file
import-csv user.csv | foreach-object {
echo $_.Displayname
New-Mailbox -name ( $_.Name)`
-Alias $_.Alias`
-SamAccountName $_.SamAccountName`
-RecipientType $_.RecipientType`
-RecipientTypeDetails $_.RecipientTypeDetails`
-Displayname $_.Displayname`
}
Powershell – Show all users in DistributionGroup
$File = “C:\ita\groupslog.txt”
$Mailboxes = Get-DistributionGroup | select name , alias ,displayname,EmailAddresses
$Mailboxes | ForEach {
echo “”
echo “”
echo $_.name
Get-DistributionGroupMember -id $_.alias
} | out-File $File
Powershell – Show witch users have access to mailboxes
$file = “C:\ita\fulladgang.txt”
$AllUsers = get-mailbox | select SamAccountName, name, alias
$AllUsers | Foreach {
echo “”
echo “”
echo “”
echo $_.name
get-mailboxfolderpermission -identity $Mailbox
} | out-File $File
Powershell get all users with title = “Interneservices” – Search on title on get-user
get-user -filter {Title -eq “InterneServices”} | select name