Get-R1FileContent

SYNOPSIS

Returns the contents of a file on the server.

SYNTAX

Get-R1FileContent [-file] <String> [<CommonParameters>]

DESCRIPTION

Returns the UTF8 text contents of a file, together with its path.

EXAMPLES

Example 1

Get-R1FileContent -file '/certs/readme.txt'

Returns the contents of a file.

Example 2

(Get-R1FileContent -file '/vds_server/custom/src/psr1/app.properties').contents | Set-Content .\app.properties

Saves the contents to a local file.

PARAMETERS

-file

The path of the file.

Type: String
Parameter Sets: (All)
Aliases: id

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
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

None

OUTPUTS

psRadiantOne.FileContents

NOTES

Set-R1FileContent

Export-R1File