Freigeben über


Export-SCManagementPack

Exports Management Packs from Operations Manager.

Syntax

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.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ManagementPack

Type:ManagementPack[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Path

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False