Permanent logo deletion in Windows Scripting (WSH) scripts

I know two ways to remove the logo forever. "Official":

cscript //Nologo //S 

Saves the current command line options for the current user.

A ftype admin approach:

 ftype wsffile="%SystemRoot%\System32\CScript.exe" //nologo "%%1" %%* ftype jsfile="%SystemRoot%\System32\CScript.exe" //nologo "%%1" %%* ftype vbsfile="%SystemRoot%\System32\CScript.exe" //nologo "%%1" %%* 

Double- % is only necessary if you use lines in a batch file.

The latter will be used by all users through the reg key HKEY_CLASSES_ROOT\<file>\Shell\Open\Command , where <file> can be wsffile , jsfile or vbsfile .

Do you know where cscript //Nologo //S settings are stored?

+4
source share
1 answer

Logo settings are stored in the DWORD DisplayLogo value of the Software\Microsoft\Windows Script Host\Settings under HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER ( HKEY_USERS\<SID> , in fact).

To change the default setting for all users, set the value in HKEY_LOCAL_MACHINE to 0x0 :

 reg add "HKLM\Software\Microsoft\Windows Script Host\Settings" /v DisplayLogo /t REG_DWORD /d 0x0 /f 

To change the setting for the current user, set the value in HKEY_CURRENT_USER to 0x0 :

 reg add "HKCU\Software\Microsoft\Windows Script Host\Settings" /v DisplayLogo /t REG_DWORD /d 0x0 /f 

If you want to change the settings for other users, you will have to first upload their user bush to the registry.

+6
source

Source: https://habr.com/ru/post/1488940/


All Articles