FriendsOfMDT / PSD

PowerShell Deployment
MIT License
471 stars 72 forks source link

Can't disable DeployReadiness #76

Closed TheMrThx closed 1 year ago

TheMrThx commented 1 year ago

Hi, in rules i set SkipDeployReadiness=YES but this didn't disable this step, how can I disable this?

PowerShellCrack commented 1 year ago

Have u tried adding it to the custom properties in the customsettings.ini? I believe that's is not a standard mdt property and will need to be called as custom. This also may need to be set as a standard property

TheMrThx commented 1 year ago

Yes, I tried add custom properties. My customsettings.ini looks like this:

[Settings] Priority=Default Properties=LogUserDomain,LogUserID,LogUserPassword,DriverPath,GenericDriverPath,FallBackDriverPath,PSDWizard,PSDWizardTheme,SkipDeployReadiness

[Default] userexit=ADK2004DartFix.vbs SkipDeployReadiness=NO SkipComputerName=YES SkipDomainMembership=YES OSDComputerName=PC-Deployed SkipAdminPassword=YES

SkipTaskSequence=YES TaskSequenceID=0001 SkipProductKey=YES SkipUserData=YES SkipLocaleSelection=YES SkipTimeZone=YES SkipApplications=YES SkipSummary=YES SkipCapture=YES SkipFinalSummary=YES OSInstall=Y PSDWizard=PSDWizardNew PSDWizardTheme=Classic _SMSTSORGNAME=ViaMonstra _SMSTSPackageName=PC soon to be in Service ;LogUserDomain=Server ;LogUserID=AccountName ;LogUserPassword=P@ssw0rd TimeZoneName=Central Standard Time JoinWorkgroup=WORKGROUP KeyboardLocale=0409:00000409 UILanguage=en-US SystemLocale=en-US SkipFinalSummary=NO FinishAction=NONE HideShell=NO AdminPassword=Start123!

EventService=

PowerShellCrack commented 1 year ago

I noticed in your customsettings.ini, the second entry under [default] is SkipDeployReadiness=NO; This needs to be YES, but this may be a mistake on your part during the copy/paste. However, I did run this through my test environment, and it worked like it was supposed to:

Using your customsettings.ini configurations, when I set SkipDeployReadiness=NO; it would look like: image

Where if I set SkipDeployReadiness=YES; it would look like this (notice no Deploy Readiness page is there?) image

Are you seeing the same thing? If not, can you post screenshots?

The only page I got was the Welcome screen. this can also be skipped by using the SkipBDDWelcome=YES or SkipPSDWelcome=YES

Now I do admit that there should be a check to see if all pages are skipped, it should go directly into deployment without the need to click next. Even though the wizard can be skipped SkipWizard=YES in the bootstrapp.ini; I will add that to my todo list.

TheMrThx commented 1 year ago

When I set SkipDeployReadiness=YES, it look like on second screenshots, is any way to disable need to click next on that page? I need this for zero touch deployment, also is any way to start deployment from windows like in stardart MDT u can run LiteTouch.vbs that start TS?

PowerShellCrack commented 1 year ago

Add SkipWizard=Yes to bootstrap.ini. This will disable the wizard completely. You will need to rebuild the boot wim after the change

TheMrThx commented 1 year ago

When I added SkipWizard=Yes to bootstrap.ini still have to click next to run deployment

GeoSimos commented 1 year ago

Have you rebuilt the boot image? Any changes in bootstrap.ini require a rebuild of it. And you have to use that image to boot and see the changes you applied.

TheMrThx commented 1 year ago

I rebuilt the boot image and use it to boot computer but still getting screen witch two buttons “next” and “cancel”

On Mon, 27 Mar 2023 at 00:53, George Simos @.***> wrote:

Have you rebuilt the boot image? Any changes in bootstrap.ini require a rebuild of it. And you have to use that image to boot and see the changes you applied.

— Reply to this email directly, view it on GitHub https://github.com/FriendsOfMDT/PSD/issues/76#issuecomment-1484249571, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANCTYJUJVS57IEOVUFGB54LW6DJJNANCNFSM6AAAAAAWGZSEE4 . You are receiving this because you authored the thread.Message ID: @.***>

GeoSimos commented 1 year ago

As Rick mentioned above, you must have also the property SkipBDDWelcome=YES in bootstrap.ini. Is this the case?

PowerShellCrack commented 1 year ago

I think this is a bug for the New UI. I will add that to my list. A workaround is to set PSDWizard=Native and SkipWizard=YES in the customsettings.ini. This will tell PSD to use the old UI, but since SkipWizard is set to YES, it will be skipped.

I did test this, but can you confirm this is a workaround?

GeoSimos commented 1 year ago

Rick, can we have some documentation regarding the PSDWizard property Values along with explanations? Thank you for the workaround!

TheMrThx commented 1 year ago

I also thank you for the workaround, now after I set PSDWizard=Native and SkipWizard=YES everything working like expected.

PowerShellCrack commented 1 year ago

Rick, can we have some documentation regarding the PSDWizard property Values along with explanations? Thank you for the workaround!

Yes I think that would be viable. I will work on that.

PowerShellCrack commented 1 year ago

@GeoSimos documentation on the PSDWizard is now in pull request. Detailed Guide for PSDWizard. Hopefully this will be merged to be part of the repo

GeoSimos commented 7 months ago

@GeoSimos documentation on the PSDWizard is now in pull request. Detailed Guide for PSDWizard. Hopefully this will be merged to be part of the repo

I have to engage @arwidmark and @DeploymentBunny to merge it to the release development branch repository first. The public repository is a replica of it.