the PSADT script in our SCCM packages fails to run in constrained language mode, is there a way that enable full language mode in PSADT, effectively bypassing constrained language?
Configure AppLocker or Windows Defender to allow running scripts in the SCCM cache
about_Language_Modes
I think language mode is a safety feature not a security feature. So I’d try just plopping the following line near the top of the PowerShell script.
$ExecutionContext.SessionState.LanguageMode = ‘FullLanguage’