Author Posts

June 13, 2016 at 6:26 am

Hi guys. Last time i posted about AuthenticationInfo figuring how to make it work. A guy named Nitin (he's great!) actually provided me a solution to my problem. I have another question though. Is it possible for to give a user an option whether they want only some of the AuthenticationInfo members (not sure if I said it correctly) $true and some are $false? Is this correct:

AuthenticationInfo = MSFT_xWebAuthenticationInformation
{
Anonymous = $True -or $False
Basic = $True -or $False
Digest = $True -or $False
Windows = $True -or $False
}

So the goal is to ask the user whether they want to set the Anonymous to $True or $False. They only have two options.

June 13, 2016 at 10:36 am

Nope, you cant do that.

You will need to create some sort of UI for the user to choose and the results of the choices they make
will create a script with values of either $True or $False.

DSC isn't for Orchestration (though it does support dependencies and cross-node dependencies), so all the orchestration and decisions
need to happen before the script creates the mof file

June 14, 2016 at 5:26 am

Hi Arie, thanks for your prompt reply. I actually tried implementing the UI before, incorporating in the script, however it seems it doesn't work okay. I have changed the authenticationinfo to this:

AuthenticationInfo = MSFT_xWebAuthenticationInformation
{
Anonymous = $True
Basic = $False
Digest = $True
Windows = $False
}