Automate First time User Profile Configuration Wizard using Powershell RRS feed

  • Question

  • I am creating a package where the requirement is that outlook needs to launched at-least once before the user-level actions are performed.

    To cater for situations where outlook is not launched before in the profile, I use the following Powershell code to launch and close outlook before user level actions run in Active Setup script.

    $OutlookApp = new-object -com Outlook.Application
    $namespace = $OutlookApp.GetNamespace("MAPI")
    $folder = $namespace.GetDefaultFolder("olFolderInbox")
    $explorer = $folder.GetExplorer()
    Start-Sleep -Seconds 60
    Kill -processName OUTLOOK* -Force -ErrorAction SilentlyContinue

    The problem that I am facing is that it launches outlook but it gets stuck on the Welcome Wizard to configure user profile in Outlook for the first time. Is there anyway I can automate the first time outlook launch user profile setup wizard?


    Thanks for your help.

    • Moved by Bill_Stewart Tuesday, December 5, 2017 3:16 PM Off-topic
    Friday, October 27, 2017 1:12 AM

All replies