Difference between revisions of "Script Extracts and Examples (PowerCLI)"

Jump to navigation Jump to search
m
→‎VM's Recently Created: Added border around script
(→‎ESX Datastore to LUN Mapping (ESX4): Added border around script)
m (→‎VM's Recently Created: Added border around script)
Line 347: Line 347:
I use a username and password file for credentials, see [[#Store_Password_Securely|Store Password Securely]] for more info, plus a CSV with a list of vCentres in (one column with a heading of "vc").
I use a username and password file for credentials, see [[#Store_Password_Securely|Store Password Securely]] for more info, plus a CSV with a list of vCentres in (one column with a heading of "vc").


<source lang="Powershell" enclose="div">
<source lang="Powershell">
$UserFile = "User.fil"
$UserFile = "User.fil"
$PassFile = "Pass.fil"                          # Encrypted file to store password in
$PassFile = "Pass.fil"                          # Encrypted file to store password in

Navigation menu