• Welcome to Support Forum: Get Support for Patch My PC Products and Services.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Red5sb

#1
 https://github.com/PatchMyPCTeam/Community-Scripts/tree/main/Uninstall/Pre-Uninstall/Uninstall-Software

I can't add arguments when executing the PS1 from the cloud portal, so I'm trying to specify values like $DisplayName within the PS1 itself. I've set that value in the script in both locations where $DisplayName is set: under the 'AdditionalArguments' parameters, and under the Get-InstalledSoftware function.

Yet when I test run the PS1, it still prompts me to enter a value for DisplayName in the command line:
cmdlet Uninstall-Software.ps1 at command pipeline position 1
Supply values for the following parameters:
DisplayName:

Anyone know how I need to properly supply this value (or others) within the PS1?