Chinaunix首页 | 论坛 | 博客
  • 博客访问: 89916
  • 博文数量: 16
  • 博客积分: 2500
  • 博客等级: 少校
  • 技术积分: 340
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-06 17:29
文章分类

全部博文(16)

文章存档

2009年(16)

我的朋友

分类: WINDOWS

2009-04-09 15:07:58

MSGINA以及禁用登陆对话框中登陆到域的选项:前日在翻阅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, .

活活,这就是很多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们稍微动一下手就可以很容易的打造自己的登陆界面上面的那篇文章,哪位感兴趣的可以翻译一下,投到winmag ,没准编辑们就用了呢,呵呵!
阅读(455) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~