All Products
Search
Document Center

:What do I do if the Windows operating system of an instance cannot be activated because the file type of slmgr.vbs is changed?

Last Updated:Apr 14, 2023

This topic describes the cause of the following issue and how to resolve the issue: The Windows operating system of an Elastic Compute Service (ECS) instance cannot be activated because the file type of slmgr.vbs is changed.

Problem description

The slmgr.vbs file cannot run in the Windows operating system of an ECS instance, and the file type of slmgr.vbs is changed from VBScript to VBS. As a result, the Windows operating system cannot be activated.

Cause

In most cases, the preceding issue occurs because .vbs files are modified by using a text editor.

Solution

  1. Connect to the Windows instance.

    For more information, see Connect to a Windows instance by using a password.

  2. Press the Windows key + R, enter regedit, and then click OK to open the Registry Editor window.

  3. Search for and click .vbs, right-click (Default), and then select Modify. In the Value data field, change txtfile to VBSFile.