Difference between revisions of "Virtual Machine Script Extracts and Examples"

Jump to navigation Jump to search
m
Added Google Ad
(Added "Set VM Tools to Update Automatically on VM Reboot")
m (Added Google Ad)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#widget:Widget:GoogleAdSenseSkyscraper}}
= Reporting =
= Reporting =
== VM's with Host and Cluster List ==
== VM's with Host and Cluster List ==
Line 236: Line 237:
The script borrows heavily from http://get-admin.com/blog/how-to/vmware/powercli-get-every-vm-added-to-vcenter-in-the-last-30-days/, which is where the real genius of the script comes from.
The script borrows heavily from http://get-admin.com/blog/how-to/vmware/powercli-get-every-vm-added-to-vcenter-in-the-last-30-days/, which is where the real genius of the script comes from.


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 the note under the script for more info, plus a CSV with a list of vCentres in (one column with a heading of "vc").


<source lang="Powershell">
<source lang="Powershell">
Line 428: Line 429:
Stop-transcript
Stop-transcript
</source>
</source>
{{PowerShell_Credentials_Files}}


= Maintenance =
= Maintenance =
Line 682: Line 685:
Stop-Transcript
Stop-Transcript
</source>
</source>
{{PowerShell_Credentials_Files}}


== Migrate VMs Between vCentres ==
== Migrate VMs Between vCentres ==
Line 787: Line 791:
Stop-Transcript
Stop-Transcript
</source>
</source>
{{PowerShell_Credentials_Files}}


== Set VM Tools to Update Automatically on VM Reboot ==
== Set VM Tools to Update Automatically on VM Reboot ==

Navigation menu