Quick Blog: Grabbing basic machine info with PowerShell

You may also like...

2 Responses

  1. Kevin says:

    tried it but I’m getting the following error

    Select-Object : A positional parameter cannot be found that accepts argument ‘System.Object[]’.
    At line:4 char:7
    + select <<<< DNSHostName, Manufacturer, Model, SystemType , ` @{Name="TotalPhysicalMemoryInMB";Expression={"{0:n2}" -f($_.TotalPhysicalMemory/1mb)}}, ` N
    umberOfLogicalProcessors, NumberOfProcessors, CurrentTimeZone, DaylightInEffect
    + CategoryInfo : InvalidArgument: (:) [Select-Object], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand

    • Aaron Nelson says:

      Sorry about that, seems there was a problem rendering the colored version of the code. I have made an adjustment and it looks like it’s being rendered properly now. Please let me know if that fixes it.

Leave a Reply

%d bloggers like this: