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

Export-RDMSystemInformationReport

Synopsis

Exporter le rapport d'informations système vers un fichier

Syntaxe

__AllParameterSets

Export-RDMSystemInformationReport [-Path] <string> [-InputObject] <PSSystemInformationReport>
 [-Theme <Theme>] [-AsHtml] [-NoClobber] [-VaultMode <VaultMode>]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Exporter le rapport d'informations système vers un fichier. Deux formats sont pris en charge : *.inv et *.html. Le comportement par défaut est d'écraser les fichiers existants. Pour éviter cela, utilisez le commutateur 'NoClobber'.

Exemples

PS C:\> $lastYearReports = Get-RDMEntry -Name 'MySystemInformationReportEntry' | Get-RDMSystemInformationReport -After 2023-01-01 -Before 2023-12-31
PS C:\> foreach ($report in $lastYearReports) {
          $exportPath = "C:\my\path\$($report.Inventory.ComputerName)_$($report.MetaInformation.CreationDate.ToString('yyyy-MM-dd')).inv"
          Export-RDMSystemInformationReport -Path $exportPath -InputObject $report
        }

Exporter tous les inventaires de l'année précédente

Paramètres

-AsHtml

Exporter l'inventaire sous forme de rapport HTML

-Confirm

Vous demande une confirmation avant d'exécuter le cmdlet.

-ForcePromptAnswer

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

  • Yes: Accepter l'invite. Couvre la valeur 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

Rapport d'informations système obtenu avec Get-RDMSystemInformationReport

-NoClobber

Ne pas écraser un fichier existant

-Path

Chemin où le fichier est enregistré

-Theme

Thème du rapport HTML

-VaultMode

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

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

  • User: Coffre spécifique à l'utilisateur courant.

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

-WhatIf

Affiche ce qui se passerait si le cmdlet s'exécutait. Le cmdlet n'est pas exécuté.

CommonParameters

Ce 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.PSSystemInformationReport

Objet de rapport d'informations système avec métadonnées

Notes

Pour plus d'informations, tapez "Get-Help Export-RDMSystemInformationReport -detailed". Pour des informations techniques, tapez "Get-Help Export-RDMSystemInformationReport -full".

Mis à jour

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