今天是:
设百科问答网为首页|收藏百科问答网|网站地图
百科问答网 - 帮您解决问题,分享成功经验
首页(百科问答网)  » 电脑/数码/通讯/互联网 » 操作系统  » 正文内容:

如何屏蔽登陆对话框中的那个登陆到域的选项


如何屏蔽登陆对话框中的那个登陆到域的选项


答案或建议:


前日在翻阅MSGINA的信息的时候,无意中看到了关于如何定制MSGINA的一些文章,其中有一篇 The Essentials of Replacing the Microsoft Graphical Identification and Authentication Dynamic Link Library 其中提到

Disabling Domain Option of Logon Dialog Box

It is possible to disable the domain option on the dialog box brought up by WlxLoggedOutSas. To do this, set the registry value NoDomainUI of type [Reg_Dword] to a value of 1. This would have users enter their user names in the form?for example, username@domain.

活活,这就是很多AD管理员曾经提到过的一个问题,那就是如何屏蔽登陆对话框中的那个登陆到域的选项,如此作就可以了:

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /V NoDomainUI /T REG_DWORD /D 1 /F

噢,这个reg 在windows xp and windows 2k3下是可以直接执行的,大家完全可以将它做成计算机启动脚本来批量部署,这下大家满意了吧其实这篇文章中还提到很多其他有意思的东西,比如常见的 Loading the GINA
Winlogon loads the GINA DLL by first calling
GetProfileString to retrieve the name of the GINA DLL, which is located in HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\GinaDLL

比如

The actual path of the Winlogon key is:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon.

The [REG_SZ] value type makes it convenient to query the key values using the GetProfileString and GetProfileInt functions.

Key value name Contents
LegalNoticeCaption The string to display as the caption of the Legal Notice dialog box
LegalNoticeText The string to display as the message of the Legal Notice dialog box

比如 Value Contents
AutoAdminLogon 1
AutoLogonCount The number of times to do an automatic logon
DefaultUserName The name of the user account
DefaultDomainName The name of the domain that the user account is in
DefaultPassword The password of the user account, in clear text

还有一些API,Programmer和ITPro们稍微动一下手就可以很容易的打造自己的登陆界面



文章来源:http://www.baikewenda.com/tech/os/7/5/a102102604.htm

推荐内容

敬请注意:百科问答网内容来源于网络或民间经验收集,仅供参考。其中有关健康疾病方面的内容请务必咨询专业医生或及时到医院治疗。
关于我们 - 广告服务 - 联系我们
百科问答网 Copyright ©2005 - 2011 www.baikewenda.com,All Rights Reserved
辽ICP备10007180号