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

ConvertTo-RDMEntryXml

Synopsis

Serialize a live entry or a historical version to XML

Syntax

InputObject

ConvertTo-RDMEntryXml -InputObject <PSConnection> [-ForcePromptAnswer <DialogResult[]>]
 [<CommonParameters>]

History

ConvertTo-RDMEntryXml -History <PSConnectionHistory> [-ForcePromptAnswer <DialogResult[]>]
 [<CommonParameters>]

Description

Serialize a live entry (from Get-RDMEntry) or a historical version (from Get-RDMEntryHistory) to XML, using the same serializer as the Windows client's Compare feature. Diffing the XML of two versions, or of the live entry against a version, with Compare-Object mirrors the Windows Entry history Compare button. Deleted-entry records from Get-RDMDeletedEntry cannot be converted and are refused.

Examples

Example 1

PS C:\> $xml = Get-RDMEntryHistory -InputObject $id | Select-Object -First 2 | ConvertTo-RDMEntryXml
        Compare-Object ($xml[0] -split "`n") ($xml[1] -split "`n")

Compare the two most recent versions of an entry.

Example 2

Compare the live entry against the last version before its username was changed, then revert to it.

Parameters

-ForcePromptAnswer

Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:

  • Yes: Accept the prompt. Cover the OK and Automatic value.

  • No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.

  • Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.

-History

Version obtained from Get-RDMEntryHistory

-InputObject

Live entry obtained from Get-RDMEntry

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

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

A live entry obtained from Get-RDMEntry

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnectionHistory

A version obtained from Get-RDMEntryHistory

Outputs

System.String

The XML representation of the entry or version

Notes

For more information, type "Get-Help ConvertTo-RDMEntryXml -detailed". For technical information, type "Get-Help ConvertTo-RDMEntryXml -full".

Last updated

Was this helpful?