作为序言,我制作的这个涉及创建 2007 MS Exchange 邮箱的脚本在一两个星期前工作过,突然给了我一个错误(如下):
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin
给出的错误:
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.
我已经结束了,找不到任何帮助。该命令get-PsSnapins -registered
没有给我任何东西。我做了一个干净的 Windows 7 安装,做了所有的 Windows 更新,我能想到的一切。我尝试在没有该管理单元的情况下运行它,但 powershell 无法将其识别为 cmdlet。没有想法和选择
我是网络、机器上的管理员,并以管理员身份运行 powershell。执行策略设置为无限制