AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 622883
Accepted
mfinni
mfinni
Asked: 2014-08-21 12:57:54 +0800 CST2014-08-21 12:57:54 +0800 CST 2014-08-21 12:57:54 +0800 CST

New-ManagedContentSettings - 在 Exchange 2010 下无法正常工作

  • 772

我有一个客户正在将一个业务部门剥离到一个新的 AD 森林、Exchange 组织等。

我们正在使用 Quest 工具来迁移用户和邮箱。但是,我必须建立新的基础设施来匹配旧的基础设施。

在旧版本中,我们使用托管文件夹邮箱策略来限制(或允许)保留。他们从 Exchange 2007 开始,从未升级到保留策略;那好吧。

因此,在旧环境中,当您使用 2007 服务器定义新的托管内容设置时,您可以从 MessageClass 的下拉列表中选择“电子邮件”。这是一个显示名称;因此,实际的 MessageClass 值是:

MessageClass : IPM.Note;IPM.Note.AS/400 移动通知表单 v1.0;IPM.Note.Delayed;IPM.Note.Exchange.ActiveSync.Report;IPM.Note.JournalReport.Msg;IPM.Note.JournalReport。 Tnef;IPM.Note.Microsoft.Missed.Voice;IPM.Note.Rules.OofTemplate.Microsoft;IPM.Note.Rules.ReplyTemplate.Microsoft;IPM.Note.Secure.Sign;IPM.Note.SMIME;IPM.Note。 SMIME.MultipartSigned;IPM.Note.StorageQuotaWarning;IPM.Note.StorageQuotaWarning.Warning;IPM.Notification.Meeting.Forward;IPM.Outlook.Recall;IPM.Recall.Report.Success;IPM.Schedule.Meeting.*;报告。 IPM.Note.NDR

如果我接受它并尝试在我的新环境中将其修改为 Ex2010 的新 cmdlet,这就是我得到的

New-ManagedContentSettings -Name "Delete Messages older then 90 days" -FolderName "Entire Mailbox" -RetentionEnabled $True -AgeLimitForRetention 90 -TriggerForRetention WhenDelivered -RetentionAction DeleteAndAllowRecovery -MessageClass "IPM.Note","IPM.Note.AS/400MoveNotificationFormv1.0","IPM.Note.Delayed","IPM.Note.Exchange.ActiveSync.Report","IPM.Note.JournalReport.Msg","IPM.Note.JournalReport.Tnef","IPM.Note.Microsoft.Missed.Voice","IPM.Note.Rules.OofTemplate.Microsoft","IPM.Note.Rules.ReplyTemplate.Microsoft","IPM.Note.Secure.Sign","IPM.Note.SMIME","IPM.Note.SMIME.MultipartSigned","IPM.Note.StorageQuotaWarning","IPM.Note.StorageQuotaWarning.Warning","IPM.Notification.Meeting.Forward","IPM.Outlook.Recall","IPM.Recall.Report.Success","IPM.Schedule.Meeting.*","REPORT.IPM.Note.NDR"  -whatif

调用命令:无法将参数“MessageClass”绑定到目标。异常设置“MessageClass”:“属性的长度太长。最大长度为 255,提供的值的长度为 518。” 在 C:\Users\MFinnigan.sa\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\pfexcas02.fve.ad.5ssl.com\pfexcas02.fve.ad .5ssl.com.psm1:28204 char:29 + $scriptCmd = { & <<<< $script:InvokeCommand ` + CategoryInfo : WriteError: (:) [New-ManagedContentSettings], ParameterBindingException + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.SystemConfigurationTasks.NewManaged ContentSettings

因此,配置对象可以存储所有这些乱七八糟的东西,但我无法通过 cmdlet 将其放入来创建对象。迷人的。

有任何想法吗?

exchange-2010
  • 2 2 个回答
  • 448 Views

2 个回答

  • Voted
  1. Best Answer
    mfinni
    2014-08-21T13:03:50+08:002014-08-21T13:03:50+08:00

    哇。答案既明智又丑陋。我把讨厌的东西放在一个变量中,然后将它传递给 cmdlet。我不是一个盲目抨击微软的人,我知道他们希望人们在大约 4 年前停止使用托管文件夹,但到底是什么。

    它比我考虑的其他解决方案要好,后者安装 Ex2007 管理工具(或可能是 Ex2007 服务器)只是为了让 GUI 在 2007 Exchange 管理控制台中执行此操作。

    $class = "IPM.Note;IPM.Note.AS/400 Move Notification Form v1.0;IPM.Note.Delayed;IPM.Note.Exchange.ActiveSync.Report;IPM.Note.JournalReport.Msg;IPM.Note.JournalReport.Tnef;IPM.Note.Microsoft.Missed.Voice;IPM.Note.Rules.OofTemplate.Microsoft;IPM.Note.Rules.ReplyTemplate.Microsoft;IPM.Note.Secure.Sign;IPM.Note.SMIME;IPM.Note.SMIME.MultipartSigned;IPM.Note.StorageQuotaWarning;IPM.Note.StorageQuotaWarning.Warning;IPM.Notification.Meeting.Forward;IPM.Outlook.Recall;IPM.Recall.Report.Success;IPM.Schedule.Meeting.*;REPORT.IPM.Note.NDR"
    
    New-ManagedContentSettings  -Name "Delete Messages older then 90 days" -FolderName "Entire Mailbox" -RetentionEnabled $True -AgeLimitForRetention 90 -TriggerForRetention WhenDelivered -RetentionAction DeleteAndAllowRecovery -MessageClass $class 
    
    • 2
  2. David V
    2014-08-21T20:11:29+08:002014-08-21T20:11:29+08:00

    Mfinni 将它推入变量的工作可能是最好的方法,特别是如果有任何机会在其他脚本/保留策略中重用它。但是,如果只是减少长度,您还应该能够使用以下内容。

    New-ManagedContentSettings -Name "Delete Messages older than 90 days" -FolderName "Entire Mailbox" -RententionEndabled $True -AgeLimitForRetention 90 -TriggerForRetention WhenDelivered -RetentionAction DeleteAndAllowRecovery -MessageClass "IPM.Note.*","IPM.Notification.Meeting.Forward","IPM.Outlook.Recall","IPM.Recall.Report.Success","IPM.Schedule.Meeting.*","REPORT.IPM.Note.NDR"
    
    • 1

相关问题

  • 防止多宿主服务器上的第二个 IP 在启用 AD 的 DNS 中注册

  • 从托管在 DC 上的 2003 迁移到 Exchange 2010

  • 如何解决 Exchange 2010 EMC 中的“用户未分配给任何管理角色”错误?

  • 运行群集 Exchange 环境需要哪些 VMWare 软件

  • 备份 Exchange 2010

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve