AutomationStat1
Contributor
Contributor

Hiding Credentials for vCenter Scripts

Jump to solution

What is a good way to hide IPs / credentials when using scripts to log into vCenter and accomplish automated tasks? For example, I have to use the following to connect:

Connect-VIServer 192.168.10.10 -user Administrator@vsphere.local -password MYpassword

Is there a better way to hide this by doing something like pulling it from a txt with locked permissions?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

There are a number of techniques described in the 2-part series, starting with Secure Password with PowerShell: Encrypting Credentials – Part 1

PowerCLI has it's own implementation of storing credentials (with the servername as a key), see New-VICredentialStoreItem


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
a_p_
Leadership
Leadership
0 Kudos
LucD
Leadership
Leadership

There are a number of techniques described in the 2-part series, starting with Secure Password with PowerShell: Encrypting Credentials – Part 1

PowerCLI has it's own implementation of storing credentials (with the servername as a key), see New-VICredentialStoreItem


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos