Export-SCManagementPack
從 Operations Manager 導出管理元件。
Syntax
Export-SCManagementPack
[-ManagementPack] <ManagementPack[]>
[-PassThru]
-Path <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Export-SCManagementPack Cmdlet 會從 Operations Manager 導出管理元件。 您也可以使用 Export-SCOMManagementPack
來執行此命令。
範例
1:將所有密封管理元件匯出至指定的路徑
PS C:\>Get-SCOMManagementPack | Where-Object{ $_.Sealed -eq $true } | Export-SCOMManagementPack -path "C:\Sealed Management Packs"
將密封管理元件匯出至 C:\Sealed 管理元件。
2:將所有未密封的管理元件匯出至指定的路徑
PS C:\>Get-SCOMManagementPack | Where-Object{ $_.Sealed -eq $false} | Export-SCOMManagementPack -path "C:\Unsealed Management Packs"
將未密封的管理元件導出至 C:\Unsealed Management Pack。
參數
-Confirm
在執行 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
顯示執行 Cmdlet 後會發生的情況。 Cmdlet 並不會執行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |