4

I know two ways to remove the logo permanently. The "official" one:

cscript //Nologo //S

Will save current command line options for current user.

A ftype approach with admin privileges:

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-%'s are needed only if you use the lines in a batch file.

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

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

4

1 回答 1

6

徽标设置保存在 DWORD 值中,实际上是和( )下DisplayLogo的子项。Software\Microsoft\Windows Script Host\SettingsHKEY_LOCAL_MACHINEHKEY_CURRENT_USERHKEY_USERS\<SID>

要更改所有用户的默认设置,请将值设置HKEY_LOCAL_MACHINE0x0

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

要更改当前用户的设置,请将值设置HKEY_CURRENT_USER0x0

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

如果您想修改其他用户的设置,您必须先将他们的用户配置单元加载到注册表中。

于 2013-06-30T10:36:51.417 回答