添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
天涯  ·  javascript - How can ...·  1 年前    · 
发怒的洋葱  ·  js去掉数字前面的0-掘金·  1 年前    · 
机灵的枇杷  ·  Java HashMap和 ...·  1 年前    · 

I'm using an unattended installation of Windows 10 21H2 LTSC using an "answer file" (unattend.xml) on a surface pro 7 plus device.

I have placed SetupComplete.cmd at: %windir%\setup\scripts as suggested from the documentation in the image file (WIM file). I can see the file is in place after Windows installation is done.

Following the installation on the tablet I see that the commands in SetupComplete.cmd were not executed. There is nothing in the log file where SetupComplete.cmd should write to.

Is there something else to do so this file (SetupComplete.cmd) will run? Registry? answer-file?

Any suggestions?

As it seems my issue is related to the following KB:
https://learn.microsoft.com/en-us/troubleshoot/mem/configmgr/os-deployment-task-sequence-not-continue

OEM license was detected but Enterprise was not detected although I was using Windows® 10 IoT Enterprise 2021 LTSC

Hello AssafTomaschoff,

It seems that you have the script in the right place. My only concern is that if that script was copied from a different computer, it may have some default permissions that are not aligned. If that was the case would try to:

Rename your SetupComplete.cmd to .OLD
Create a new SetupComplete.cmd file directly in the folder, and copy the content of your script.

Otherwise you can try to apply the same script on ErrorHandler.cmd script in the same folder.

All in all, it would help what are you trying to run in the script, and as well if you see anything on the C:\Windows\Panther\UnattendGC\Setupact.log referring to the load.

More details: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-a-custom-script-to-windows-setup?view=windows-11

------------------------------------------------------------------------------------------------------------------------------------------------

--If the reply is helpful, please Upvote and Accept as answer--