在Windows 7中完全自动安装虚拟机工具
发布时间:2020-12-13 23:04:26 所属栏目:Windows 来源:网络整理
导读:我正在无人值守地安装 Windows.其中一部分是安装virtualbox guest添加项,由安装程序运行,因为Autounattend.xml中有以下条目: ?xml version="1.0" encoding="utf-8"?unattend xmlns="urn:schemas-microsoft-com:unattend" ... settings pass="oobeSystem" ..
我正在无人值守地安装
Windows.其中一部分是安装virtualbox guest添加项,由安装程序运行,因为Autounattend.xml中有以下条目:
<?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://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> ... <FirstLogonCommands> <SynchronousCommand> <Order>30</Order> <Description>VirtualBox Additions</Description> <CommandLine>F:VBoxWindowsAdditions-x86.exe /S</CommandLine> </SynchronousCommand> ... 它运行正常,没有GUI安装.但是,弹出两个窗口询问是否安装两个设备驱动程序.这对于自动安装来说不是好兆头.有没有办法强制win7接受驱动程序,或者我可以设置一个注册表项以使其信任它们?
避免这些提示的最佳方法是获取设备驱动程序签名所需的证书,并在安装之前将其安装在guest虚拟机上.您可以在本地计算机中找到Sun的证书和Oracle的证书 – > Trusted Publisher证书存储区.您可以轻松地从那里导出它们,然后在安装添加项之前将它们导入到guest虚拟机中.
要从已安装的计算机中提取证书,并使用PowerShell信任用于对设备驱动程序进行签名的证书,请执行以下操作: cd cert:LocalMachineTrustedPublisher $cert = dir | where { $_.Subject -like "*Oracle*" } $type = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert $bytes = $cert.Export($type) [System.IO.File]::WriteAllBytes("C:Oracle.cer",$bytes) 您可能希望运行上述命令并将* Oracle *替换为* Sun Microsystems *并捕获这两个证书,因此它们都可以存在,因此您可以使用VirtualBox更加独立于版本.只需确保在无人参与的guest虚拟机添加之前安装了这些证书. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 在Windows 8 metro应用程序中启动进程
- Windows安装MySQL8
- 键盘 – 是否值得为不使用Emacs的Windows用户交换Ctrl和Cap
- windows-server-2008 – 除非链接到计算机和用户OU(服务器2
- Windows应用商店应用 – WinJS:0x800a1391 – JavaScript运
- windows – TWebBrowser和IE版本
- windows-server-2008 – Windows 7 x64 Ultimate上的IIS 7.
- windows – 如何阻止单个GPO的继承/应用?
- windows下注册和取消pg服务的方法
- Windows操作系统中是否存在零拷贝?
推荐文章
站长推荐
- windows-server-2008-r2 – 在Windows系统上使用
- 使用putty配套工具pscp实现windows向Linux传送文
- Windows将凭据传播到Java桌面应用程序
- 在哪里可以找到适合Windows的符合标准的C编译器?
- windows – 如何在不同的子网中设置VPN
- 从命令行在Windows上查找CPU时间
- windows-server-2008 – DC的只读配置是否仅适用
- 无法使pywin32-219与python 3.5一起使用
- windows-7 – 计划的robocopy失败,错误3(创建目标
- .net – 在Windows 7或Vista上安装Visual Studio
热点阅读