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
复制代码 http://powershell.com/cs/blogs/tips/archive/2013/11/06/finding-default-outlook-profile.aspx |