Difference between revisions of "ESX Script Extracts and Examples"

Jump to navigation Jump to search
m
→‎Daily ESX Up/Down Check: Added PowerShell_Credentials_Files template
m (typo fix)
m (→‎Daily ESX Up/Down Check: Added PowerShell_Credentials_Files template)
Line 288: Line 288:
== Daily ESX Up/Down Check ==
== Daily ESX Up/Down Check ==
Simple script that runs every morning just before I start work to provide a basic sanity check email to glance through over the first tea of the day.
Simple script that runs every morning just before I start work to provide a basic sanity check email to glance through over the first tea of the day.
See the following page for details on how to [[Power_Shell#Store_Password_Securely|Store Password Securely]] (as I have done, loaded though the files specified by <code>$UserFile</code> and <code>$PassFile</code> in the script below).


<source lang="Powershell">
<source lang="Powershell">
Line 424: Line 422:
}
}
</source>
</source>
{{PowerShell_Credentials_Files}}


[[Category:PowerCLI]]
[[Category:PowerCLI]]
[[Category:ESX]]
[[Category:ESX]]

Navigation menu