【问题标题】:unattended wim deployment backinfo无人值守的wim部署backinfo
【发布时间】:2017-11-17 21:58:13
【问题描述】:

我有一个将 WIM 部署到分区并使其可启动的脚本,它使用 unattend.xml 来配置名称和其他所有内容。我包含 BackInfo.exe 及其设置,当操作系统启动时,我让它运行一个登录脚本来为一堆东西初始化操作系统。我尝试在脚本中运行 BackInfo.exe,我尝试在 unattend.xml 中,我尝试将注册表项添加到 HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run,我尝试添加计划任务。

无论发生什么,背景始终是默认背景,并且永远不会设置为从 BackInfo 生成的背景。当我手动运行命令时,它可以完美运行。我这辈子似乎都无法正常工作。

任何帮助将不胜感激!

【问题讨论】:

    标签: server windows-server-2012 windows-server-2012-r2 wallpaper


    【解决方案1】:

    原来我已将代码放入 FirstLogonCommands 部分,但结果不起作用,我将其更改为 LogonCommands。

            <LogonCommands>
                <AsynchronousCommand wcm:action="add">
                    <CommandLine>%SystemDrive%\Applications\BackInfo\BackInfo.exe</CommandLine>
                    <Description>BgInfo</Description>
                    <Order>1</Order>
                </AsynchronousCommand>
            </LogonCommands>
    

    希望这可以在未来对其他人有所帮助,并防止他们浪费时间试图找出其他方法。

    【讨论】:

      猜你喜欢
      • 2021-03-24
      • 2012-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多