0

我正在尝试通过 PowerShell 在 O365 中为我的公司创建新的房间分配列表。

我想在 MS Teams 中列出这些房间,以便我可以通过 Teams 客户端进行预订

根据我所学到的,这些步骤非常简单

  1. 创建以房间邮箱为成员的新通讯组列表

New-DistributionGroup -Name "ShRooms" -Members room1@contoso.com,room2contoso.com

  1. 将组设置为 RoomList

Set-DistributionGroup -Identity "ShRooms" -RoomList

但我得到的不是一些积极的结果,而是:

A parameter cannot be found that matches parameter name 'RoomList'.
    + CategoryInfo          : InvalidArgument: (:) [Set-DistributionGroup], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Set-DistributionGroup
    + PSComputerName        : outlook.office365.com

我试过了

(GET-Command Set-DistributionGroup).parameters

并得到

Key                                    Value
---                                    -----
WindowsEmailAddress                    System.Management.Automation.ParameterMetadata
RejectMessagesFromSendersOrMembers     System.Management.Automation.ParameterMetadata
AcceptMessagesOnlyFromDLMembers        System.Management.Automation.ParameterMetadata
CustomAttribute10                      System.Management.Automation.ParameterMetadata
ModerationEnabled                      System.Management.Automation.ParameterMetadata
ExtensionCustomAttribute4              System.Management.Automation.ParameterMetadata
Identity                               System.Management.Automation.ParameterMetadata
CustomAttribute8                       System.Management.Automation.ParameterMetadata
DisplayName                            System.Management.Automation.ParameterMetadata
Confirm                                System.Management.Automation.ParameterMetadata
CustomAttribute3                       System.Management.Automation.ParameterMetadata
Name                                   System.Management.Automation.ParameterMetadata
CustomAttribute5                       System.Management.Automation.ParameterMetadata
ReportToManagerEnabled                 System.Management.Automation.ParameterMetadata
CustomAttribute7                       System.Management.Automation.ParameterMetadata
BypassModerationFromSendersOrMembers   System.Management.Automation.ParameterMetadata
PipelineVariable                       System.Management.Automation.ParameterMetadata
AcceptMessagesOnlyFromSendersOrMembers System.Management.Automation.ParameterMetadata
ExtensionCustomAttribute2              System.Management.Automation.ParameterMetadata
RejectMessagesFrom                     System.Management.Automation.ParameterMetadata
WarningVariable                        System.Management.Automation.ParameterMetadata
CustomAttribute6                       System.Management.Automation.ParameterMetadata
SendOofMessageToOriginatorEnabled      System.Management.Automation.ParameterMetadata
CustomAttribute1                       System.Management.Automation.ParameterMetadata
ErrorAction                            System.Management.Automation.ParameterMetadata
Verbose                                System.Management.Automation.ParameterMetadata
ExtensionCustomAttribute3              System.Management.Automation.ParameterMetadata
CustomAttribute9                       System.Management.Automation.ParameterMetadata
ErrorVariable                          System.Management.Automation.ParameterMetadata
ModeratedBy                            System.Management.Automation.ParameterMetadata
CustomAttribute14                      System.Management.Automation.ParameterMetadata
MailTip                                System.Management.Automation.ParameterMetadata
Debug                                  System.Management.Automation.ParameterMetadata
SimpleDisplayName                      System.Management.Automation.ParameterMetadata
PrimarySmtpAddress                     System.Management.Automation.ParameterMetadata
AcceptMessagesOnlyFrom                 System.Management.Automation.ParameterMetadata
MailTipTranslations                    System.Management.Automation.ParameterMetadata
CustomAttribute15                      System.Management.Automation.ParameterMetadata
WhatIf                                 System.Management.Automation.ParameterMetadata
ReportToOriginatorEnabled              System.Management.Automation.ParameterMetadata
OutVariable                            System.Management.Automation.ParameterMetadata
ExtensionCustomAttribute1              System.Management.Automation.ParameterMetadata
RejectMessagesFromDLMembers            System.Management.Automation.ParameterMetadata
ExtensionCustomAttribute5              System.Management.Automation.ParameterMetadata
MemberJoinRestriction                  System.Management.Automation.ParameterMetadata
CustomAttribute4                       System.Management.Automation.ParameterMetadata
InformationVariable                    System.Management.Automation.ParameterMetadata
Alias                                  System.Management.Automation.ParameterMetadata
ManagedBy                              System.Management.Automation.ParameterMetadata
GrantSendOnBehalfTo                    System.Management.Automation.ParameterMetadata
CustomAttribute2                       System.Management.Automation.ParameterMetadata
CustomAttribute13                      System.Management.Automation.ParameterMetadata
SendModerationNotifications            System.Management.Automation.ParameterMetadata
OutBuffer                              System.Management.Automation.ParameterMetadata
CustomAttribute11                      System.Management.Automation.ParameterMetadata
EmailAddresses                         System.Management.Automation.ParameterMetadata
InformationAction                      System.Management.Automation.ParameterMetadata
CustomAttribute12                      System.Management.Automation.ParameterMetadata
WarningAction                          System.Management.Automation.ParameterMetadata
AsJob                                  System.Management.Automation.ParameterMetadata

所以这可能意味着确实不-RoomList存在参数,但根据我在文档中了解到的,应该是(我们在欧洲运行我们的公司 O365,没有特殊设置)

希望有人能告诉我如何更改该分发列表。谢谢

4

0 回答 0