PSD icon indicating copy to clipboard operation
PSD copied to clipboard

OSinstall=N not exiting TS during Pre-Flight

Open JerichoJones opened this issue 2 years ago • 10 comments

I do an evaluation of the model and want to exit the TS if it is not supported. The OSInstall TSVar is getting set but the TS does not exit. Can I force it to exit without writing another script to do that?

JerichoJones avatar Jan 12 '24 16:01 JerichoJones

Isn't it better to run the PSDGather.ps1 script to get the information instead of running a task sequence? (https://github.com/FriendsOfMDT/PSD/blob/master/Scripts/PSDGather.ps1) Except I haven't fully understood your scenario, if I did not, please share more info about it.

GeoSimos avatar Jan 13 '24 18:01 GeoSimos

I'm checking for supported models with a WMI query. If unsupported I popup a message with data about the computer so I can add drivers. I then set OSinstall=N In MDT, after I set the TSEnv var the TS exits. image

JerichoJones avatar Jan 14 '24 01:01 JerichoJones

Ok that makes more sense, I have to ping the rest of the team and ask if this is feasible.

GeoSimos avatar Jan 14 '24 22:01 GeoSimos

Not sure if this will help. There is a new feature in the next release to allow these types of checks before proceeding through the PSDWizard. It isn't at the TS level though, its durign the PSDwizard start up...

Sneak preview... image

You will be able to control what is check with these settings:

image

PowerShellCrack avatar Mar 20 '24 00:03 PowerShellCrack

nice

JerichoJones avatar Mar 22 '24 18:03 JerichoJones

I have made so many changes to v2.2.8 that integrating updates is going to be an adventure.

JerichoJones avatar Mar 22 '24 18:03 JerichoJones

You made changes in PSD or in the Wizard? If it's in the wizard, maybe I can review those changes and see what I can incorporate?

PowerShellCrack avatar Mar 22 '24 22:03 PowerShellCrack

PSD. I posted them on my Github. https://github.com/JerichoJones/PowerShell-Deployment-Extension-Kit-Mods

JerichoJones avatar Mar 23 '24 02:03 JerichoJones

I have incorporated your mod for PSDWizardNew by enabling an option it to collapse the Task Sequence folders. In the next release there will be the option to set a CS property

PSDWizardCollapseTSList = YES

I don't know about the other scripts....

PowerShellCrack avatar May 07 '24 12:05 PowerShellCrack

@JerichoJones the new release is out with Deployment Readiness. Test it out and send feedback!

PowerShellCrack avatar Sep 16 '24 01:09 PowerShellCrack