2013-04-22 51 views
0

我试图使用Windows PowerShell 2.0连接到Office 365。我不能运行下面的命令,我得到一个错误:Windows PowerShell错误

import-module MSOnline
connect-msolservice

没有连接cmdlet的工作,我无法连接到我的办公室  365实例。我已经在两台独立的计算机上尝试了这一点,并且在两种情况下都会出现相同的错误。一旦计算机运行Windows   XP,另一台运行Windows 2008 R2。

一些背景。我已经安装了PowerShell的模块可以从这里:

Microsoft Online Services Module for Windows PowerShell 32-bit 
Microsoft Online Services Module for Windows PowerShell 64-bit 

我装从这里SIA(微软在线服务模块的Windows PowerShell):

Microsoft Online Services Sign-In Assistant 32-bit 
Microsoft Online Services Sign-In Assistant 64-bit 

我怎样才能解决这个问题呢?

+0

什么是错误? – Nico 2013-04-23 05:29:06

回答

0

如果Import-Module正在工作,则表示cmdlet已导入到PowerShell。试试这个:

Import-Module -MsonlineExtented -Force