windows - 调用 Microsoft Exchange 命令
问题描述
Microsoft Exchange 最近的一个补丁改变了人们对 Microsoft Exchange 服务器使用 Invoke-Command 的方式。
Invoke-Command -Session $ExOSessionVariable -ScriptBlock {Get-RemoteMailbox -Identity UserName ; Get-User -Identity UserName}
正在返回:
The syntax is not supported by this runspace. This can occur if the runspace is in no-language mode.
Microsoft 建议使用 .AddScript() 或 .AddCommand()。有人可以告诉我如何将这个命令与 invoke-Command 一起使用吗?
任何帮助表示赞赏。
迈克尔
解决方案
推荐阅读
- php - 取消 MySQL InnoDB 中的事务而不是提交或回滚
- python - 从 Python 中用括号括起来的字符串中删除唯一字符
- kubernetes - Kubernetes 手动备份
- c# - 如何在值之后仅获取数组最接近的值
- sql-server - SQL Server:获取出现 ProductID 的所有行
- bash - 我的 $PATH 中有未在 .bashrc 文件中列出的可执行文件。他们来自哪里?
- python - 删除 python pandas 列中的特定字符串
- javascript - 无法设置 Laravel+VueJS 向我的模板呈现任何内容
- json - 如何为 JSON 提出对 RFC(s) 的一些修订以考虑评论?
- embedded - 连接 16*2 键盘和 LCD 与 atmega32