diff --git a/toboggan/src/operating_systems.py b/toboggan/src/operating_systems.py index dc7a3b4..2f9c5f6 100644 --- a/toboggan/src/operating_systems.py +++ b/toboggan/src/operating_systems.py @@ -658,11 +658,19 @@ def _get_short_system_info(self) -> str: return short_system_info def _handle_os_specific_cases(self) -> None: + + # Check the CLM level + if result := self._execute( + command=r"$ExecutionContext.SessionState.LanguageMode" + ): + print(f"[Toboggan] Powershell language mode: {result}") + self.__check_domain_join() if result := self._execute( command=r'"$($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor).$($PSVersionTable.PSVersion.Build).$($PSVersionTable.PSVersion.Revision)"' ).strip(): print(f"[Toboggan] PowerShell version: {result}") + # System-level security mechanisms self.__analyse_path_variable()