ActiveDirectory module does not work over remoting in PS 7.6
Author: TadasCreated Apr 7, 2026Updated Sep 17, 2026
LabelsNeeds-Triage
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Register-PSSessionConfiguration -Name TestingAD # Just to be sure the endpoint is 7.6
$s = New-PSSession -ComputerName $env:COMPUTERNAME -ConfigurationName TestingAD
Invoke-Command -Session $s -ScriptBlock { Get-ADRootDSE }
# or the affected type
Invoke-Command -Session $s -ScriptBlock { [System.ServiceModel.NetTcpBinding]::new() }
# or the affected assembly itself
Invoke-Command -Session $s -ScriptBlock { [System.Reflection.Assembly]::Load('System.ServiceModel.NetFramingBase, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') }
All of these commands work interactively. I'm pretty sure it is a case of needing to update the TPA to include System.ServiceModel.NetFramingBase just like
- https://github.com/PowerShell/PowerShell/issues/18587 / https://github.com/PowerShell/PowerShell-Native/pull/83
- https://github.com/PowerShell/PowerShell-Native/pull/56
- https://github.com/PowerShell/PowerShell/issues/4487
Expected behavior
Get an AD object back
Actual behavior
> Invoke-Command -Session $s -ScriptBlock { Get-ADRootDSE }
Attempting to perform the InitializeDefaultDrives operation on the 'ActiveDirectory' provider failed.
Get-ADRootDSE: Could not load file or assembly 'System.ServiceModel.NetFramingBase, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
Error details
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 7.6.0
PSEdition Core
GitCommitId 7.6.0
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Source: PowerShell/PowerShell