Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. function Get-MachineInfo($ServerName="localhost")
  2. {
  3. Get-WmiObject win32_computersystem -ComputerName $ServerName |
  4. SELECT DNSHostName,
  5. Manufacturer,
  6. Model,
  7. SystemType,
  8. @{Name="TotalPhysicalMemoryInMB";Expression={"{0:n2}" -f($_.TotalPhysicalMemory/1mb)}},
  9. NumberOfLogicalProcessors,
  10. NumberOfProcessors,
  11. CurrentTimeZone,
  12. DaylightInEffect
  13. }# End Get-MachineInfo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement