trying to create local accounts with DeployWiz_Definition_ENU.xml and DeployWiz_LocalAccount.vbs

lupinlicious 131 Reputation points
2022-01-13T12:14:54.207+00:00

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

164688-image.png

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?

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
828 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. lupinlicious 131 Reputation points
    2022-01-13T15:35:58.65+00:00

    nevermind, moving the command line to custom section solved it :)