How to disable a task sequence in OS but having it enabled in WinPE

lupinlicious 136 Reputation points
2022-01-16T21:38:30.883+00:00

Hello,

I followed this guide so my users would be able to create their own local accounts, which works perfectly fine in Windows PE:
https://social.technet.microsoft.com/Forums/en-US/cc905a03-db85-4c7b-9ca4-c9c83b083864/w10-prompt-to-create-local-user-during-mini-setup?forum=mdt

I modified the script by adding a "repeat password" with validation, I basically looked on the .XML for: DeployWiz_AdminPassword.xml

But if I start Litetouch.vbs from Windows to install additional software, the task sequence ask for creation of local account and I won't be able to bypass it without create another account.

165433-image.png

In my DeployWiz_Definition_ENU.xml I added the following, with some hope I could use SkipLocalAccount=YES in my customsettings.exe but it didn't work.

165455-image.png

I also tried to add the following in my customsettings.ini:

[Settings]  
Priority=TaskSequenceID, Default, Model, Default, SetOSD  
Properties=MakeAlias, ModelAlias, OSDPrefix, TaskSequenceID  
  
[APPS]  
SkipLocalAccount=YES  
SkipCreateLocalAccount=YES  
  
[TaskSequenceID]  
SkipLocalAccount=YES  
SkipCreateLocalAccount=YES  

How can I enable CreateLocalAccount in WindowsPE but having it disabled in OS?

Thaaaank you!

BR

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,316 Reputation points Microsoft External Staff
    2022-01-17T08:15:44.363+00:00

    Hi, @lupinlicious
    Thank you for posting in Microsoft Q&A forum.

    You have modified the DeployWiz_Definition_ENU.xml, so when the deployment wizard show up, the user must create a local account.

    I think you may consider to create another deployment share for install software in OS.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

  2. lupinlicious 136 Reputation points
    2022-01-17T08:20:59.77+00:00

    Thank you @AllenLiu-MSFT

    Can I not do the following: \IP\DS\scripts\litetouch.vbs /TaskSequenceID:002 /SkipLocalAccount /SkipTaskSequence:YES", 0, True ?

    TaskSequenceID:002 would be to install applications (creation of user account would be unnecessary to see when you are inside Windows)

    Am I missing something about how the /Skip properties is working?

    Best regards

    0 comments No comments

  3. lupinlicious 136 Reputation points
    2022-01-17T16:40:42.597+00:00

    I also tried to create a new task sequence (ID=005) with the following command lines:

    cmd /c net user %LocalUserName% %LocalUserPassword% /ADD
    cmd /c net localgroup administrators %LocalUserName% /ADD
    

    And from my Windows installation task sequence, I added "Run Task Sequence" and selected ID 005 under "Custom Tasks".
    I have also selected "Hide this task sequence in the deployment wizard"

    Since the Windows installation has been assigned ID 005, it should run during WinPE but the task sequence should be hidden if I run LiteTouch.vbs?

    This also didn't work: \IP\DS\scripts\litetouch.vbs /TaskSequenceID:002 /SkipTaskSequenceID:005 /SkipTaskSequence:YES", 0, True ?

    0 comments No comments

  4. lupinlicious 136 Reputation points
    2022-01-18T07:25:02.993+00:00

    After that I have added the following line in ZTIgather.xml everything is working now with /Skip:

    <property id="SkipLocalAccount" type="string" overwrite="false" description="Skip Local Accounts)" />
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.