Thank you so much
and
Code:
conhost --headless cmd /c script.bat
conhost --headless powershell -ep bypass -f script.ps1
That is working and I can use that for Task Scheduler jobs
If you're not distributing your code, you don't have to change anything. VBScript will remain available to install via Optional Features in the same way you can install other old stuff such as SMB 1.
They will completely remove VBS in future.
You can slso convert VBScript code to JScript and it will work exactly the same. ChatGPT or Copilot can be used to convert your scripts.
en.wikipedia.org
Yes I told copilot to convert some of my .vbs to .js and in my tests they are working in same way.
I have 251 vbs in my system.
%90 of them are not complicated (run exe/bat file hidden, run exe/bat file as admin, or both)
%5 of them is not necessary
%5 of them are a little complicated (for me), but i think i can handle them.
I have also a method for this
(run exe/bat file hidden, run exe/bat file as admin, or both)
I can prepare exe files in BatToExeConverter, I can address an exe file to a bat file with same name.
exe can be run as administrator naturally or not
exe can hide console window or not
admin mode, show console
admin mode, hide console
normal mode, show console
normal mode, hide console
or I can prepare .exe files directly from my bat scripts, no need 2 files but everytime have to prepare new exe file if I want to change anything in script.
And worst thing is about BatToExeConverter and prepared exe files are considered as malwares by security softwares.
