3 Replies Latest reply on Feb 16, 2017 2:58 PM by dustin.schnabel

    Prompting for Custom Information in Provisioning


      I am trying to determine if it is possible to prompt the user for information (much like the Device Name Prompter) as part of Provisioning once in Windows?  I need to have the end-user put in a user name as part of our provisioning steps to fuel a script.


      Any ideas appreciated.  I've tried writing my own powershell script and executing it, but the windows are executed out of sight of the end-user.



        • 1. Re: Prompting for Custom Information in Provisioning
          bcstring SupportEmployee



            I have seen other users accomplish this with their own custom Powershell or VBScript, but I do not know how they made sure it popped up where the user would see it. As of LDMS 2016, the Windows 10 version of WinPE also supports .NET programs, giving you another method to pop-up a prompt to gather the information.  If anyone has an example they could post that would be great.



          • 2. Re: Prompting for Custom Information in Provisioning
            phoffmann SupportEmployee

            "Possible" - yes ... the problem usually lies in making sure that the custom data will survive. "Best" way for that is usually to make sure that said custom data gets injected into the OS image at the same time.


            Here's the problem in a nutshell.

            1. You (somehow) send custom data while in WinPE.
            2. Data gets applied to the device - so far so good.
            3. Provisioning finishes up ... and you install the full agent.
            4. In its Windows "full scan", the device does NOT send the custom data (since it's not included in the OS) ... and thus it gets deleted on the Core since "hey, this is no longer part of the device".


            ... so that's why I strongly advise / suggest to make sure that the custom data is "on the finished device" as well. This also protects against "doh!" moments (if someone deletes the device entry you're not facing a "it's all gone" situation).


            That out of the way, here's a few pointers on the "how" side of things.


            • First up, basic sending of impromptu custom data can be done via miniscan (or "ldiscn32 /mini" these days) as per here -- How to send Custom Data with a Miniscan (if you're on 9.6 or newer, you shouldn't have a "miniscan.exe" - LDISCN32 has that function incorporated now).



            ... the rest is "up to you" by and large. Use Powershell if you want, or whatnot. Personal preference. The above should give you the information & tools needed to get this to work I hope .

            • 3. Re: Prompting for Custom Information in Provisioning

              Thank you both for your input!  I'll review the document and see if we can write the answer to the local machine.  Sounds like we should trigger a .Net prompter and write out the answer to a file to be consumed later by our scripts.