Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Get-MachineInfo($ServerName="localhost")
- {
- Get-WmiObject win32_computersystem -ComputerName $ServerName |
- SELECT DNSHostName,
- Manufacturer,
- Model,
- SystemType,
- @{Name="TotalPhysicalMemoryInMB";Expression={"{0:n2}" -f($_.TotalPhysicalMemory/1mb)}},
- NumberOfLogicalProcessors,
- NumberOfProcessors,
- CurrentTimeZone,
- DaylightInEffect
- }# End Get-MachineInfo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement