Copies one or more XProtect Smart Client views to a destination view group.
Copies one or more XProtect Smart Client views to a destination view group. The elements copied include the name, description, layout, and all view item definitions.
- Requires VMS connection and will attempt to connect automatically
- Requires VMS version 21.1
Connect-ManagementServer -ShowDialog -AcceptEula $viewGroup = Get-VmsViewGroup | Out-GridView -OutputMode Single $view = $viewGroup | Get-VmsViewGroup -Recurse | Get-VmsView | Out-GridView -OutputMode Single $newViewGroup = New-VmsViewGroup -Name 'MilestonePSTools' -Force | New-VmsViewGroup -Name 'Example 1' -Force $view | Copy-VmsView -Destination $newViewGroup -PassThru
After ensuring there is an open connection to the Management Server, we retrieve a list of top-level view groups. After selecting view group, a list of views in that view group are presented.
Once a view is selected, a new view group named 'MilestonePSTools' with a subgroup named 'Example 1' is created. A copy of the selected view is then placed in the new subgroup under the new top-level group 'MilestonePSTools'.
Specifies the view group within which a copy of the specified view will be created.
Overwrite a view with the same name if it exists. If a view exists and the -Force switch is omitted, the name of the copy will be appended with " - Copy".
Specifies that the newly created view should be returned to the pipeline.
Specifies the source view to be copied.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.