Import-RDMSystemInformationReport
Synopsis
Importer un rapport d'information 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'information système à partir d'un fichier .inv. Il est possible de l'enregistrer directement dans une entrée de rapport d'information 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-NullEnregistrer l'inventaire chargé à partir du 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 $inventoryExtraire l'inventaire du fichier 'inventory20240723.inv' et définir le nom d'affichage de l'antivirus à 'CrowdStrike'. Enregistrer l'inventaire dans l'entrée nommée 'MyInventory'
Paramètres
-ForcePromptAnswer
Commutateur à utiliser avec prudence. Il répondra automatiquement aux invites posant des questions de type oui/non, oui/non/annuler ou ok/annuler. En cas d'invites multiples, plusieurs valeurs peuvent être passées à 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'information système où l'inventaire sera téléversé.
-Path
Fichier d'inventaire (.inv) à importer
-VaultMode
Coffre où la commande sera appliquée. Trois choix sont offerts :
Default : Coffre actuel qui a été défini.
User : Coffre spécifique à l'utilisateur actuel.
Global : Coffre global de l'espace de travail.
CommonParameters
Cette applet de commande prend en charge les paramètres communs : -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, et -WarningVariable. Pour plus d'information, consultez about_CommonParameters.
Entrées
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection
Entrée de rapport d'information système où l'inventaire sera enregistré
Notes
Pour plus d'information, tapez "Get-Help Import-RDMSystemInformationReport -detailed". Pour de l'information technique, tapez "Get-Help Import-RDMSystemInformationReport -full".
Mis à jour
Ce contenu vous a-t-il été utile ?