Bearbeiten

Freigeben über


Disable-UevTemplate

Disables a settings location template.

Syntax

Disable-UevTemplate
       [-ID] <String>
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Disable-UevTemplate cmdlet disables a settings location template for the current user of the computer. Use this cmdlet to disable a settings location template for an individual user. To disable a settings location template for all users on the computer, use the Unregister-UevTemplate cmdlet.

Examples

Example 1: Disable a specific template

PS C:\> Disable-UevTemplate -ID "MicrosoftCalculator6"

This command disables a settings location template that has the specified ID for the current user.

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

-ID

Specifies the ID of a settings location template. The cmdlet disables the template that you specify.

Type:String
Aliases:TemplateID
Position:0
Default value:None
Required:True
Accept pipeline input:True
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

Inputs

string

The settings location template ID.