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 / 问题 / 901833
Accepted
SimonS
SimonS
Asked: 2018-03-16 06:43:41 +0800 CST2018-03-16 06:43:41 +0800 CST 2018-03-16 06:43:41 +0800 CST

为什么 Get-MailboxFolder 返回“邮箱不可用”?

  • 772

我想在 PowerShell 中获取我邮箱的文件夹列表。

由于我们有 ExchangeOnline,我像这样连接到我的交换服务器:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange `
           -ConnectionUri https://ps.outlook.com/powershell/ -Credential $cred `
           -Authentication Basic -AllowRedirection
Import-PSSession $Session

现在到我的问题,Get-MailboxFolderPermission工作,但Get-MailboxFolder总是返回The mailbox [email protected] is not available。为什么?

PS Z:\Powershell-Scripts\Functions\Exchangeonline> Get-MailboxFolderPermission "[email protected]:\Inbox"

FolderName           User                 AccessRights                                                                                                 SharingPermissionFlags                                                                                     
----------           ----                 ------------                                                                                                 ----------------------                                                                                     
Inbox                Standard             {None}                                                                                                                                                                                                                  
Inbox                Anonym               {None}                                                                                                                                                                                                                  



PS Z:\Powershell-Scripts\Functions\Exchangeonline> get-mailboxfolder "[email protected]:\Inbox"
Das angegebene Postfach "[email protected]" ist nicht vorhanden.
    + CategoryInfo          : NotSpecified: (:) [Get-MailboxFolder], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=AM4PR0302MB2626,RequestId=a6939056-15df-4b45-a10b-8b1cbb4a9207,TimeStamp=15.03.2018 14:31:00] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 9DD76FE4,Microsoft.Exchange.Management.StoreTasks.GetMailboxFolder
    + PSComputerName        : ps.outlook.com

我在 PSVersion 5.1.14393.2068

编辑:它也不适用于 5.1.16299.251 和 4.0

powershell
  • 1 1 个回答
  • 2356 Views

1 个回答

  • Voted
  1. Best Answer
    shinjijai
    2018-03-16T10:15:13+08:002018-03-16T10:15:13+08:00

    在命令上运行 Get-Help 会给我们这个:

    “使用 Get-MailboxFolder cmdlet 查看您自己邮箱中的文件夹。管理员无法使用此 cmdlet 查看其他邮箱中的文件夹(该 cmdlet 仅适用于 MyBaseOptions 用户角色)。”

    似乎它正在做的正是它的构建。

    • 0

相关问题

  • 资源锁和电源外壳

  • 脚本 - 如何断开远程桌面会话?

  • 如何限制向通讯组发送到外部地址?

  • Powershell对值与数组的作用不同?

  • Windows Powershell Vim 键绑定

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