VMware Cloud Community
AutomationStat1
Contributor
Contributor
Jump to solution

Hiding Credentials for vCenter Scripts

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
Jump to solution

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
Jump to solution

0 Kudos
LucD
Leadership
Leadership
Jump to solution

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