Blog 地址:https://blog.51cto.com/13969817shell
不少状况,Office 365 Admin 须要使用PowerShell执行一些相似Mailbox相关的管理设置,当执行导入PSSession命令时,会弹出以下错误提示:ide
默认状况下执行策略是“Restricted”,你没有正确的配置Powershell 执行策略。3d
能够经过下面命令解决问题:Set-ExecutionPolicy RemoteSignedrest
点击连接了解更多关于 Set-ExecutionPolicy 设置介绍blog
回车后,在弹出的Execution Policy Change对话框中,点击“yes to all”get
再次输入 Import-PSSession $Session 命令,导入成功,以下图所示:it
小编遇到的问题以及解决方案,整理分享给有须要的人,但愿能帮助你们。io