![]() ![]() :: Can be 0 (Online Mode - Used for External KMS Server) | 1 (Offline Mode - Used for Internal KMS Server) Setlocal EnableExtensions EnableDelayedExpansion :: Set EnableExtensions and DelayedExpansion Set " _ServerPath = %_FileDir%\32-bit\vlmcsd.exe " :: Get Drive and Path containing the Script ![]() :: Get Fully Qualified FileName of the Script :: Set Title of the Script Color in hex (0 to F) REM Debug, Clear all nul suppressors, Call script redirecting output to log fileĮcho The window will be closed when echo prompt : Begin > " %~dpn0.tmp " 2 >&1 &cmd /u /c type " %~dpn0.tmp " > " %~dpn0_Debug.log " &del " %~dpn0.tmp " :: Can be 0 (Delete Auto-Renewal-Task OR Manual-Mode) | 1 (Create Auto-Renewal-Task)Įcho %* | find /i "-createtask " > nul & set /a _Task = 1Įcho %* | find /i "-renewalonly " > nul & set /a _Task = 2 ::=Ĭmd /u /c echo Set UAC = CreateObject ^( "Shell.Application " ^) : UAC.ShellExecute "cmd.exe ", "/k cd " " %~dp0 " " & " " %~dpnx0 " " " " %_Args% " " ", " ", "runas ", 1 > " %temp%\GetAdmin.vbs "ĭel /f /q " %temp%\GetAdmin.vbs " 1 > nul 2 > nul ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |