Windows如何在登录界面强制要求输入用户名

首先执行 secpol.msc -> 本地安全策略 -> 本地策略 -> 安全选项 -> 交互式登录: 不显示上次登录(如果是比较老的系统这里应该是 不显示最后的用户名) -> 启用

设定好之后,锁定账户,你会发现你只能看到当前的用户名,看不到其他用户名了(如果还是能看到就重启电脑)。如果你想锁定账户后连当前用户名一起隐藏,可以在系统的任务计划程序里新建一个任务,新任务的具体设置如下:

常规选项卡 -> 运行任务时, 请使用下列用户帐户 -> 改成 Users

触发器选项卡 -> 当锁定任何用户的工作站时

操作选项卡 -> 启动程序 -> tsdiscon

条件选项卡 -> 复选框 "只有在计算机使用交流电源时才启动此任务" 取消勾选

这样设置好之后,每次锁定屏幕都会触发 tsdiscon 程序,这个程序会断开用户的连接,这样锁定后就不会出现当前用户的用户名了,会出现一个要求输入用户名和密码的界面。不过因为是先锁屏再触发任务,所以如果任务触发的比较慢的话可能会出现先出现锁屏界面,然后屏幕黑一下再出现断开用户连接之后的界面。这个界面是欢迎屏幕,如果想直接出现输入用户名密码的界面,可以禁用欢迎屏幕。

另外登录界面默认的输入法是微软拼音中文,而用户名一般都是英文,所以如果当前用户的输入语言默认是 英语(美国) - 美式键盘 的话,可以将这个设置复制到登录界面,具体方法如下:

控制面板 -> 区域 -> 管理 选项卡 -> 欢迎屏幕和新用户帐户 复制设置 -> 勾选 "欢迎屏幕和系统账户" 复选框

此条目发表在 杂记 分类目录。将固定链接加入收藏夹。

Windows如何在登录界面强制要求输入用户名》有 18 条评论

  1. Joshuajax 说:

    Started reading expecting to disagree and ended mostly nodding along and a look at progressmapping continued the pattern content that wins agreement through evidence and reasoning rather than rhetorical force is the kind that actually shifts minds and this site clearly knows how to do that across what I have read so far.

  2. Rustyfrept 说:

    Highly recommend to anyone looking for a sensible take on this topic without the usual marketing nonsense and a look at strategylaunchpad kept that grounded approach going sites that stay focused on serving readers rather than monetising every click are rare and this is clearly one of those rare ones I really appreciate finding.

  3. JerryFAG 说:

    Quietly enthusiastic about this site after the past few hours of reading and a stop at clarityactivates extended that enthusiasm the calibration of enthusiasm to evidence is something I try to maintain and this site has earned a calibrated quiet enthusiasm rather than the loud excitement that usually fades within a day or two of finding something.

  4. AdrianFax 说:

    Recommended without reservation for anyone interested in the topic at any level of expertise and a look at growwithprecision only strengthens that recommendation this site clearly knows how to serve readers across a range of backgrounds without watering down the content or talking past anyone in the audience which is genuinely impressive to see.

  5. JudsonEnash 说:

    Polished and informative without feeling overproduced that is the sweet spot and a look at growthnavigationpath hit it again you can tell when a site has been built with care versus thrown together for the sake of having something to put online and this is clearly the former approach taken by the team.

  6. Marcvat 说:

    Picked up a couple of new ideas here that I can actually try out and after my visit to momentumworkflow I have even more notes saved this is the kind of resource that pays you back for the time you spend on it which is rare to come across in this corner of the web.

  7. IanTed 说:

    Skipped the TLDR thinking I would read everything anyway and ended up enjoying the path through the full post and a stop at actionshapessuccess similarly rewarded the patient read summaries are useful but the journey through good writing is part of what makes the destination feel earned rather than just delivered cleanly.

  8. Rolandofuelp 说:

    Took longer than expected to finish because I kept stopping to think and a stop at progressengine did the same to me content that provokes thought rather than just delivering information is in a different category and the team here is clearly working at that higher level rather than just cranking out posts.

  9. JabariHer 说:

    Came away with a slightly better mental model of the topic than I started with and a stop at actioncreatestraction sharpened that further content that improves the reader thinking apparatus rather than just dumping facts into it is the rare kind I genuinely value and seek out when I have time to read carefully.

  10. IssacAdugh 说:

    Closed the laptop after this and let the ideas settle for a few hours and a stop at strategyfocus similarly rewarded reflective time content that benefits from sitting with rather than racing past is the kind I want more of and the kind that this site appears to consistently produce week after week here.

  11. Linwooddak 说:

    Genuinely changed how I think about a small piece of the topic which does not happen often online and a look at focusandexecute added another nudge in the same direction the kind of writing that earns a small mental shift rather than just confirming what you already thought before reading is a sign of careful thought.

  12. Karlwak 说:

    Skipped the comments to avoid spoilers and came back later to find them genuinely worth reading and a stop at directionbeforeforce extended that surprised respect when the discussion below a post matches the quality of the post itself you have found something special and this site appears to attract that kind of audience.

  13. Devantegof 说:

    Now recognising the editorial wisdom of letting some questions remain open at the end and a look at visiontoexecution continued that intellectual honesty content that does not force closure on contested questions is content that respects the limits of knowledge and this site has clearly developed the maturity to know when to leave space.

  14. EdgarThept 说:

    Skipped past the first paragraph thinking it was setup and had to come back when the rest referenced it and a stop at actionledgrowth similarly rewarded careful reading from the start content where every paragraph carries weight is content I now know to read from the beginning rather than skipping ahead.

  15. Eganfratt 说:

    Decided to read this site for a while before forming a verdict and the verdict after several pages is positive and a stop at momentumdesignlab continued that pattern judging a site requires more than one post and giving sites a fair sample is something I try to do for promising candidates rather than rushing to dismiss.

  16. Spenceralugh 说:

    Generally my comment to other readers about new sites is to wait and see but for this one I would jump to recommend now and a look at growthpathwaynow reinforced that early recommendation the speed at which a site earns my recommendation is itself a quality signal and this one has earned mine quickly clearly.

  17. LucaNoism 说:

    Thanks for laying this out in a way that someone newer to the topic can follow and a stop at progressstarter kept that accessibility going writing that meets readers at different experience levels without condescending is hard to do well and the writers here have clearly thought about who they are writing for.

  18. ReginaldRalia 说:

    Reading this between meetings turned out to be the most useful thing I did all afternoon and a stop at strategyandclarity kept that productivity feeling going content can sometimes outperform actual work in terms of what gets accomplished mentally and this site managed that today which is genuinely a high bar to clear consistently.

发表评论

电子邮件地址不会被公开。

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>