For the complete documentation index, see llms.txt. This page is also available as Markdown.

Import-RDMSystemInformationReport

Synopsis

Importer un rapport d'informations système à partir d'un fichier .inv

Syntaxe

InputObject

Import-RDMSystemInformationReport [-Path] <string> [[-InputObject] <PSConnection>]
 [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Description

Importer un rapport d'informations système à partir d'un fichier .inv. Il est possible de l'enregistrer directement dans une entrée de rapport d'informations système en utilisant le paramètre InputObject.

Exemples

Exemple 1

PS C:\> Get-RDMEntry -Name 'MyInventory' | Import-RDMSystemInformationReport -Path 'C:\my\path\inventory20240723.inv' | Out-Null

Enregistrer l'inventaire chargé depuis le fichier 'inventory20240723.inv' dans l'entrée nommée 'MyInventory'

Exemple 2

PS C:\> $inventoryEntry = Get-RDMEntry -Name 'MyInventory'
PS C:\> $inventory = Import-RDMSystemInformationReport -Path 'C:\my\path\inventory20240723.inv'
PS C:\> $inventory.Antivirus.DisplayName = 'CrowdStrike'
PS C:\> Get-RDMEntry -Name 'MyInventory' | New-RDMSystemInformationReport -Inventory $inventory

Extraire l'inventaire du fichier 'inventory20240723.inv' et définir le nom d'affichage de l'antivirus sur 'CrowdStrike'. Enregistrer l'inventaire dans l'entrée nommée 'MyInventory'

Paramètres

-ForcePromptAnswer

Paramètre à utiliser avec précaution. Il répondra automatiquement aux invites demandant des questions oui/non, oui/non/annuler ou ok/annuler. En cas de plusieurs invites, plusieurs valeurs peuvent être transmises à ce paramètre. Voici les valeurs acceptées :

  • Yes : Accepter l'invite. Couvre les valeurs OK et Automatic.

  • No : Refuser l'invite oui/non/annuler. « Cancel » est l'option de repli s'il n'y a pas d'option « No ».

  • Cancel : Annuler l'invite oui/non/annuler. « No » est l'option de repli s'il n'y a pas d'option « Cancel ».

-InputObject

Entrée de rapport d'informations système où l'inventaire sera téléversé.

-Path

Fichier d'inventaire (.inv) à importer

-VaultMode

Coffre auquel la commande sera appliquée. Trois choix sont offerts :

  • Default : Coffre actuel qui a été défini.

  • User : Coffre propre à l'utilisateur actuel.

  • Global : Coffre global de l'espace de travail.

CommonParameters

Cette cmdlet prend en charge les paramètres communs : -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction et -WarningVariable. Pour plus d'informations, consultez about_CommonParameters.

Entrées

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

Entrée de rapport d'informations système où l'inventaire sera enregistré

Notes

Pour plus d'informations, tapez « Get-Help Import-RDMSystemInformationReport -detailed ». Pour des informations techniques, tapez « Get-Help Import-RDMSystemInformationReport -full ».

Mis à jour

Ce contenu vous a-t-il été utile ?