PS:ESXi name +Hardware details + Processor Details+ Memory

This Script give Hardware info on which VM is running. Import-Csv -Path <File Path>| foreach { get-vm $_.VirtualServer | Get-VMHost |Sort Name |Get-View |` Select Name, ` @{N=“Type“;E={$_.Hardware.SystemInfo.Vendor+ “ “ + $_.Hardware.SystemInfo.Model}},` @{N=“CPU“;E={“PROC:“ + $_.Hardware.CpuInfo.NumCpuPackages + “ CORES:“ + $_.Hardware.CpuInfo.NumCpuCores + “ MHZ: “ + [math]::round($_.Hardware.CpuInfo.Hz / 1000000, 0)}},` @{N=“MEM“;E={“” + [math]::round($_.Hardware.MemorySize / 1GB, 0)Continue reading “PS:ESXi name +Hardware details + Processor Details+ Memory”

PS: Windows Server Build PowerCLI

################################################################################################### #List of Variables:NameScript, OSType, FullName, OrgName, ChangeSid, Type, DnsServer, DnsSuffix, # # TimeZone, GuiRunOnce, NamingScheme, NamingPrefix, ProductKey, Description, # # IpMode, IpAddress,SubnetMask, DefaultGateway, AlternateGateway, Dns, Template, # # EsxHost, Datastore, NumCpu,MemoryMB, NetworkName # ################################################################################################### #load PowerCLI snap-in Add-PSSnapin VMware.VimAutomation.Core #Connect the vCenter Connect-VIServer -Server <IP Address> -User <UserName> -Password <Password> #Import the file. PleaseContinue reading “PS: Windows Server Build PowerCLI”