Officedocs-deployoffice: Failed to download Office 2019 installation file

Created on 14 Nov 2018  ·  4Comments  ·  Source: MicrosoftDocs/OfficeDocs-DeployOffice

PS D:\> cd D:111
PS D:111> setup /download configuration.xml
The Setup command may only be used inside a Describe block.
所在位置 C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.0\Functions\Describe.ps1:125 字符: 9

  • throw "The $CommandName command may only be used inside a Des ...
  • ~~~~~~~~~~~~~

    • CategoryInfo : OperationStopped: (The Setup comma...Describe block.:String) [], RuntimeException

    • FullyQualifiedErrorId : The Setup command may only be used inside a Describe block.


文档详细信息

请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。

Most helpful comment

@SumVanan -- you need to run the Office Deployment Tool (setup.exe) from a Windows command prompt, not a PowerShell command prompt.

All 4 comments

@SumVanan -- you need to run the Office Deployment Tool (setup.exe) from a Windows command prompt, not a PowerShell command prompt.

I am using Windows Command Prompt as Administrator and this is what I get. 'setup' is not recognized as an internal or external command, operable program or batch file.

@creativetech1 first you need downloaded de 'Officedeploymenttoll (ODT)" and extract on folder, so you 'find' a Setup.exe .. After run Prompt as Administrator on this folder.... setup /download configuration.xml

The Setup command may only be used inside a Describe block.

FIX: Use the .\setup notation if you are getting this error while in powershell.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasonnerothin picture jasonnerothin  ·  4Comments

mgrollejr picture mgrollejr  ·  4Comments

AsaIt32 picture AsaIt32  ·  4Comments

EG-AASI picture EG-AASI  ·  4Comments

bmansf picture bmansf  ·  4Comments