Get-FogInventory

SYNOPSIS

Gets a local computer's inventory with wmi and returns a json object that can be used to set fog inventory

SYNTAX

Get-FogInventory [[-hostObj] <Object>] [<CommonParameters>]

DESCRIPTION

Uses various wmi classes to get every possible inventory item to set in fog

EXAMPLES

EXAMPLE 1

$json = Get-FogInventory
Set-FogInventory -jsonData $json

Gets the inventory of the currenthost using wmi and formats in the proper json then sets the inventory for that host in fog.

PARAMETERS

-hostObj

the host to get the model of the inventory object from This is used for the inventory structure of the object It defaults to the current host

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: (Get-FogHost)
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES