目前以下是我启动 VMware vSphere PowerCLI 命令提示符的路径。我希望sample.ps1
使用批处理文件自动运行我的脚本。如何sample.ps1
纳入此路径并创建批处理文件?
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -psc "C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -noe -c ". \"C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\""