Skip to content

Latest commit

 

History

History
124 lines (87 loc) · 2.68 KB

File metadata and controls

124 lines (87 loc) · 2.68 KB
document type external help file HelpUri Locale Module Name ms.date PlatyPS schema version title
cmdlet
linuxtools-Help.xml
en-US
linuxtools
11/09/2025
2024-05-01
Get-ComputerInventory

Get-ComputerInventory

SYNOPSIS

Get hardware and software inventory of the local computer.

SYNTAX

__AllParameterSets

Get-ComputerInventory [[-DestinationPath] <string>] [[-SasURI] <string>] [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

This script will gather hardware and software inventory of the local computer and output the results to a JSON file. Optionally, the results can be sent to a REST API endpoint.

EXAMPLES

EXAMPLE 1

Get-ComputerInventory -DestinationPath "\server\share"

Saves the inventory file to \server\share. The file name is _inventory.json

EXAMPLE 2

.blob.core.windows.net//?"

Sends the inventory file to Azure Blob Storage. The file name is _inventory.json

EXAMPLE 3

Get-ComputerInventory

Saves the inventory file to the user's Documents folder. File name is _inventory.json

PARAMETERS

-DestinationPath

{{ Fill DestinationPath Description }}

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-SasURI

Optional SAS URI for an Azure Storage Account to upload the inventory file to. Format is https://.blob.core.windows.net//?

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Azure Blob Container requires permissions: Add, Create, Write, List

Any data missing? Let me know!

RELATED LINKS