Issue Running Script

Dear all,

I may do something wrong, but I can’t figure why I’m not able to run a script from the the dashboard, even though it’s working properly on vscode. plus the script asks me to fill in both script arguments and only 1 is “mandatory”

params are the following :

[CmdletBinding()]

param(

    [parameter(Mandatory=$true, HelpMessage="Site server where the SMS Provider is installed")]

    [ValidateScript({

        Test-Connection -ComputerName $_ -Count 1 -Quiet

    })]

    [ValidateNotNullOrEmpty()]

    [string]$SiteServer = "server.test.local",

    [parameter(Mandatory=$false, HelpMessage="Enter the Name of the applications you're looking for")]

    [string]$AppName

)

Any ideas why this script won’t run on the UA ?

the rest of the script remain in begin / process / end script blocks.

Well, it’s may be a weird bug, but if I edit the default value passed to the SiteServer Parameter, the “Run” button turns blue and the script can be started.

The second parameter though, remains flagged as mandatory while it’s not suppose to. I’ll keep digging.

Cheers

Looks like a bug to me. I will see about getting it fixed.

This has been resolved and will be included in PSU 1.2.