FriendsOfMDT / PSD

PowerShell Deployment
MIT License
471 stars 72 forks source link

OSinstall=N not exiting TS during Pre-Flight #122

Open JerichoJones opened 5 months ago

JerichoJones commented 5 months ago

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?

GeoSimos commented 5 months ago

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.

JerichoJones commented 5 months ago

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

GeoSimos commented 5 months ago

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

PowerShellCrack commented 3 months ago

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

JerichoJones commented 3 months ago

nice

JerichoJones commented 3 months ago

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

PowerShellCrack commented 3 months ago

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?

JerichoJones commented 3 months ago

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

PowerShellCrack commented 1 month ago

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....