等待安装过程向前进-Powershell

时间:2020-09-30 14:43:34

标签: powershell ps1

我在脚本上有以下命令,我的问题是该脚本不等待AWSCLI安装来设置aws configure 'parameters'。如何设置参数以等待安装,然后调用以下命令?

Start-Process -Wait -FilePath "${env:programfiles(x86)}\AWS\AWSCLIV2.msi" /quiet 

aws configure set default.region region-1
aws configure set aws_access_key_id 'key'
aws configure set aws_secret_access_key 'key'

输出:

aws : the term 'aws' is not recognize with a cmdlet name

0 个答案:

没有答案
相关问题