UNLOADHIVE

Action

Unloads the specified key and subkeys from the registry.

 

Syntax

UNLOADHIVE ("key")

 

Parameters

Key

The key you want to unload. This key must have been created using LoadHive.

Remarks

On Windows NT, using UNLOADHIVE requires Backup and Restore privileges.

 

Returns

 

0

Key loaded

Error code

Function failed

 

Example

$ReturnCode = UnLoadHive( "HKEY_USERS\Fiets" )

 

If $ReturnCode = 0

   ? "Hive unloaded...."

Endif