VMware Cloud Community
TheVMinator
Expert
Expert
Jump to solution

PowerCLI scheduled script and authentication

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.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
TheVMinator
Expert
Expert
Jump to solution

ok thanks!

0 Kudos