添加消息,登录屏幕的Windows 7 [英] Add message to logon screen windows 7
问题描述
我知道,在Windows 8中,某些应用程序有锁定屏幕上的通知,有的指纹识别器可以在Windows 7和旧机器添加邮件登录屏幕。有可能是一个程序的登录屏幕上使用C#显示一条消息,为Windows 7?如果是这样,可以在该消息是动态的?
I know that in windows 8, certain applications have a notification on the lock screen, and some fingerprint readers can add messages to the logon screen in windows 7 and older machines. Is it possible for a program to display a message on the logon screen for Windows 7 using c#? If so, can that message be dynamic?
推荐答案
是的,它可以添加/更改登录屏幕信息。它涉及更新 legalnotiecaption
和 legalnoticetext
在注册表中的值。
Yes it is possible to add/changes the logon screen message. It involves updating the legalnotiecaption
and legalnoticetext
values in the registry.
请参阅本文进行了详细的演练:的在Windows 8
它将为Windows 7的也行,因为我们正在修改注册表键(还没有Windows版本之间改变)显示一个启动的消息框。
See this article for a detailed walkthrough: Display a Startup Message Box in Windows 8 It will work for Windows 7 also, since we are modifying the registry keys (which haven't changed between windows versions).
至于消息是否可以是动态的,我不知道,因为它从注册表。我想你可以写一个C#应用程序存储当前/现有值的2注册表项,然后更新他们在启动时 。 (不要忘了叫关闭()
在C#代码的的RegistryKey
对象:)
As for whether the message can be dynamic, I am not sure, since it comes from the registry. I guess you could write a C# app that stores the current / existing values for those 2 registry entries, then updates them at startup. (Don't forget to call Close()
on the RegistryKey
object in your C# code :)
另外,如果你是直接修改注册表项的怕,你可以通过更新本地安全策略2个选项进行相同的更改。在幕后,2更新最终更新相同的2注册表项。 - legalnotiecaption
和 legalnoticetext
Also, if you are "afraid" of modifying the registry entries directly, you can make the same changes by updating 2 options in the Local Security Policy. Behind the scenes, the 2 updates eventually update the same 2 registry keys - legalnotiecaption
and legalnoticetext
.
- 运行secpol.msc然后按Enter键打开本地安全策略
- 展开本地策略>选择安全选项
- 在RHS窗格中,双击
交互式登录:用户试图登录
。更改并保存 - 在RHS窗格中,双击
交互式登录:用户试图登录
短信息。更改并保存它。
- Run secpol.msc and hit Enter to open the Local Security Policy
- Expand Local Policies > Select Security options.
- In the RHS pane, double click
Interactive logon: Message title for users attempting to log on
. Change and save it. - In the RHS pane, double click
Interactive logon: Message text for users attempting to log on
. Change and save it.
这篇关于添加消息,登录屏幕的Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!