使用Powershell将.msg文件导入Outlook [英] Import .msg files into Outlook using Powershell

查看:293
本文介绍了使用Powershell将.msg文件导入Outlook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含.msg文件列表的文件夹。 
$


我想使用Powershell导入所有这些联系人(即.msg文件) ),到Outlook。
$


非常感谢,

I have a folder with a list of .msg files. 

I would like to use Powershell to import all these contacts (which are .msg files), to Outlook.

Thank you very much,

推荐答案

Hello Amine,

Hello Amine,

在shell中运行MSG文件时,默认情况下它们在Outlook中打开。由于只能同时运行一个Outlook实例,因此您可以处理

NewInspector
事件在Outlook中移动并将项目保存到您需要的任何位置。作为解决方法,您可以尝试使用第三方组件(例如,Redemption)。

When you run MSG files in the shell they are opened in Outlook by default. Due to the fact that only one Outlook instance can be run at the same time you can handle the NewInspector event in Outlook and move and save the item wherever you need. As a workaround you may try to use third-party components (for example, Redemption).

 另一种方法是在代码中读取MSG。您可以在  [MS-OXMSG]:Outlook
项目(.msg)文件格式
 部分MSDN库。 

 Another way is to read MSG in the code. You may find the .msg file format described in depth in the [MS-OXMSG]: Outlook Item (.msg) File Format section of MSDN library. 

PS我建议您阅读  没有MSG For You ! 文章在处理MSG之前。

P.S. I would recommend reading the No MSG For You! article before dealing with MSGs.


这篇关于使用Powershell将.msg文件导入Outlook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆