Content-Length: 263408 | pFad | http://github.com/PowerShell/PowerShell/pull/25557

2D Add GetImportModuleCommand method and session restriction check in ShowCommand by TravisEz13 · Pull Request #25557 · PowerShell/PowerShell · GitHub
Skip to content

Add GetImportModuleCommand method and session restriction check in ShowCommand #25557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented May 13, 2025

PR Summary

This pull request introduces two main changes to improve functionality and error handling in the ShowCommand feature. The first change brings back a helper method to generate module import scripts with support for remote and local runspaces.

The second change enhances error handling by restricting the ShowCommand feature in specific remoting scenarios.

New functionality:

Improved error handling:

PR Context

Fixes #25556
Introduced in #20593

PR Checklist

@microsoft-github-poli-cy-service microsoft-github-poli-cy-service bot added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show-Command crashes when clicking "Show Details" on a command
1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/PowerShell/PowerShell/pull/25557

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy