Exchange 2003 and powershell

Have you ever need a list of yours mailbox and the size of it. You can find this in system manager, but you cannot export this list.
With Powershell you can get a list that you example can import in excel.
First you need to download and install powershell, you can download powershell from here:
http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx

After you have downloaded and install it, type this command in the powershell

get-wmiobject -class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName servername | select-object MailboxDisplayName,TotalItems,Size

Change “servername” to you servers name example exchange01

Exchange 2003 and 75GB datastore

With exchange 2003 SP2, the database store in Exchange is increase to 75GB, this is not setup automatic.
You have to change something in the registry database.

To set the size of the private mail store

  1. Click Start, click Run, type regedit, and then click OK. Regedit starts.
  2. Browse to HKEY_LOCAL_MACHINE/ System/ CurrentControlSet/ Services/ MSExchangeIS/ ServerName, where ServerName is the name of your server that is running Windows SBS.
  3. To modify the private mail store size, right-click the Private-GUID folder, click New, and then click DWORD Value.
  4. Type Database Size Limit in GB, and then press ENTER.
  5. Right-click the new entry and then click Modify.
  6. In the Base field, click Decimal. In the Value data text box, type a number between 1 and 75. This is the new maximum size of your database in gigabytes.
  7. Click OK.
  8. Close Regedit.

Next you maybe want to get a warning when the database is almost at the limit, this can be setup this way:
To set the size of the buffer

  1. Click Start, click Run, type regedit, and then click OK. Regedit starts.
  2. Browse to HKEY_LOCAL_MACHINE/ System/ CurrentControlSet/ Services/ MSExchangeIS/ ServerName, where ServerName is the name of your server that is running Windows SBS.
  3. To set a buffer size for the private mail store, right-click the Private-GUID folder, click New, and then click DWORD Value.
  4. Type Database Size Buffer in Percentage, and press ENTER.
  5. Right-click the new value and then click Modify.
  6. In the Base field, click Decimal. In the Value data text box, type a number between 1 and 100. A value of 10, for example, results in warning events being logged when the database has 10 percent capacity remaining.
  7. Click OK.
  8. Close Regedit.

Arcserve R12 missing Exchange document level

After you have installed Arcserve R12, you maybe missing Exchange document level on you Exchange 2007. This may caused by you don’t have install ”Microsoft Messaging API and Collaboration Data Objects 1.2.1”, this can be downloaded here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=E17E7F31-079A-43A9-BFF2-0A110307611E&displaylang=en

After you have install this, you only need to restart the two CA services on the Exchange server:
CA ARCserve Discovery Service
CA ARCserve Universal Agent

Problems moving a user from Exchange 2003 to Exchange 2007 (Problems two)

We have some troubles moving user from one exchange 2003 to exchange 2007. We found that “Authenticated Users” was not in the user group Users, on the Exchange 2003 machine.
If the Exchange 2003 is a domain controller the Authenticated Users still need to be member of the user group.

The error we was getting was this:
XXX
Failed
Error:
Error was found for XX because: Error occurred in the step: Preparing mailbox to be moved. Failed to copy basic mailbox information with error: The Microsoft Exchange Information Store service could not find the specified object., error code: -1056749241
Exchange Management Shell command attempted:
‘141fc3d8-c100-46e6-b402-fc653b26afe4′ | move-mailbox -TargetDatabase ‘CN=Mailbox Database,CN=First Storage Group,CN=InformationStore,CN=XXXX,CN=Servers,CN=Exchange Administrative Group (XXXXX),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=XXXX,DC=net’
Elapsed Time: 00:00:10

Problems move a account from exchange 2003 to exchange 2007

I was upgrading a Exchange 2003 to a Exchange 2007, but have some troubles move some accounts to my Exchange 2007 server, it fault whitch this error:
Summary: 1 item(s). 0 succeeded, 1 failed.
Elapsed time: 00:00:10

XXX
Failed

Error:
Error was found for XX because: Error occurred in the step: Preparing mailbox to be moved. Failed to copy basic mailbox information with error: The Microsoft Exchange Information Store service could not find the specified object., error code: -1056749241

Exchange Management Shell command attempted:
‘141fc3d8-c100-46e6-b402-fc653b26afe4’ | move-mailbox -TargetDatabase ‘CN=Mailbox Database,CN=First Storage Group,CN=InformationStore,CN=XXXX,CN=Servers,CN=Exchange Administrative Group (XXXXX),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=XXXX,DC=net’

Elapsed Time: 00:00:10

Some search on the internet and I found out that is using the address list to move a account. And that this users has been set to be hide from Exchange Address list, so removing this checkmark and now the user can be moved.

Debian packages cpio failes to be updated

If you have some troubles upgrading cpio, it returns this error:

Preparing to replace cpio 2.6-18 (using …/cpio_2.6-18.1+etch1_i386.deb) …
Unpacking replacement cpio …
Replaced by files in installed package tar …
dpkg: error processing /var/cache/apt/archives/cpio_2.6-18.1+etch1_i386.deb (–u npack):
unable to create `./usr/share/locale/ko/LC_MESSAGES/cpio.mo’: No such file or d irectory
Errors were encountered while processing:
/var/cache/apt/archives/cpio_2.6-18.1+etch1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Try to run this commands:

mkdir -p /usr/share/locale/ko/LC_MESSAGES
mkdir -p /usr/share/locale/gl/LC_MESSAGES
mkdir -p /usr/share/locale/ru/LC_MESSAGES
mkdir -p /usr/share/locale/tr/LC_MESSAGES
mkdir -p /usr/share/locale/sv/LC_MESSAGES
mkdir -p /usr/share/locale/zh_CN/LC_MESSAGES
mkdir -p /usr/share/locale/da/LC_MESSAGES
mkdir -p /usr/share/locale/nl/LC_MESSAGES

And then the update should be working just fine

Arcserve R12 and Exchange

If you have follow my guide howto to backup exchange from Arcserve R12, but still have problems with backup the exchange server.
Try to search in global address book, in outlook if you can find the user this way, if you can’t that the problems.
In our setup we got this problem on our Hosted Exchange server, the problems was resolve with adding a user and putting it in our own global address book.

Så blev der skrevet under

Så fik vi skrevet under på vores lille gård, på Skolevangsvej 110 i Hammel. Det er et nedlagt landejendom, vi overtager dog først gården d. 1/3-2009, men vi glæder os allerede nu helt vild til at kommer derud.

Selvom Heidi ikke er gået helt med på alle betingerlserne endnu, ender det nok med at den bliver døbt Qvistgaard..

Så i kan godt begynde at kalde mig Gårdejer Dalbjerg.

Jeg har nogle billeder liggende fra stedet, kontakt mig for at se dem.