Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus
Citrix Certified

Get mailbox sizes and export them to CSV/Excel

Thursday, September 20th, 2012 Posted in Andet, Exchange, Powershell | No Comments »

if you want to export all you mailboxes sizes to CSV/Excel, you can run this command in you powershell: [crayon-534f78601683e794545694/]

Change autodiscover URL (EWS URL / OAB URL / ECP URL / Activesync URL) – Exchange 2010

Thursday, July 26th, 2012 Posted in Exchange, Powershell | No Comments »

If you want to change Autodiscover / EWS / OAB / OWA / ECP / Activesync Url, this is how it works [crayon-534f786019479459945913/] Or if this is a single server installation you can do it like this: [crayon-534f786019487696628970/]

Lost trust on my Exchange 2010 after revert to a older snapshot

Friday, May 18th, 2012 Posted in Exchange, Windows | No Comments »

I was returing to an older snapshot of my Exchange servers. But when i want to logon to the Exchange server, it came with "Trust relationship has been lost with domain controller". Normally you just rejoin the domain, but this is ...

Exchange 2010, powershell full access and send-as permission

Monday, May 14th, 2012 Posted in Exchange | No Comments »

To get a CSV file, from you exchange with full access and send as permission, from all you mailboxes run these commands: Full Access Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', ...

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

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 }

Backup of Exchange 2010 database level and document level with Ahsay

Friday, February 4th, 2011 Posted in Ahsay, Exchange, Windows | 4 Comments »

Installation of the Ashay Client: Download the Ahsay Client: http://eval.ahsay.com/obs/download/obm-win.exe After the installation please apply the latest hotfix. http://download.ahsay.com/support/hot-fixes/55/obm-win-hotfix.zip Put the content of the hotfix into the folder: c:\program files\ahsayobm\ Disable Continous Backup services Database level: To backup the database level, just select Exchange Database Level, and ...

Powershell – Export user/mailboxes to CSV file

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

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