Thursday, August 22, 2013

Powershell and Outlook : Find your default Outlook Profile name using Powershell.

 

Hi,

Good Afternoon everyone.

Today while working on my “OutlookTools” , one question  strike in my mind.

The question was “How to find out default profile name for the Outlook?”.

Finding the default profile for outlook is a bit handy for scripts. for example you are creating a Outlook profile using some sort of scripts and the name of the Outlook profile is similar across the company, If some user complained about outlook, we may need to check which Outlook Profile he/she is using.

This outlook profile is just a name of the profile.

To find out your default outlook profile name. just run the below two lines of script code.

$outlookApplication = New-Object -ComObject 'Outlook.Application'

 

2

 

$outlookApplication.Application.DefaultProfileName

3 

You can see above that our default outlook profile name is “Office365”

let’s verified it.

4

Bingo :) . it is correct.

I hope you will like it.

Thanks

2 comments:

  1. Is there any way to modify this attribute? I would like to toggle/switch between two Profiles with one little PowerShell Script.

    ReplyDelete
  2. Hi,

    Could you please help me with creating new outlook profile using powershell at the earliest.

    Thanks and regards,
    Divs

    ReplyDelete

Note: Only a member of this blog may post a comment.