Uninstall-MtPack
Synopsis
Section titled “Synopsis”Removes a Maester Pack from maester-packs.lock.json and the Maester config.
Syntax
Section titled “Syntax”Uninstall-MtPack [-Id] <String[]> [-PackLock <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The pack and the modules only it needed are removed from the lock file, and its entry from the Packs list of maester-config.json, so Invoke-Maester no longer runs it. A pack that another installed pack requires is not removed. The files stay in the local pack store, which other projects may share.
A pack that ships with Maester cannot be uninstalled; turn it off in the config instead, with Packs: [{ “Id”: “maester.zero-trust-assessment”, “Enabled”: false }].
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Uninstall-MtPack contoso.google-workspaceRemoves the pack from the project.
Parameters
Section titled “Parameters”The packs to remove.
Type: String[]Parameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PackLock
Section titled “-PackLock”The lock file to change. By default the one beside the Maester config found from the current folder, else the user’s.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
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.