永久删除 Windows Scripting Host (WSH) 脚本中的徽标 [英] Permanent removal of logo in Windows Scripting Host (WSH) scripts

查看:43
本文介绍了永久删除 Windows Scripting Host (WSH) 脚本中的徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道两种永久删除徽标的方法.官方"一:

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

cscript //Nologo //S

将保存当前用户的当前命令行选项.

Will save current command line options for current user.

具有管理员权限的 ftype 方法:

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-% 仅在您使用批处理文件中的行时才需要.

Double-%'s are needed only if you use the lines in a batch file.

后者会影响所有用户通过注册键HKEY_CLASSES_ROOT\\Shell\Open\Command,其中可以是wsffilejsfilevbsfile.

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.

您知道 cscript//Nologo//S 设置存储在哪里吗?

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

推荐答案

徽标设置保存在 DWORD 值 DisplayLogo 子键 Software\Microsoft\Windows Script Host\SettingsHKEY_LOCAL_MACHINEHKEY_CURRENT_USER 下的 code>(实际上是 HKEY_USERS\).

The logo settings are saved in the DWORD value DisplayLogo the subkey Software\Microsoft\Windows Script Host\Settings under both HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER (HKEY_USERS\<SID>, actually).

要更改所有用户的默认设置,请将 HKEY_LOCAL_MACHINE 中的值设置为 0x0:

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

要更改当前用户的设置,请将 HKEY_CURRENT_USER 中的值设置为 0x0:

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 modify the settings for other users, you'll have to load their user hive into the registry first.

这篇关于永久删除 Windows Scripting Host (WSH) 脚本中的徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆