安装Windows 7/8/8.1/10操作系统时,并没有可以启用Administrator账户的选项,而我们经常需要高权限操作,或者有一些操作只能在Administrator账户进行。安装完系统再去启用Administrator账户看着非常不舒服。因此我用Windows ADK制作了安装系统时可以直接启用Administrator账户的应答文件Unattend.xml。在这里共享文件代码如下: 64位版本: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://www./2001/XMLSchema-instance"> <OOBE> <SkipMachineOOBE>true</SkipMachineOOBE> <SkipUserOOBE>false</SkipUserOOBE> </OOBE> <AutoLogon> <Username>Administrator</Username> <Enabled>true</Enabled> <LogonCount>1</LogonCount> </AutoLogon> <LogonCommands> <AsynchronousCommand wcm:action="add"> <Description>Active</Description> <Order>1</Order> </AsynchronousCommand> </LogonCommands> </component> </settings> </unattend> 32位版本: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://www./2001/XMLSchema-instance"> <OOBE> <SkipMachineOOBE>true</SkipMachineOOBE> <SkipUserOOBE>false</SkipUserOOBE> </OOBE> <AutoLogon> <Username>Administrator</Username> <Enabled>true</Enabled> <LogonCount>1</LogonCount> </AutoLogon> <LogonCommands> <AsynchronousCommand wcm:action="add"> <Description>Active</Description> <Order>1</Order> </AsynchronousCommand> </LogonCommands> </component> </settings> </unattend> 原代码是用Windows ADK中 Windows系统映像管理工具 应用Windows镜像中install.wim生成的,我个人又做了大量的精简和测试,用来安装Windows 7/8/8.1/10绝对没问题。。Windows Vista和 Windows ThinPC操作系统没试过理论上可行。。 新建一个记事本文档 假如说 “新建文本文档.txt”,将32位或者64位代码复制到这个文档中,将文档保存命名为Unattend 扩展名名为为xml 。。。Unattend.xml Unattend.xml文件有多种应用方法,可以用Dism命令应用到install.wim里也可以重命名为AutoUnattend.xml直接放进或新建Windows镜像文件的某一文件夹里,具体方法请用论坛或者百度搜索 用WinNTSetup软件安装系统可以勾选直接运用Unattend.xml,非常方便。 应用这个Unattend.xml的WinNTSetup软件安装系统可以实现完全无人值守,其他的安装系统方式可能需要输入操作系统安装秘钥。。似乎Windows 安装程序提供了“我没有产品秘钥”稍后输入的选项 系统输入法语言及其他设置按系统默认设置是自动跳过的 Administrator账户并非不支持应用商店,edge浏览器和其他UWP应用 Administrator账户要想使用应用商店,edge浏览器和其他UWP应用可以去调节组策略编辑器以打开,具体方法自行百度“Administrator账户使用edge”或者“Administrator账户使用应用商店” 这样做法虽然降低了Administrator账户的部分权限但是却完美的解决了有一些操作只能在Administrator账户进行和Administrator账户与UWP共存的问题。 好啦,就先这样。。。论坛的朋友不喜勿喷 |
|