2013-04-22 55 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