Skip to content

Commit

Permalink
Add PowerShell CLM
Browse files Browse the repository at this point in the history
  • Loading branch information
n3rada committed Mar 17, 2024
1 parent 9337eb3 commit 63e3d95
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions toboggan/src/operating_systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 63e3d95

Please sign in to comment.