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

Jump to navigation Jump to search
m
→‎VM's Recently Created: Corrected info/note on credential files
m (→‎Maintenance: Added Google Ads into content)
m (→‎VM's Recently Created: Corrected info/note on credential files)
Line 236: Line 236:
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 428:
Stop-transcript
Stop-transcript
</source>
</source>
{{PowerShell_Credentials_Files}}


{{GoogleAdLinkUnitBanner}}
{{GoogleAdLinkUnitBanner}}

Navigation menu