Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

reg unload

Feedback

In this article

Removes a section of the registry that was loaded using thereg load operation.

Syntax

reg unload <keyname>

Parameters

ParameterDescription
<keyname>Specifies the full path of the subkey. To specify a remote computer, include the computer name (in the format\\<computername>\) as part of thekeyname. Omitting\\<computername>\ causes the operation to default to the local computer. Thekeyname must include a valid root key. Valid root keys for the local computer are:HKLM,HKCU,HKCR,HKU, andHKCC. If a remote computer is specified, valid root keys are:HKLM andHKU. If the registry key name contains a space, enclose the key name in quotes.
/?Displays help at the command prompt.

Remarks

  • The return values for thereg unload operation are:

    ValueDescription
    0Success
    1Failure

Examples

To unload the hive TempHive in the file HKLM, type:

reg unload HKLM\TempHive

Caution

Don't edit the registry directly unless you have no alternative. The registry editor bypasses standard safeguards, allowing settings that can degrade performance, damage your system, or even require you to reinstall Windows. You can safely alter most registry settings by using the programs in Control Panel or Microsoft Management Console (MMC). If you must edit the registry directly, back it up first.

Related links


Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo