SCRT-HQ / PSGSuite

Powershell module for Google / G Suite API calls wrapped in handy functions. Authentication is established using a service account via P12 key to negate the consent popup and allow for greater handsoff automation capabilities
https://psgsuite.io/
Apache License 2.0
234 stars 68 forks source link

PowerShell Constrained Language mode #364

Open SCUR0 opened 2 years ago

SCUR0 commented 2 years ago

I've been implementing Applocker for my organization. This causes powershell to start running in constrained language mode. I noticed when running Import-Module PSGSuite I get the following error:

Import-Module : This module uses the dot-source operator while exporting functions using wildcard characters, and this
is disallowed when the system is under application verification enforcement.

Is there any plans to make PSGsuite compliant?

FISHMANPET commented 2 years ago

Looking at the requirements for Constrained Language mode, I'm not sure it would be possible to make PSGSuite compliant. The core concept of PSGSuite is a wrapper around the .Net libraries that Google provides for their APIs. The inability to use arbitrary .Net types or use Add-Type mean the very foundation of the module is rendered inoperable, and such it wouldn't be possible to actually make the module compliant.