Outlook /importPRF stalls with dialog if the MailboxName in the profile is prefix of another

view full story

http://serverfault.com – I am using a powershell script to make some exporting from various Exchange mailboxes. The main point consists of creating a profile for each affected mailbox and invoke outlook.exe /importPRF customprofile.prf and so on. The main logic and everything works fine, but one problem occurs: If usernames are prefixes of one another (say I have "Foo" and "Foobar") then the profile for the shorter ("Foo") interrupts the automated script and instead a dialog window pops up whether I want to have "Foo" or "Foobar". The name enters into the profile file customprofile.prf in form of MailboxName lines [S (HowTos)