![如何从命令行重置或清除 Windows 10 中的用户配置文件?](https://linux22.com/image/1612907/%E5%A6%82%E4%BD%95%E4%BB%8E%E5%91%BD%E4%BB%A4%E8%A1%8C%E9%87%8D%E7%BD%AE%E6%88%96%E6%B8%85%E9%99%A4%20Windows%2010%20%E4%B8%AD%E7%9A%84%E7%94%A8%E6%88%B7%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%EF%BC%9F.png)
我必须使用域中的共享用户配置文件。我想清除/重置配置文件为默认设置,这样当用户登录时,它就会像一个新的配置文件一样。我如何从命令行执行此操作?
答案1
我用过 DelProf2https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/。通常我会删除所有配置文件,只留下一些我想保留的配置文件。使用 /id: 您只能删除一个特定的配置文件。
DelProf2.exe /l /id:username
/l List only, do not delete (what-if mode)
/u Unattended (no confirmation)
/id Include only profile directories whose name matches this pattern
Wildcard characters * and ? can be used in the pattern
May be used more than once and can be combined with /ed