Edit

Share via


Unregister-WindowsDeveloperLicense

Disables Developer Mode on the current computer.

Syntax

Default (Default)

Unregister-WindowsDeveloperLicense
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Unregister-WindowsDeveloperLicense cmdlet disables Developer Mode on the current computer. If a developer license exists on the current computer, this cmdlet also removes it. If you disable Developer Mode, you can no longer install and test your apps by using Microsoft Visual Studio. Any app that you deployed from Visual Studio no longer runs on the current computer.

You must have administrative credentials to disable Developer Mode. For more information, see Enable your device for development (https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn706236.aspx) in the Microsoft Developer Network library. If you have not enabled Developer Mode for the current computer, this cmdlet returns an error.

Examples

Example 1: Disable Developer Mode

PS C:\> Unregister-WindowsDeveloperLicense

This command disables Developer Mode for the current computer. The cmdlet prompts you for confirmation before it disables Developer Mode. To skip this prompt, specify the Force parameter.

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

-Force

Disables Developer Mode without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.

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

-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.