SHARE
TWEET

Untitled

a guest Mar 24th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top