Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动转换Windows版本至专业工作站版,准备WSL相关Windows功能,安装WSL(Ubuntu)相关命令 #4

Closed
LYao2514 opened this issue Mar 8, 2024 · 0 comments

Comments

@LYao2514
Copy link
Collaborator

LYao2514 commented Mar 8, 2024

转换系统版本至专业工作站版

cd C:\Windows\System32 
cscript slmgr.vbs /ipk NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J 

启用相关系统功能

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

安装WSL(Ubuntu 20.04)

Invoke-WebRequest -Uri https://aka.ms/wslubuntu -OutFile Ubuntu.appx -UseBasicParsing
Add-AppxPackage .\Ubuntu.appx

转换系统版本至专业版(不建议,部分电脑测试未成功,可能是密钥存在问题)
cd C:\Windows\System32
cscript slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX

Note

!!!部分电脑在转换系统版本之后可能会存在Windows未激活的情况,可用下列命令激活

cd C:\Windows\System32
cscript slmgr.vbs /skms kms.loli.best
cscript slmgr.vbs /ato
cscript slmgr.vbs /xpr

其中 "kms.loli.best" 可替换为自己所熟知或本地搭建的的KMS激活服务器,如"kms.loli.beer"

@KDXF-BOOM KDXF-BOOM deleted a comment from KawaiiSparkle Mar 8, 2024
@qwqlemon2333 qwqlemon2333 changed the title 自动转换Windows版本至专业工作站版,准备WSL相关Windows功能,安装WSL(Ubuntu 20.04)相关命令 自动转换Windows版本至专业工作站版,准备WSL相关Windows功能,安装WSL(Ubuntu)相关命令 Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants