This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
vmware:scripts:getinfo [2018/04/23 17:53] – lunetikk | vmware:scripts:getinfo [2018/04/24 17:51] (current) – lunetikk | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Get infos of VMs ====== | ====== Get infos of VMs ====== | ||
- | This script | + | The scripts |
+ | |||
+ | === Full vCenter === | ||
<code powershell vminfo.ps1> | <code powershell vminfo.ps1> | ||
Line 60: | Line 62: | ||
(Get-Content $targetfile).replace(' | (Get-Content $targetfile).replace(' | ||
</ | </ | ||
+ | |||
+ | === Host CPUs === | ||
+ | |||
+ | <code powershell hostcpus.ps1> | ||
+ | #Remove user and pass for pass-through auth | ||
+ | Connect-VIServer -Server < | ||
+ | # | ||
+ | |||
+ | $targetfile = " | ||
+ | |||
+ | get-vmhost | Select name, | ||
+ | </ | ||
+ | |||
+ |