Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add NetFramingBase to TPA for AD module compat#113

Open
jborean93 wants to merge 1 commit into
PowerShell:masterPowerShell/PowerShell-Native:masterfrom
jborean93:tpa-ad-modulejborean93/PowerShell-Native:tpa-ad-moduleCopy head branch name to clipboard
Open

Add NetFramingBase to TPA for AD module compat#113
jborean93 wants to merge 1 commit into
PowerShell:masterPowerShell/PowerShell-Native:masterfrom
jborean93:tpa-ad-modulejborean93/PowerShell-Native:tpa-ad-moduleCopy head branch name to clipboard

Conversation

@jborean93
Copy link
Copy Markdown

Adds System.ServiceModel.NetFramingBase to the list of Trusted Platform Assemblies so that a PSSession instance can load that assembly by name. The ActiveDirectory module uses this assembly and without this change it will fail to import into a PowerShell 7 configuration endpoint.

FIxes: PowerShell/PowerShell#27199

Adds System.ServiceModel.NetFramingBase to the list of Trusted Platform
Assemblies so that a PSSession instance can load that assembly by name.
The ActiveDirectory module uses this assembly and without this change it
will fail to import into a PowerShell 7 configuration endpoint.
@jborean93
Copy link
Copy Markdown
Author

jborean93 commented Jun 3, 2026

It looks like this is a transitive dependency of System.ServiceModel.NetTcp. The PR PowerShell/PowerShell@e069c1d updated System.ServiceModel.NetTcp to a newer version which brought in the transitive dependency of System.ServiceModel.NetFramingBase but as that was never added to the TPA it would fail to be loaded.

I have not verified but this seems to be a regression with 7.6.0 which is when the updated assembly was introduced. While not ideal, a workaround for people using Enter-PSSession to a PowerShell 7 based endpoint is to run this before importing the module

Add-Type -Path "$PSHome\System.ServiceModel.NetFramingBase.dll"

For people relying on JEA with a restricted language mode you can achieve the same thign automatically by adding this to your session configuration (.pssc) file:

@{
    ...
    AssembliesToLoad = @(
        "$PSHome\System.ServiceModel.NetFramingBase.dll"
    )
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ActiveDirectory module does not work over remoting in PS 7.6

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.