Copy-LMReport
Syntax
Section titled “Syntax”Copy-LMReport [-Name] <String> [[-Description] <String>] [[-ParentGroupId] <String>] [-ReportObject] <Object> [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”The Copy-LMReport function creates a new report based on an existing report’s configuration. It allows you to specify a new name, description, and parent group while maintaining other settings from the source report.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”#Copy a report with basic settingsCopy-LMReport -Name "New Report" -ReportObject $reportObjectEXAMPLE 2
Section titled “EXAMPLE 2”#Copy a report with all optional parametersCopy-LMReport -Name "New Report" -Description "New report description" -ParentGroupId 12345 -ReportObject $reportObjectParameters
Section titled “Parameters”The name for the new report. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Description
Section titled “-Description”An optional description for the new report.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ParentGroupId
Section titled “-ParentGroupId”The ID of the parent group for the new report.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ReportObject
Section titled “-ReportObject”The source report object to copy settings from. This parameter is mandatory.
Type: ObjectParameter Sets: (All)Aliases:
Required: TruePosition: 4Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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.