PowerShell can access COM objects like Outlook Application. These two simple lines return the current Outlook profile:
$outlookApplication = New-Object -ComObject Outlook.Application $outlookApplication.Application.DefaultProfileName
PowerShell can access COM objects like Outlook Application. These two simple lines return the current Outlook profile:
$outlookApplication = New-Object -ComObject Outlook.Application $outlookApplication.Application.DefaultProfileName