-
Notifications
You must be signed in to change notification settings - Fork 0
/
ActiveOffice2024Visio.cmd
34 lines (25 loc) · 1.27 KB
/
ActiveOffice2024Visio.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
title Activate Microsoft Visio 2024 for FREE - https://github.com/BsNgChiThanh
cls
color F0
mode con cols=98 lines=30
echo Activating Microsoft Visio 2024...
(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")
(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")
(cscript //nologo ospp.vbs /setprt:1688 >nul || goto wshdisabled)&cscript //nologo ospp.vbs /inslic:"..\root\Licenses16\pkeyconfig-office.xrm-ms" >nul
(for /f %%x in ('dir /b ..\root\Licenses16\client-issuance*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)
(for /f %%x in ('dir /b ..\root\Licenses16\visioprovl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)
(for /f %%x in ('dir /b ..\root\Licenses16\visiopro2024vl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)
cscript ospp.vbs /setprt:1688
cscript ospp.vbs /inpkey:YW66X-NH62M-G6YFP-B7KCT-WXGKQ
cscript ospp.vbs /inpkey:HGRBX-N68QF-6DY8J-CGX4W-XW7KP
cscript ospp.vbs /sethst:107.175.77.7
cscript ospp.vbs /sethst:172.16.0.2
cscript ospp.vbs /act
echo.
echo.
echo Nhan phim bat ky de thoat.
:end
:notsupported
:halt
pause >nul