Export-SCManagementPack
Exports Management Packs from Operations Manager.
Syntax
Default (Default)
Export-SCManagementPack
[-ManagementPack] <ManagementPack[]>
[-PassThru]
-Path <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Export-SCManagementPack cmdlet exports Management Packs from Operations Manager. This command can also be executed with Export-SCOMManagementPack
.
Examples
1: Export all sealed management packs to a specified path
PS C:\>Get-SCOMManagementPack | Where-Object{ $_.Sealed -eq $true } | Export-SCOMManagementPack -path "C:\Sealed Management Packs"
Exports the Sealed Management Packs to C:\Sealed Management Packs.
2: Export all unsealed management packs to a specified path
PS C:\>Get-SCOMManagementPack | Where-Object{ $_.Sealed -eq $false} | Export-SCOMManagementPack -path "C:\Unsealed Management Packs"
Exports the Unsealed Management Packs to C:\Unsealed Management Packs.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ManagementPack
The Export-SCManagementPack cmdlet exports Management Packs from Operations Manager. This command can also be executed with Export-SCOMManagementPack
.
Parameter properties
Type: | ManagementPack[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PassThru
The Export-SCManagementPack cmdlet exports Management Packs from Operations Manager. This command can also be executed with Export-SCOMManagementPack
.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Path
The Export-SCManagementPack cmdlet exports Management Packs from Operations Manager. This command can also be executed with Export-SCOMManagementPack
.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
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.