en-US/HWInformation.psm1-Help.xml

<?xml version='1.0' encoding='utf-8'?>
<helpItems xmlns="http://msh" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:maml="http://schemas.microsoft.com/maml/2004/10" schema="maml">
  <command:command>
    <command:details>
      <command:name>Get-HWInfo</command:name>
      <maml:description>
        <maml:para>Gets CPU, memory and display adapter information for this computer.</maml:para>
      </maml:description>
      <command:verb>Get</command:verb>
      <command:noun>HWInfo</command:noun>
    </command:details>
    <maml:description>
      <maml:para>Returns a freshly collected HWInfo object. Store the result if you need to read several properties without recollecting the inventory.</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Get-HWInfo</maml:name>
        <command:parameter required="false" position="named" pipelineInput="false" globbing="false" variableLength="false" aliases="none">
          <maml:name>WhatIf</maml:name>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" position="named" pipelineInput="false" globbing="false" variableLength="false" aliases="none">
          <maml:name>Confirm</maml:name>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="false" position="named" pipelineInput="false" globbing="false" variableLength="false" aliases="none">
        <maml:name>WhatIf</maml:name>
        <maml:description>
          <maml:para>Shows what the command would do.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" position="named" pipelineInput="false" globbing="false" variableLength="false" aliases="none">
        <maml:name>Confirm</maml:name>
        <maml:description>
          <maml:para>Prompts for confirmation before running the operation.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
    </command:parameters>
    <command:inputTypes>
      <command:inputType>
        <dev:type>
          <maml:name>None</maml:name>
        </dev:type>
        <maml:description>
          <maml:para>This command takes no pipeline input.</maml:para>
        </maml:description>
      </command:inputType>
    </command:inputTypes>
    <command:returnValues>
      <command:returnValue>
        <dev:type>
          <maml:name>HWInfo</maml:name>
        </dev:type>
      </command:returnValue>
    </command:returnValues>
    <command:examples>
      <command:example>
        <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title>
        <maml:introduction>
          <maml:para>PS&gt; </maml:para>
        </maml:introduction>
        <dev:code>Get-HWInfo | Select-Object CPU, CPUCores, CPUThreads, 'Memory (Gb)'</dev:code>
        <dev:remarks>
          <maml:para>Display a compact processor and RAM summary.</maml:para>
        </dev:remarks>
      </command:example>
      <command:example>
        <maml:title>-------------------------- EXAMPLE 2 --------------------------</maml:title>
        <maml:introduction>
          <maml:para>PS&gt; </maml:para>
        </maml:introduction>
        <dev:code>$machine = Get-HWInfo
$machine.RAMBytes
$machine.GPUs | Select-Object Name, DriverVersion, MemoryBytes</dev:code>
        <dev:remarks>
          <maml:para>Read the exact installed RAM and display the GPU driver and dedicated memory from the same snapshot.</maml:para>
        </dev:remarks>
      </command:example>
      <command:example>
        <maml:title>-------------------------- EXAMPLE 3 --------------------------</maml:title>
        <maml:introduction>
          <maml:para>PS&gt; </maml:para>
        </maml:introduction>
        <dev:code>$machine = Get-HWInfo
$machine | Select-Object CPU, CPUCores, CPUThreads, 'Memory (Gb)', RamSticks |
    Export-Csv -LiteralPath '.\hardware.csv' -NoTypeInformation -Encoding UTF8</dev:code>
        <dev:remarks>
          <maml:para>Record a compact inventory of processor and RAM data in a CSV file.</maml:para>
        </dev:remarks>
      </command:example>
    </command:examples>
    <maml:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>about_HWInformation</maml:linkText>
      </maml:navigationLink>
    </maml:relatedLinks>
  </command:command>
  <command:command>
    <command:details>
      <command:name>New-HWInfo</command:name>
      <maml:description>
        <maml:para>Creates a hardware inventory snapshot for the local Windows computer.</maml:para>
      </maml:description>
      <command:verb>New</command:verb>
      <command:noun>HWInfo</command:noun>
    </command:details>
    <maml:description>
      <maml:para>Returns a new HWInfo object containing CPU, memory and display adapter data. It reads Windows inventory through CIM.</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>New-HWInfo</maml:name>
        <command:parameter required="false" position="named" pipelineInput="false" globbing="false" variableLength="false" aliases="none">
          <maml:name>WhatIf</maml:name>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
        <command:parameter required="false" position="named" pipelineInput="false" globbing="false" variableLength="false" aliases="none">
          <maml:name>Confirm</maml:name>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="false" position="named" pipelineInput="false" globbing="false" variableLength="false" aliases="none">
        <maml:name>WhatIf</maml:name>
        <maml:description>
          <maml:para>Shows what the command would do.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
      <command:parameter required="false" position="named" pipelineInput="false" globbing="false" variableLength="false" aliases="none">
        <maml:name>Confirm</maml:name>
        <maml:description>
          <maml:para>Prompts for confirmation before running the operation.</maml:para>
        </maml:description>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
        </dev:type>
      </command:parameter>
    </command:parameters>
    <command:inputTypes>
      <command:inputType>
        <dev:type>
          <maml:name>None</maml:name>
        </dev:type>
        <maml:description>
          <maml:para>This command takes no pipeline input.</maml:para>
        </maml:description>
      </command:inputType>
    </command:inputTypes>
    <command:returnValues>
      <command:returnValue>
        <dev:type>
          <maml:name>HWInfo</maml:name>
        </dev:type>
      </command:returnValue>
    </command:returnValues>
    <command:examples>
      <command:example>
        <maml:title>-------------------------- EXAMPLE 1 --------------------------</maml:title>
        <maml:introduction>
          <maml:para>PS&gt; </maml:para>
        </maml:introduction>
        <dev:code>$machine = New-HWInfo
$machine.GPUs | Select-Object Name, Vendor</dev:code>
        <dev:remarks>
          <maml:para>Reuse one snapshot to list the graphics adapters.</maml:para>
        </dev:remarks>
      </command:example>
      <command:example>
        <maml:title>-------------------------- EXAMPLE 2 --------------------------</maml:title>
        <maml:introduction>
          <maml:para>PS&gt; </maml:para>
        </maml:introduction>
        <dev:code>$machine = New-HWInfo
$machine | Select-Object CPU, CPUCores, CPUThreads, 'Memory (Gb)', RamSticks</dev:code>
        <dev:remarks>
          <maml:para>Review the processor and physical memory from one collection.</maml:para>
        </dev:remarks>
      </command:example>
      <command:example>
        <maml:title>-------------------------- EXAMPLE 3 --------------------------</maml:title>
        <maml:introduction>
          <maml:para>PS&gt; </maml:para>
        </maml:introduction>
        <dev:code>New-HWInfo -WhatIf</dev:code>
        <dev:remarks>
          <maml:para>Preview the inventory operation without constructing the snapshot.</maml:para>
        </dev:remarks>
      </command:example>
    </command:examples>
    <maml:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>about_HWInformation</maml:linkText>
      </maml:navigationLink>
    </maml:relatedLinks>
  </command:command>
</helpItems>