Table of Contents

Activation error on a portable USB drive in Windows

If you encounter the error «Failed to obtain the portable drive code» for a portable USB drive in Windows, we recommend checking the WMI system repository (Section 1), antivirus settings and user permissions, as well as the operation of system services (Section 2). Also for Windows 7 and 10 you may sometimes need to update the outdated .NET Framework version (Section 3).

1. Checking the integrity and restoring the WMI repository

1.1. Launch the command prompt (cmd) as an administrator and enter the command below:

winmgmt /verifyrepository

Press Enter. If the command output is «WMI repository is inconsistent», this means the repository is corrupted and needs to be restored.

1.2. Restoring the WMI repository without deletion (soft reset):

winmgmt /salvagerepository

Run the command in the command prompt as an administrator and press Enter. Then restart the computer and check the program’s operation. If this restoration method does not help, try the second restoration method described below.

1.3. Restoring the WMI repository with component re‑registration. Enter the following commands one by one, pressing Enter after each command:

net stop winmgmt /y
winmgmt /resetrepository
net start winmgmt

After running the commands, restart the computer and check the operation of «Agelong Tree».

2. Checking system services

2.1. Press Win + R, type `services.msc` and click OK.

2.2. Make sure the following services are in the «Running» state:
- «CNG Key Isolation» — mandatory;
- «Cryptographic Services» — mandatory;
- «RPC Endpoint Mapper»;
- «Windows Defender Firewall».

2.3. If a service is disabled: - Right‑click it → Properties → Set Startup type to «Automatic»;
- Then click Start.

2.4. Restart the computer and check the operation of «Agelong Tree».

3. Updating .NET Framework on Windows 7 and 10

3.1. Download the .NET Framework 4.8 distribution from the official website: https://dotnet.microsoft.com/en-us/download/dotnet-framework/net48

3.2. Run the downloaded file and install .NET Framework 4.8.

3.3. Restart the computer and check the operation of «Agelong Tree».