Computer not restarting after running post install jobs in image
Currently working on testing out Windows 10 LTSC 2019. I got the image built ,pulled and deployed to a few machines. The problem I'm having is that regardless of the number of reboots I tell it during the sysprep creator tool, once the image is done deploying and all post install tasks are done, the client machine will not restart. This is going to be unique with this image cause when I pull an with LTSB 2015 and 2016 they restart and when finished take me to the login screen when completed. Curious to see if anyone is having this issue. I'm running the latest Sysprep Creator tool. Thanks
5 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
Which one?
Which version of Win10 are you deploying? (Build number).
Question, silly... but How do you now is not restarting?, describe the current behavior - Channeler 6 years ago
May want to check each one of those tasks, make sure the reboot option is enabled and save.
Also back in 1703, there was a known issue with that build, not honoring the AutoLogon Count field, and it was patched later on.
"Addressed issue where, if you specify an auto-logon configuration in Unattend.xml, auto-logon only works on the first logon, but will not work again when the device is restarted. "
Source:
https://support.microsoft.com/en-in/help/4022716/windows-10-update-kb4022716
https://support.quest.com/kace-systems-deployment-appliance/kb/230791/windows-10-version-1703-no-longer-accepts-multiple-auto-logon-instructions-on-the-unattend-xml-
Might be that thing again... since that is a new build... but check the reboot settings for each task first. - Channeler 6 years ago
use the following VB Script to reset you auto logon count as a mid level task.
If you want to set the auto logon as 2 set the full command line to cscript SetAutoLogonCount.vbs 2
--------------------------------------------------------------------
Dim wshShell
Dim xmlDoc
Dim envVarFile
Dim name, value, dictionary
Dim systemDrive
Dim computerName
Dim AutoLogonCount
Set objArgs = Wscript.Arguments
AutoLogonCount = Trim(WScript.Arguments.Item(0))
Set fso = CreateObject("Scripting.FileSystemObject")
Set wshShell = CreateObject("WScript.Shell")
' Environment variables file will be in the same place each time.
envVarFile = "X:\KACE\Engine\EnvVars.xml"
Set xmlDoc = CreateObject("Msxml2.DOMDocument")
xmlDoc.Load(envVarFile)
Set varList = xmlDoc.SelectNodes("//BootAction/EnvironmentVariables/EnvironmentVariable")
Set dictionary = CreateObject("Scripting.Dictionary")
For Each varNode in varList
name = varNode.SelectSingleNode("Name").Text
value = varNode.SelectSingleNode("Value").Text
dictionary.add name, value
Next
systemDrive = dictionary.Item("IMG_SYSTEM_DRIVE")
count = 0
ModifyVistaConfFile()
Sub ModifyVistaConfFile()
unattendedXmlFiles = Array( "C:\Unattend.xml",_
"C:\Windows\System32\sysprep\Unattend.xml",_
"C:\Windows\panther\Unattend.xml",_
"C:\Windows\panther\Autounattend.xml")
fileCreated = false
For Each unattendedXmlFile In unattendedXmlFiles
If fso.FileExists(unattendedXmlFile) Then
wshShell.Exec("regsvr32 C:\System32\msxml6.dll /s")
WScript.Sleep 1000
Set objXMLDoc = CreateObject("msxml2.domdocument.6.0")
objXMLDoc.async = False
objXMLDoc.setProperty "SelectionLanguage", "XPath"
ns = "xmlns:default='urn:schemas-microsoft-com:unattend'"
objXMLDoc.setProperty "SelectionNamespaces", ns
objXMLDoc.resolveExternals = False
objXMLDoc.load(unattendedXmlFile)
settingsFound = false
componentFound = false
AutoLogonFound = false
Set settingsNodes = objXMLDoc.documentElement.selectNodes("default:settings")
for each settingsNode in settingsNodes
If settingsNode.getAttribute ("pass") = "oobeSystem" Then
settingsFound = true
Set componentNodes = settingsNode.selectNodes("default:component")
for each componentNode in componentNodes
If componentNode.getAttribute ("name") = "Microsoft-Windows-Shell-Setup" Then
componentFound = true
Set AutoLogonNodes = componentNode.selectNodes("default:AutoLogon")
if AutoLogonNodes.item(0).selectSingleNode("default:LogonCount").text Then
AutoLogonFound = true
AutoLogonNodes.item(0).selectSingleNode("default:LogonCount").text = AutoLogonCount
AutoLogonNodes.item(0).selectSingleNode("default:Enabled").text = "true"
End If
End If
If AutoLogonFound = true Then
wscript.echo "yes"
Exit For
End If
NEXT
If componentFound = false Then
componentFound = true
End If
End If
If settingsFound = true Then
Exit For
End If
NEXT
objXMLDoc.Save(unattendedXmlFile)
End If
Next
End Sub - PortZero 5 years ago