PowerShell 2.0 を使った Backup Exec のコマンドラインインストールで、引数の前後に引用符を使うと失敗する

Article: 100036214
Last Published: 2017-07-13
Ratings: 0 0
Product(s): Backup Exec

問題

PowerShell 2.0 を使って Backup Exec をコマンドラインでインストールする場合、引数の前後に引用符を使うとスイッチが正確に解析されない可能性があります。  

エラーメッセージ

The string sequence "/ is in the command and may cause the install to fail. Add a space between the switch and the opening quote for the path or upgrade to PowerShell 3.0 or greater and use the stop parsing symbol --%. 

原因

PowerShell 2.0 は、コマンドラインの引数内の引用符を解析してエスケープ処理を行います。 

解決方法

次のどちらかの操作を行います。

  • PowerShell 3.0 以降にアップグレードして、「 setup. exe 」を入力した後に、コマンドラインの引数にパラメータ「 --% 」を追加します。

    例 :

    --%/S:
  • PowerShell 2.0 からアップグレードしない場合は、スイッチと冒頭の引用符の間にスペースを追加します。

    例 :

    setup.exe /SLF: "\\FileShare\Path with spaces\filename.slf"

 


Was this content helpful?