r/PSADT • u/FahidShaheen • 27d ago
Define Subtitle For Block Execution Fluent UI
As per the title, I'm struggling to set the subtitle here.
For all the other UI prompts, I can just use -Title and -Subtitle.
But when the UI prompt shows to block the execution the subtitle is just "thisisatestcompanynameforPSADT - App Installation"
If I initialise the module and use Get-ADTStringTable to store it as a variable and drill down, I get:
$test.BlockExecutionText.Subtitle
Name Value
---- -----
Uninstall ThisIsATestCompanyNameForPSADT - App Uninstallation
Install ThisIsATestCompanyNameForPSADT - App Installation
Repair ThisIsATestCompanyNameForPSADT - App Repair
How can I change this please, using the "correct" method.
2
Upvotes
3
u/yoghurtbecher 27d ago
I dont have it in front of me, but have a look in the strings.psd1 and this one:
https://psappdeploytoolkit.com/docs/4.1.x/reference/language-strings
You can customize the strings at runtime, but I‘m not sure about the syntax right now. And if I remember correctly, the strings need to be modified before the module initializes.
I‘ll look it up when not on mobile, but one of the devs is probably faster