2013-11-27 58 views
0

Howsit!Powershell:添加管理單元(安裝util管理Cmdts.dll)

我需要一個解決方案,我需要添加一個管理單元 - 並且不能。

我試圖運行對我公司的股權分置點站點過程

因此真正的錯誤:Get-SPSite: 'Get SPSite' is not recognized as the name of a cmdlet, function, script file,..

需要添加一個管理單元來解決這個問題(來自例如3系統的工作:從該網站http://technet.microsoft.com/en-us/library/hh849705(v=wps.620).aspx

我被困在第四命令(不知道哪個installutil選擇或下載): It does not exist/ cannot find the installutil: ManagementCmdlets.dll - 沒有人知道在哪裏可以下載這個

? 0

我嘗試了一個名爲Microsoft.PowerShell.Commands.Management.dll文件但

the installation failed, and the rollback has been performed

PowerShell代碼低於(如果這可以幫助):

PS C:\Users\Gisintern1.PPF> get-pssnapin -registered 
PS C:\Users\Gisintern1.PPF> set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil.exe 
PS C:\Users\Gisintern1.PPF> installutil C:\Dev\Management\ManagementCmdlets.dll 
**Microsoft (R) .NET Framework Installation utility Version 2.0.50727.5420 
Copyright (c) Microsoft Corporation. All rights reserved. 
Exception occurred while initializing the installation: 
System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Dev\Management\ManagementCmdlets.dll' or one of its dependencies. 
The system cannot find the file specified.. 

回答

0

每那個網站,看起來ManagementCmdlets.dll是一個虛構的管理單元,僅供示例用來顯示過程如何工作。

我還沒有嘗試通過PowerShell自己管理SharePoint,但我做了一點挖掘。從它的外觀來看,Get-SPSite管理單元與SharePoint 2010一起安裝,我也會假設它的其他一些版本。在SharePoint正在安裝在我在同一個服務器將嘗試運行:

Add-PsSnapin Microsoft.SharePoint.PowerShell 
Get-SPSite 

或者(和每https://blogs.technet.com/b/heyscriptingguy/archive/2010/09/20/get-started-managing-sharepoint-2010-with-powershell-cmdlets.aspx)有可能是一個「的SharePoint命令行管理程序」可以啓動這似乎加載正確的卡扣(s)自動進入一個正常的PowerShell環境。

希望這兩個想法之一可以幫助你。

相關問題