Exchange: Unable to update Mailbox SD in the DS.

Posted in Active Directory, exchange2007 on August 10, 2009 by aandersen

On Exchange 2007 -> Application log

We  had some warnings:

Unable to update Mailbox SD in the DS. Mailbox Guid: 6f719d5c-7cbb-4482-9ea3-210d8b16b47e.

Error Code 0x8004010f

This is clearly related to a user, with GUID:

6f719d5c-7cbb-4482-9ea3-210d8b16b47e

but who was this user ?

Thanks to Joe Richards’s “Adfind (freeware) its very easy to look up.

Download Adfind from:

http://joeware.net/freetools/tools/adfind/index.htm

We ran:

adfind -gc -b “” -binenc -f ” msExchMailboxGUID={{GUID:6f719d5c-7cbb-4482-9ea3-210d8b16b47e}}” -dn

And it returned the username – very easy.

Microsoft has also written about this tool:

http://support.microsoft.com/kb/555433

Restarting Apple Remote Desktop (ARD) via SSH

Posted in OSX on May 25, 2009 by aandersen

If ARD hangs while you use it – its handy do know you can restart ARD via the terminal (or SSH)

with the following command:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent

See Also:

http://support.apple.com/kb/HT2370

Must have OSX Software

Posted in OSX on March 30, 2009 by aandersen

This is my list of free “must have ” software on a OSX machine.

Browser:

Firefox , with Xmarks – (New name, used to be Foxmarks) backup of your bookmarks.

I also use the “ServerSpy“, “ColorfulTabs“, “User Agent Switcher“  – AddOns

Office: OpenOffice I the past I used Neooffice, But OO seems a bit faster - to me.
Instant Messaging: Adrium  A Cool client with support for 'everything' (I need, MSN,GMail,Facebook,IChat)

DVD ripper: Handbrake
SoundEdit:  Audacity Soundedit made easy.

Video:      Perian Quicktime Plugin - plays many format in Quicktime

VLC Plays almost every format..

Other "System Tools"

Cyberduck Nice FTP-Client

JollysFastVNC VNC Client with AppleRemoteDesktop (ARD) Support

JellyfiSSH SSH Client – Does the stuff…

The Unarchiver , Unpacker – Support almost every format.

BatChmod , Easy way to set folder privileges/rights.

GdocsUploader , Drop upload to Google Docs.

WakeOnLan , I use it to list all devices (airport,Mac &PC) on the network (probably going to use Nmap instead)

X29-Renamer , Convert “long filenames” (afp copy to Windows share)

Export E-mail addresses from Active Directory

Posted in Active Directory, Windows on March 11, 2009 by aandersen

A easy way to export the all E-mail addresses from your Active Directory to a CSV or TXT fil is:

Open "Active Directory Users and Computers"

Find the OU you want to export.

In the “View” Menu  choose “Add/Remove Columns..”

Choose ” E-Mail Address” from the left panel and click “Add

Right click on your OU and choose “Export List” choose destination and format.

Control OSX from Windows

Posted in Apple OSX, Windows on February 11, 2009 by aandersen

If you want to control a Mac OSX machine -FROM a PC

TightVNC will do the job.

On the Mac – remember to turn on VNC sharing under:

System pref.-> Sharing -> Apple Remote Desktop -> Premissions -> VNC-Viewers may…..

(Here you could also turn on password protection – preferable)

Apple OSX 10.5.6 update and AppleIntelCPUPowerManagement.kext issue

Posted in OSX on January 7, 2009 by aandersen

When updating a MacBookPro to. 10.5.6 we saw – only at one Mac –

a odd problem which relates to extension called:

AppleIntelCPUPowerManagement.kext
(“lives” in /System/Library/Extensions/)

The problem causes the Mac to crash/reboot at startup.

The solution is to put the affected mac in target-disk(firewire) mode  and
Via a firewire cable connect it to an other Mac – from here
Re-apply the 10.5.6 combo updater.

OR

In firewire mode remove the

AppleIntelCPUPowerManagement.kext

File, the mac will  then be able to start– but you will have no sound.

Disconnected Mailboxes under Exchange 2007

Posted in Windows, exchange2007 with tags on November 28, 2008 by aandersen

On exchange 2007.
When you disable a user – the account should automatically go to the ”Disconnected Mailbox”.
But if this does not happen try running the following command(s) in PowerShell

Get-mailboxdatabase

(this will show the location of all Mailboxdatabases on the server)

Use this location in:

clean-mailboxdatabase ”MyExchangeServer\MyCompany\Mailboxname”

And the “missing” mailboxes will show up in ”Disconnected Mailbox”

Setting mail send / recive size on Exchange 2007

Posted in exchange2007 on August 27, 2008 by aandersen

To change the maximum send / recive size on a Exchange 2007 you have to change the “

Send/receiveconnector if you use SP1 the default size would be 10mb.

I wanted to allow   to revice 30mb to change this start the ‘Management Shell’.

At my Exchange server its located:

“start” ->”programs”->”microsoft exchange server 2007″ -> “Exchange Management Shell”

, it looks like a Unix shell or a ordinary Windows Terminal.

To get the Receiveconnecter, write:

get-receiveconnector | select identity,maxmessagesize

This will show you the present maximum and the Identitys on your Exchangeserver
My setup looks like this:

Identity                                           MaxMessageSize
--------                                           --------------
MY-EXCHANGE2007\Default MY-EXCHANGE2007            10MB
MY-EXCHANGE2007\Client MY-EXCHANGE2007             10MB
MY-EXCHANGE2007\INET                               22MB
MY-EXCHANGE2007\Smtp_Relay                         10MB

You will probably see different Identity’s, the one I need to change is called “INET”

Set-ReciveConnector -identity INET -MaxMessageSize 30MB

To change the send mail maximum use:

Get-Sendconnector | Select Identity, MaxmessageSize
Set-Sendconnector -identity <Identity From Above> -MaxMessageSize 30MB

Deleting records from a Filemaker database via Applescript.

Posted in Applescript, OSX on August 14, 2008 by aandersen

Case:

A Filemaker  database where used on a Intranet (running on OSX) for

booking meetingroom and other AV equment.

A user had by mistake made a booking until 2029 (about 30.000 records) – this where causing Filemaker

to crawl..(dont know how he managed this in the first place).

Knowing nothing about Filemaker, is where kind of a “fun” case.

In filemaker you delete a record by choosing “delete Record” in the ‘Records menu’  or by pressing “Opt+E” – knowbody want to delete about 20000 records by pressing those keys so first i thought of a Automater task, but after a bit of searching I turned to Applescript – I knew some Applescripting from my past.

First script are just counting the records in a Filemaker DB.

tell application “FileMaker Pro”

    tell database “NameOfTheDB.fp5″

    count records 

    end tell

end tell

Running this script is revealed 44543 records.

Next script should find and delete all record made by the user “abc”.

 

tell application “FileMaker Pro”

    tell database “NameOfTheDB.fp5″

    delete (every record whose cell “Text” contains “abc”)

    end tell

end tell

 

This took about 10min and then I ran script 1 again,

it revealed about 14000 records left and Filemaker was back on track.

Lacie 2Big Network

Posted in Windows with tags on August 5, 2008 by aandersen

I wanted a NAS device for backup and ended up buying a Lacie 2big Network (2×500GB)device,

with a 10/100/1000 Ethernet port -  what is particular nice about this device is its very easy to setup

via web or IPconfigurator (PC,Linux&OSX). Lacie 2big supports protocols as smb,afp,bonjour,ftp,http.

The user / group interface is also very easy..

I am using the 2 disks as RAID-1=500GB (mirror) via the “safe-100″ option on the device

instead of the “big” option (RAID-0 =1TB).