Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus
Citrix Certified

Microsoft Exchange 2010 – Ahsay restore to recovery mailbox database / storage group.

Friday, September 9th, 2011 Posted in Ahsay | No Comments »

Ahsay have no support for native restore to Exchange recovery group, but here is a workaround of that problems. First create a recovery storagegroup New-MailboxDatabase -Recovery -Name RDB1 -Server exch2010 -EdbFilePath "F:\Backup\Restore\Data\rdb1.edb" -LogFolderPath "F:\Backup\Restore\Log" Where RDB1 is the name of the Recovery database ...

Get all mailboxes that have this domain in there primary email address

Wednesday, May 11th, 2011 Posted in Exchange | No Comments »

GET-MAILBOX * | where { $_.PrimarySMTPAddress.Domain -eq 'kennethdalbjerg.dk' }

Roles to be installed before Exchange 2010 SP1

Friday, April 29th, 2011 Posted in Exchange, Windows | 1 Comment »

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)

Tuesday, February 15th, 2011 Posted in Exchange, Windows | No Comments »

Unexpected Exchange mailbox Server error: Server: [server01.XXXX.XX] User: [XXX@XXXX.XX] 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 ...

Give all users access to all mailbox calendar

Monday, February 14th, 2011 Posted in Exchange, Powershell | No Comments »

foreach ($Mailbox in (Get-Mailbox -ResultSize Unlimited)) { Add-MailboxFolderPermission -identity "$($Mailbox.Name):\calendar" -AccessRights Author -User default }

Exchange Room Mailbox automatic deletes calendar appointments

Monday, February 14th, 2011 Posted in Exchange | No Comments »

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 ...

Powershell – Export user/mailboxes to CSV file

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

get-mailbox | select name, alias, samaccountname, RecipientType, RecipientTypeDetails, displayname | export-csv C:\ITA\usersexport.csv -encoding unicode

Powershell – Import users from CSV file

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

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

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

$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

Thursday, January 27th, 2011 Posted in Powershell | No Comments »

$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