Set-SPPowerPointServiceApplication コマンドを使用するときにパラメーターの引数がありません

元の KB 番号: 982964

現象

次のような状況で問題が発生します。

  • PowerPoint Services をサーバーにインストールする Microsoft Office Online プログラムを実行します。 このサーバーは、Microsoft SharePoint Server 2010 または Microsoft SharePoint Foundation 2010を実行しています。

  • サーバーで SharePoint 2010 管理シェルを起動します。 これを行うには、[ スタート] をクリックし、[ すべてのプログラム] をクリックし、[ Microsoft SharePoint 2010] をクリックし、[ SharePoint 2010 管理シェル] をクリックします。

  • コマンドに次のいずれかのパラメーター Set-SPPowerPointServiceApplication を使用するコマンドをコンソール プロンプトで入力します。

    • DisableBinaryScan
    • EnableSandboxedEditing
    • EnableSandboxedViewing
    • EnableViewing97To2003Formats
    • EnableViewingOpenXmlFormats

たとえば、次のコマンドを入力して、PowerPoint Services を実行しているサーバーで PowerPoint Online OpenXML 形式のドキュメントを表示できるようにします。

Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableViewingOpenXmlFormats

この場合に、次のようなエラー メッセージが表示されます。

Set-SPPowerPointServiceApplication: パラメーター 'EnableViewingOpenXmlFormats' の引数がありません。 'System.Boolean' 型のパラメーターを指定して、もう一度やり直してください。
行:1 文字:101
+ Get-SPPowerPointServiceApplication |Set-SPPowerPointServiceApplication -EnableViewingOpenXmlFormats <<<<
+ CategoryInfo : InvalidArgument: (:) [Set-SPPowerPointServiceApplication], ParameterBindingException
+ 完全修飾ErrorId: MissingArgument,Microsoft.Office.Server.Powerpoint.SharePoint.PowerShell.SetSPPowerPointServiceApplication

原因

この問題は、コマンドのパラメーター Set-SPPowerPointServiceApplication に値に 対して$true$falseなどの別のブール型 (Boolean) の引数が必要であるために発生します。

解決方法

この問題を解決するには、 コマンドを使用するときに必要な引数を Set-SPPowerPointServiceApplication 指定します。

たとえば、次のコマンドを入力して、PowerPoint Services を実行しているサーバーで PowerPoint Online OpenXML 形式のドキュメントを表示できるようにします。

Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableViewingOpenXmlFormats:$true

詳細

コマンドの Set-SPPowerPointServiceApplication 詳細については、「 Set-SPPowerPointServiceApplication」を参照してください。