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
⚠ 请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。
@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.
Most helpful comment
@SumVanan -- you need to run the Office Deployment Tool (setup.exe) from a Windows command prompt, not a PowerShell command prompt.