![Windows 10:建立本機強制(不可更改)使用者設定檔](https://rvso.com/image/1525418/Windows%2010%EF%BC%9A%E5%BB%BA%E7%AB%8B%E6%9C%AC%E6%A9%9F%E5%BC%B7%E5%88%B6%EF%BC%88%E4%B8%8D%E5%8F%AF%E6%9B%B4%E6%94%B9%EF%BC%89%E4%BD%BF%E7%94%A8%E8%80%85%E8%A8%AD%E5%AE%9A%E6%AA%94.png)
我們有一台運行 Windows 10 x64 Pro 的獨立(不在網域中)桌上型計算機,並連接到投影機。
這台電腦被各種教師用於教學目的,使用 Autocad、Archicad、Office 2013、Visual Studio 等程式。
教師經常會自訂環境移動條、調色板、更改顏色和其他內容,這會惹惱其他必須手動恢復環境正常配置的教師。
因此,我們希望創建一個本地強制用戶配置文件,以便人們對環境所做的每次更改、複製到桌面或文檔資料夾等的每個文件、每個自訂都將在下次登入時丟失。我們在網路上找到的所有資訊都不起作用或僅適用於網域環境。所以,問題是:
是否可以僅使用作業系統提供的功能而不使用第三方程式來為運行 Windows 10 Pro 的獨立電腦建立本地強制(即不可更改)設定檔?
我們發現強制該帳戶充當臨時帳戶可以滿足我們的需求,但我們無法刪除警告,告知所有資料將在註銷時丟失:對於我們來說,如果有可能消除這些警告,則這種方法可能很有用和通知。謝謝。
答案1
我和你一樣陷入了類似的境地。這是我目前的解決方案:每次關閉時使用 robocopy 覆蓋設定檔。
- 使用您想要使用的所有預設設定建立帳戶。
- 透過 robocopy 複製該設定檔資料夾。例如,robocopy c:\users\xxx c:\users\xxx_bak /mir /xj
- 創造一隻蝙蝠。 “回顯 d | robocopy c:\users\xxx_bak c:\users\xxx /mir /xj”
- 設定關閉腳本來執行bat
對於我的 10 年舊電腦(Core2Duo + 新 SSD)來說,大約需要 10-20 秒才能關閉約 300MB 的設定檔。
如果突然斷電/註銷,它無法恢復(直到下次關機)。我考慮過在啟動腳本中使用 robocopy,只是不確定 Windows 是否會在登入之前等待 bat 完成。你可以嘗試一下。
答案2
是的,這可以很容易地完成:
使用您的本機管理員帳戶登入(如果不存在,請啟用它並透過導航至 > 右鍵單擊此電腦 > 管理 > 本機使用者和群組 > 使用者來設定本機使用者群組的密碼)
導航至 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
但在重新啟動幾次後,我注意到有時無法登入。
答案4
請先備份並嘗試此操作,請前往
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
並在那裡創建這 4 個 DWORD 並將所有值設為 0
ShowInfoTip
FolderContentsInfoTip
StartButtonBalloonTip
EnableBalloonTips