I wanted to set up a script that would basically start the first Outlook 2010 for the first time and accept the default values. We have an exchange server that is currently running, which populates the first time fields with user user information. Basically, I wanted to write a script in powershell that would accept the default values ββthat AD populated and completed the installation. After the installation is complete, Outlook will configure a copy of the user's mailbox, and all their mail will be transferred to the computer.
I try and try in PowerShell to get defaults to no avail. Is there any possible way to associate a powershell script with an appearance and accept its dialog boxes?
I have not written any code for this, except for a small initialization of the script in powershell. I am also new to PowerShell, so I know enough to create a com object and call this object so that it can open Outlook, but this is as far as I can go.
Can someone please help me? Here is what I have, but it really doesn't work so well:
$mail = new-object -com Outlook.Application $namespace = $mail.GetNamespace("MAPI") $folder = $namespace.GetDefaultFolder("olFolderInbox") $explorer = $folder.GetExplorer() $explorer.Display()
source share