Jump to content

Recommended Posts

Posted
Update: xcopy works through deployment but not booting oobe, I missed the restart between installing sccm client and removing it. So think that might have caused it. Otherwise its my answerfile. Though can't this just be ran as a powershell script after os install instead of waiting for the post install variable to run the script?

 

Ive set the answerfile and its still not booting to OOBE, just goes through to the login screen so maybe my answerfile needs different settings

Posted

Not sure if these resources will help??? Currently testing myself using MDT to deploy a WIMWITCH created image (e.g. stripped out apps, applied latest updates etc) with automatic Intune enrolment (devices). Although I have it working, I am just trying to resolve some the deployment errors when I attempt to inject the device-specific drivers via MDT (as opposed to having them part of the WIM). It works fine for a normal, domain-joined MDT Lite Touch deployment, so must have missed something out of the TS!

 

https://osddeployment.dk/2018/12/08/how-to-deploy-autopilot-device-fast-with-mdt/

https://msendpointmgr.com/2020/03/04/deploying-autopilot-with-mdt-on-usb-a-wim-witch-use-case/

Posted
We do exactly this in one of our task sequence. The trick is uninstalling the SCCM client at the very last minute and then sys prepping for OOBE. If I get a chance in the morning I’ll take some screenshots of the steps taken to achieve this in task sequence. The good news is it works really well just gotta get the order correct to ensure it removes the SCCM client.
Posted
Update: xcopy works through deployment but not booting oobe, I missed the restart between installing sccm client and removing it. So think that might have caused it. Otherwise its my answerfile. Though can't this just be ran as a powershell script after os install instead of waiting for the post install variable to run the script?

 

To answer my own question, you cannot remove sccm client through task sequence. It can only be removed after the sequence has finished. That is why it is called with the SMSTSPostAction variable.

Posted
To answer my own question, you cannot remove sccm client through task sequence. It can only be removed after the sequence has finished. That is why it is called with the SMSTSPostAction variable.

 

Got ya. So im my case it doesn't run the SMSTSPostAction however if i log on to the device and run it manually, it does run. The task sequence step looks correct

Posted (edited)
Got ya. So im my case it doesn't run the SMSTSPostAction however if i log on to the device and run it manually, it does run. The task sequence step looks correct

So I have it booting to OOBE, though the task sequence is set differently. As @MicrodigitUK said the task needs to be set as the last item in the list.

Here is my copy script

Capture.PNG

Here is the SMSTSPostAction Variable

Capture 2.PNG

Only issue is I can't get command prompt in OOBE, but that may be down to me using a vm.

Edited by jslate1980
Posted
So I have it booting to OOBE, though the task sequence is set differently. As @MicrodigitUK said the task needs to be set as the last item in the list.

Here is my copy script

[ATTACH=CONFIG]64307[/ATTACH]

Here is the SMSTSPostAction Variable

[ATTACH=CONFIG]64308[/ATTACH]

Only issue is I can't get command prompt in OOBE, but that may be down to me using a vm.

 

Mines like for like with yours and still doesn't go to OOBE. Doing my head in now! Are you able to share your unattend.xml file? At least i can rule that out.

Posted
Mines like for like with yours and still doesn't go to OOBE. Doing my head in now! Are you able to share your unattend.xml file? At least i can rule that out.

Here you go.

 


   
	
		
			true
			3				
			true
			true
			true
		
		
		
		
       
   

Posted

Use a task sequence as follows

 

* Restart in PE

* Partition Disks

* Apply operating system - Just feed this a fresh ISO from the volume portal, golden image days are over.

* Install drivers

* dism generalize/oobe

Posted
Mines like for like with yours and still doesn't go to OOBE. Doing my head in now! Are you able to share your unattend.xml file? At least i can rule that out.

Nope still not running the powershell script and i have double checked the command line. Its copying the file just not running it. I have exactly the same answer file as you also so the only thing left for me to try is a different image

Posted
Nope still not running the powershell script and i have double checked the command line. Its copying the file just not running it. I have exactly the same answer file as you also so the only thing left for me to try is a different image

Different image makes no difference either.

Posted
The only thing I can add is the script didn't run until the pc had brought up the login screen.

 

Ahh so on your test VM it didnt run the powershell script until it went to the login screen?

Posted
Correct then restarted into OOBE. I would leave it 5 minutes.

 

Still doesn't work. Not sure what else to check from this point as everything else seems correct.

  • 2 years later...
Posted
Did you ever manage to get command prompt working? I am having the same issue, OOBE is working via task sequence but command prompt seems to be disabled.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...