Please feel free to provide feedback or file bugs here.

Mandatory parameters value is not accessible in DynamicParam block if the value to the parameter is given when prompted.

Parameter value from param block is not available in DynamicParam block if not passed while calling the function/Script. Here if I set the parameter in param block as it as mandatory the script/function will prompt for the input and the input given is not available in DynamicParam block.

https://social.technet.microsoft.com/Forums/en-US/637bcff2-ab98-4ead-a036-38e7eb94a261/dynamicparams-with-mandatory-parameters?forum=winserverpowershell

2 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Prasoon Karunan V shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base