Windows 10:创建本地强制(不可更改)用户配置文件

Windows 10:创建本地强制(不可更改)用户配置文件

我们有一台独立的(不在域中)台式计算机,运行 Windows 10 x64 Pro,并连接到投影仪。

各位教师使用该计算机进行教学,使用 Autocad、Archicad、Office 2013、Visual Studio 等程序。

老师经常会定制环境,移动栏、调色板、更改颜色和其他东西,这让其他老师很烦恼,因为他们必须手动恢复环境的正常配置。

因此,我们希望创建一个本地强制用户配置文件,这样人们对环境所做的每项更改、复制到桌面或文档文件夹等的每个文件、每个自定义设置都将在下次登录时丢失。我们在网上找到的所有信息都不起作用或仅适用于域环境。所以,问题是:

是否可以仅使用操作系统提供的功能而不使用第三方程序为运行 Windows 10 Pro 的独立计算机创建本地强制(即不可更改)配置文件?

我们发现强制将帐户作为临时帐户可以满足我们的需求,但我们无法删除警告,告知我们在注销时所有数据都将丢失:对于我们来说,如果有可能消除这些警告和通知,这种方法会很有用。谢谢。

答案1

我和你遇到过类似的情况。这是我目前的解决方案:每次关机时使用 robocopy 覆盖配置文件。

  1. 创建一个帐户,并使用您想要使用的所有默认设置。
  2. 通过 robocopy 复制该配置文件文件夹。例如,robocopy c:\users\xxx c:\users\xxx_bak /mir /xj
  3. 创建一个bat。“echo d | robocopy c:\users\xxx_bak c:\users\xxx /mir /xj”
  4. 设置关机脚本运行bat

对于我十年前的 PC (Core2Duo + 新 SSD),关闭大约 300MB 的配置文件大概需要 10-20 秒。

如果突然断电/注销,则无法恢复(直到下次关机)。我考虑在启动脚本中使用 robocopy,只是不确定 Windows 是否会等待 bat 完成后再登录。你可以试试。

答案2

是的,这可以轻松完成:

使用您的本地管理员帐户登录(如果不存在,请启用它并通过导航到 > 右键单击​​ ThisPc > 管理 > 本地用户和组 > 用户从本地用户组设置密码)

导航到 C:\Users\YourUsername 。然后从文件夹选项显示隐藏文件和文件夹并找到文件名 NTUSER.dat 并将其扩展名更改为 .man > NTUSER.man 。

确保在更改扩展文件名之前编辑您的设置。

答案3

我设法用这种方法做到了。创建默认配置文件后:

    1. Go to control panel 》 system 》 advanced system properties 》 user
profiles settings 》
    2. Select Default Profile and press copy to, desktop address name it Mandatory.v6
    3. Below permitted to use, Press change and type "authenticated users" 
       ,press check names. Also DO NOT tick mandatory profile
    4. Right click on Mandatory folder we just created, Security > Edit > 
       Add > change location to your PC's name > type ALL
       APPLICATION PACKAGES and check names, give it full control
    5. On Security tab press advance, tick "replace all object permission 
       entries with inheritable permission entries from this object"
    6. Open regedit with administrator privilege, highlight HKEY_USERS, file > load hive > select ntuser.dat on mandatory.v6
folder we created earlier, name it mandatory
    7. Right click on that folder > permission > add user > Authenticated Users, check name and give it full control
    8. Right click on that folder > permission > add user > type ALL APPLICATION PACKAGES > check name and give it full control
    9. Still on regedit Create new key #Mandatory, and new text file mandatoryv6 on mandatory.v6 folder earlier
    10. Delete all occurences of Administrator using right click > find, keep pressing del and f3 (next result) careful only delete
occurences under mandatory folder.
    11. Right Mandatory folder and export keys, name it mandatory.v6
    12. Highlight mandatory folder, file > unload hive
    13. Rename ntuser.dat into ntuser.man in mandatory.v6 folder
    14. Open regedit with administrator privilege, highlight HKEY_USERS, file > load hive > select ntuser.man on mandatory.v6
folder we created earlier, name it mandatory
    15. Run mandatory.reg that we exported in step#22
    16. Unload mandatory hive!
    17. Repeat from step #1 according to how many profile you plan to make
    18. Win+ Run > lusrmgr.msc, then on profile tab give each user the address of mandatory profile folder (without v6!)
    19. Your Mandatory profile is now ready, test it by adding something on the desktop, logoff and logon, the changes should not
persist anymore

修改强制配置文件:

    1.  Login as admin
    2. Rename ntuser.man in mandatory folder with ntuser.dat
    3. login as any of the mandatory profile
    4. Make changes, enter admin pass when required
    5. Logout mandatory profile, login admin, rename ntuser.dat to ntuser.man again

但经过几次重启后,我注意到有时它无法登录。但我还没有在较新的 Windows 版本上测试过它。

答案4

请先备份并尝试此操作,转到

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced

并在那里创建这 4 个 DWORDS,并将所有值设置为 0

ShowInfoTip
FolderContentsInfoTip
StartButtonBalloonTip
EnableBalloonTips

相关内容