nevermind, moving the command line to custom section solved it :)
trying to create local accounts with DeployWiz_Definition_ENU.xml and DeployWiz_LocalAccount.vbs
Hello,
I want the option for my users to create their own username and password and found the following post:
https://social.technet.microsoft.com/Forums/en-US/cc905a03-db85-4c7b-9ca4-c9c83b083864/w10-prompt-to-create-local-user-during-mini-setup?forum=mdt
In my task sequence for my Windows 10 installation, I created a new command line according to the picture: cmd /c net user %LocalUserName% %LocalUserPassword% /ADD
When I PXE-boot I have the option to create a local account and password but it fails and the smstslog shows me the following:
<![LOG[Expand a string: cmd /c net user %LocalUserName% %LocalUserPassword% /ADD]LOG]!><time="03:12:49.354+480" date="01-13-2022" component="TSManager" context="" type="0" thread="424" file="executionenv.cxx:776">
<![LOG[Expand a string: ]LOG]!><time="03:12:49.354+480" date="01-13-2022" component="TSManager" context="" type="0" thread="424" file="executionenv.cxx:776">
<![LOG[Start executing the command line: cmd /c net user %LocalUserName% %LocalUserPassword% /ADD]LOG]!><time="03:12:49.354+480" date="01-13-2022" component="TSManager" context="" type="1" thread="424" file="instruction.cxx:732">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="03:12:49.354+480" date="01-13-2022" component="TSManager" context="" type="1" thread="424" file="instruction.cxx:761">
<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="03:12:49.354+480" date="01-13-2022" component="TSManager" context="" type="0" thread="424" file="executionenv.cxx:776">
<![LOG[Executing command line: cmd /c net user %LocalUserName% %LocalUserPassword% /ADD]LOG]!><time="03:12:49.354+480" date="01-13-2022" component="TSManager" context="" type="1" thread="424" file="CommandLine.cpp:819">
<![LOG[Process completed with exit code 2]LOG]!><time="03:12:49.385+480" date="01-13-2022" component="TSManager" context="" type="1" thread="424" file="CommandLine.cpp:1115">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="03:12:49.385+480" date="01-13-2022" component="TSManager" context="" type="1" thread="424" file="instruction.cxx:816">
<![LOG[Failed to run the action: Add Local Accounts.
The system cannot find the file specified. (Error: 00000002; Source: Windows)]LOG]!><time="03:12:49.385+480" date="01-13-2022" component="TSManager" context="" type="3" thread="424" file="instruction.cxx:924">
I don't understand "cannot find the file"? The files are there in my script folder at the deploymentshare and I also copied the files to the LiteTouchPE_x64.wim but still gets the same error.
Anyone who tried this before?