-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Zero Touch" Deployment with PSD #176
Comments
Hello @jimbeam128, You have to add this in the rules tab (CustomSettings.ini file) of the properties of your deployment share:
This setting will skip the page of "Deployment Readiness". Because these are referenced when the boot image connects to the Deployment Share, you don't have to rebuild your boot image(s). |
Hi @GeoSimos I´ve added the Parameter to the configuration - and something changed... Now it looks like this: When I click on Next the deployment starts with the provided task-sequence. Do you have any clue? I´ve attached the customsettings.ini for troubleshooting... Regards Additionally I also added to the file, unfortunately same behaviour... |
Hi @jimbeam128, For the PSD Wizard settings in CustomSettings.ini file you can refer to the documentation here
To use the PSD properties, you need to include them first in the Properties section of the customsettings, clicking on the link, takes you to the list of those properties. |
Hi @GeoSimos , thanks again for your reply and the hint for the documentation. I´ve added it to properties, but then I got the same screen. I´ve tested several combinations after all and now the conclusion is that it seems not to be necessary that "SkipPSDWelcome" is set (it doesn´t make a difference with the blank screen) After I set the Parameter PSDWizard=Native, the Wizard got completly bypassed. |
That's great news! |
Yes, yes, it is... Here is how you do a Zero Touch Deployment with PSD: The PSDWizard, like the old MDT wizard, uses an XML to define what is displayed using a conditions statement. This statement is a string context form, aka CDATA, within the XML, that was meant for VB scripts to parse, but I use the same format for PowerShell. The file is located under the PSDWizardNew folder but you can view it here: PSDWizard_Definitions_en-US.xml. NOTE: I don't recommend change anything in here unless you know what your doing in this file, you should see something like SkipBDDWelcome=YES; or SkipPSDWelcome=YES
SkipDeployReadiness=YES
SkipTaskSequence=YES
SkipDiskSelection=YES
SkipDomainMembership=YES
SkipComputerName=YES
SkipRoleSelection=YES
SkipIntuneGroup=YES
SkipAdminPassword=YES
SkipLocaleSelection=YES
SkipTimeZone=YES
SkipApplications=YES
SkipSummary=YES However, there is one outside the Wizard that is new that I forgot to document 😞. This will skip the splash screen while the Wizard is loading. SkipPSDWizardSplashScreen=YES If you don't you will get this (it's a bug): The next step, of course, is to make sure you set the correct items such as
Something to also consider. Currently there is no property to set a default value for the two new pages: IntuneGroup and DeviceRole. You must use the wizard to set it for now. oh and BTW, in the PSDWizardGuide, it mentions SkipWelcome which is a typo and shouldn't be in there. When writing all this, I did do a dispart clean and tested these settings, and it worked. Send me feedback on this. If this is still not working, I would check to make sure you have the latest ZTIGather.xml file. This file defines what properties are allowed in PSD. If you don't have the latest file, then the properties must be declared in the [Settings] section. I will also add it to the PSDWizard Guide on how to set up a "Zero Touch Deployment with PSD" |
Hi @PowerShellCrack, again, I´ve tested several things with PSDWizard=PSDWizardNew, but I still get the same behaviour with blank Page and Buttons „Next“ and „Cancel“. |
Again, don't declare the PSD custom properties to the cs.ini; they were needed in previous versions but not this one. They are now part of ZTIGather.xml so there is no need to declare them. And since these are not overwritable it will ignore the property (at least this is what I find is happening). I outlined the ones for PSD wizard in red but all of them should be removed. I also don't understand the Priority logic (in green). It states to run _SMSTSORGNAME, then Default, but yet the skips are in a ZeroTouch section. That section won't be processed. It should look something like this: [Settings]
Priority = Default, ZeroTouch
Properties=
[Default]
OSInstall=Y
PSDDebug=YES
_SMSTSPackageName=PC wird vorbereitet
TimeZone=110
TimeZoneName=W. Europe Standard Time
KeyboardLocale=0407:00000407
UserLocale=de-DE
SystemLocale=de-DE
FinishAction=NONE
HideShell=NO
AdminPassword=abcxyz
EventService=http://<Servername>:9800
[ZeroTouch]
_SMSTSORGNAME=MyOrgName
TaskSequenceID=50
Computername=abcd1234
SkipBDDWelcome=YES
SkipDeployReadiness=YES
SkipTaskSequence=YES
SkipDiskSelection=YES
SkipDomainMembership=YES
SkipComputerName=YES
SkipRoleSelection=YES
SkipIntuneGroup=YES
SkipAdminPassword=YES
SkipLocaleSelection=YES
SkipTimeZone=YES
SkipApplications=YES
SkipSummary=YES
SkipPSDWizardSplashScreen=YES Try this out and see if it works |
Hi @PowerShellCrack, again, I´ve tested several things… Regarding the Priority: Again, it seems to me that there is still something wrong with the PSDWizardNew… |
for the ZTIGather.xml. Is the latest copy located in the _Tools\Modules\ZTIGather_ folder and/or Scripts folder? |
Regarding your 1st Question: No, the file wasn´t updated... - I ran an update on the PSD Share to the current version 2.3.0 from yesterday. All Files are updated. When I Test, same behaviour. I agree that this is really weird. It seems that the behaviour of your environment is the opposite of mine... Right now, I also get a "Debug Console" Button which does nothing when I click on that The Version is displayed v2.3.3 as yours. When I ran the test in my environment selecting the default values I got the "issue" that the Option "Disk Selection" came up. By the way: Did you also add "_SMSTSOrgName=ZeroTouch" to the bootstrap.ini and rebuilded your PE-Image? |
that looks to me the PSDWizardNew module is not updated. That displayed version actually comes from the CHANGELOG.md in the Scripts\PSDWizardNew folder, but I'm starting to think a dynamic version is not the best idea. The actual module is 2.3.5. I can see now CHANGELOG from my development repo was never moved over. The debug button should not show; that is an ALWAYS HIDDEN button. I removed the code the enabled it, PSDDebug=True, a few versions back. However, if you hit F11, it will toggle a PowerShell debug window, but if you close it, it will close the entire PSDWizard as well. ....i am still working that bug out... To confirm this, even though the debug button exists in the UI design files (xaml), here is the code that hides that button and that is the only instance of it (besides a newer UI I am writing...) BTW, what I demonstrated in the last response IS how it supposed to react. However, I did not set _SMSTSOrgName=ZeroTouch. I will test that soon. With that, I have a few asks:
This does bring up a concern though. If that module is not updated, what other modules have not updated...and if that is the case, then we may need to relook at the Install-PSD script. |
Ok done and added you as an assignee of this issue. |
Ok, I will do the things adviced at the beginning of the next week and will report the results then. Thanks |
So, I´ve done another round and compared the repo-file PSDWizardNew and that one on my local installation. They are exactly the same. - I´ve update the PE-Image. After I´ve booted the PE I get an Error right now: The Servername is not displayed right now. - I think therefore it cannot connect to the deployment share any more. I made a snapshot before the update. Will roll back right now... |
I really think this has to do with the cs.ini. Can you send logs and Cs.ini? Instead of trying to fix what is missing in the current deployment share have you tried creating a COMPLETELY NEW PSD share? |
Hello again, I´ve tested the constellations again in all directions. To make it more visible here the behaviour: PSD-Parameter "PSDWizard" included in Properties: Zero-Touch Config: -> Classic PSD-Wizard comes up (with blank Screen and "Next / Cancel" Buttons) When I define PSDWizard=Native in the ZeroTouch Section, I can achieve to have a ZeroTouch deployment without an Assistant. PSD-Parameter "PSDWizard" not included in Properties: Zero-Touch Config: -> Zero-Touch starts directly without Assistant - I think because of "Default Native Assistant "Fallback"" In the Default-Section PSDWizard is set to PSDWizardNew, but the Native Wizard comes up. So I think there mus be a problem with the PSDWizardNew when all Parameters are defined to skip the pages of the Assistant to achieve a Zero-Touch deployment... |
Hello again, I just went through the logs and did a more couple of tests and now I have a working config.... Bootstrap.ini looks like this: Priority=PSDRoots,Default Customsettings.ini looks like this: [Settings] In the ZeroTouch - Section the parameters are all defined and PSDWizard is configured for PSDWizardNew. Now the LiteTouch is working with the PSDWizardNew and the ZeroTouch does not come up with the blank Window... I could see in the logs that the properties are "double-delared" like this: It seems that I had the same Issue with "PSDDeployRoots" due to the fact that there was a Whitespace in front... I looked up all "errors" where the properties were "doubled", now it runs as desired and expected... |
So, is everything GTG? was the root cause a space? That has to be frustrating. 🤯 What is interesting in your last comment is you still needed to add SkipDeployReadiness and SkipPSDWelcome, these are in the Overall, I think the outcome is we need to add the trim to each property value when the module reads them. |
Yes, everything works as desired including set the property PSDWizard=PSDWizardNew in the ZeroTouch-Section. As you adviced before, I´ve created a complete new deploymentshare with "Install-PSD". I had a look a the ZTIGather.xml´s in that new folder. I could see that the PSD-Properties are missing in that file. So I think there must be still something wrong with the installer then... Yes, trimming the strings would be a good idea... :-) Furthermore would be good if there would be a check if the property is already declared in customsettings.ini or bootstrap.ini. Get-PSDSettings: Changing property _SMSTSORGNAME _SMSTSOrgName to ZeroTouch, was Empty |
Hello,
I want to realize a "zero touch deployment" with PSD and I already managed to tweak all steps from the assistant away.
The only screen I still get is this here:
So I still have to click on "Begin" to start the deployment. I filter the auto-deployment by mac-address...
Is there any chance to auto-start the deployment, when all questions are already answered (in the customsettings.ini file)?
Regards
The text was updated successfully, but these errors were encountered: