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
Connect to the Windows instance.
For more information, see Connect to a Windows instance by using a password.
Press the Windows key + R, enter regedit, and then click OK to open the Registry Editor window.
Search for and click .vbs, right-click (Default), and then select Modify. In the Value data field, change txtfile to VBSFile.