Skip to content

Enable pwsh to work on Windows systems where mpr.dll and STA is not available - #11748

Merged
Andrew (anmenaga) merged 2 commits into
PowerShell:masterfrom
SteveL-MSFT:mpr-dll
Feb 4, 2020
Merged

Andrew (anmenaga) merged 2 commits into
PowerShell:masterfrom
SteveL-MSFT:mpr-dll

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Jan 31, 2020 •

Copy link
Copy Markdown
Member

PR Summary

mpr.dll is used for SMB network connections which is not available on some SKUs of Windows. In addition, STA is not supported on such SKUs. Fix is to handle case where mpr.dll is not on the system and fail gracefully. Similarly, even if you specify -mta to pwsh, we use STA for creating the jumplist, this throws an exception on systems where STA is not supported, so fix is to catch that exception and ignore.

PR Checklist

@anmenaga Andrew (anmenaga) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Feb 3, 2020
@anmenaga
Andrew (anmenaga) merged commit db370dc into PowerShell:master Feb 4, 2020
@ghost

Copy link
Copy Markdown

🎉v7.1.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the mpr-dll branch June 6, 2020 02:30
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants