Cmdlet
New-OfficeRtf
Creates an RTF document, optionally with paragraphs from -Text or the pipeline.
Syntax
New-OfficeRtf
[-Force]
[[-Path] <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
LiveNew-OfficeRtf
[-Force]
[-PassThru]
[-Path] <String>
[-Show]
[-Text] <String[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
TextNew-OfficeRtf
[-Content] <ScriptBlock>
[-Force]
[-PassThru]
[-Path] <String>
[-Show]
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
ContentExamples
Use the native OfficeRtf command.
New-OfficeRtf -Path .\Note.rtf -Text 'Server maintenance starts at 22:00.'Parameters
- -Force SwitchParameter
- Force for this operation.
- -Path String
- Path for this operation.
- -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- Prompts for confirmation before running the command.
- -PassThru SwitchParameter
- PassThru for this operation.
- -Show SwitchParameter
- Show for this operation.
- -Text String[]
- Text for this operation.
- -Content ScriptBlock
- Content for this operation.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.