you need to find out what is the hardware configuration for workstations or servers on your organization
so will you interrupt the users ? will you log on for each server ? check it from the VM Inventory Management ?
NO!
Quick Hardware Configuration Finder Script function is over here –
you can run the function for multiple machines (Get-HardwareConfig Localhost,Server01,Win7)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
###Find Hardware Configuration### function Get-HardwareConfig($comp) { $ServersList += @($comp) foreach ($comp in $ServersList) { $ISVirtual = get-wmiobject -computer $comp win32_computersystem $CPUDetails = Get-WmiObject -ComputerName $comp win32_processor $Memory = gwmi CIM_ComputerSystem -ComputerName $comp $TotalMemory = $Memory.TotalPhysicalMemory $RoundedTotalMemory = [Math]::Round($TotalMemory/1GB) $ServerSettings = [ordered]@{ MachineName = $ISVirtual.Name IsVirtual = $ISVirtual.Model CPUModel = $CPUDetails.Name CPUSockets = $CPUDetails.SocketDesignation.count CPUNumberOfCores = $CPUDetails.NumberOfCores InstalledMemory = $RoundedTotalMemory } } $ServerSettings } |
(Visited 555 times, 1 visits today)