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.