I have a powerCLI script I want to schedule but I want to do it by calling it with vRO. However, I don't want to store my password in the PowerCLI script - I'd like the script to authenticate to vCenter Server and for example list the running VMs once a day. How can I call this script from vRO without storing the password in the script itself? vRO and the PowerShell host are on separate VMs.
There is the PowerCLI builtin CredentialStore (see the New-VICredentialStoreItem).
An alternative is the method described in Store encrypted password in a PowerShell script
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
There is the PowerCLI builtin CredentialStore (see the New-VICredentialStoreItem).
An alternative is the method described in Store encrypted password in a PowerShell script
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
ok thanks!