-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Disable autoloading PSScheduledJob module from -Job cmdlets #11194
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
Disable autoloading PSScheduledJob module from -Job cmdlets #11194
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
I am NOT overjoyed with this being pushed out to 7.1. The experience of Preview.6 is, in my mind, not really acceptable. I favour a working solution in PWSH 7.0 RTM. |
|
@doctordns looks like it's targeted for 7.0 RC1, so it should definitely be in the 7.0 release as well. 🙂 |
|
I would assume it should already be in the daily builds, since it was merged to the master branch a week or so ago. 🙂 |
|
@vexx32, @doctordns master branch is now 7.1, we selectively triage and approve merged PRs to be taken to rc.1 branch. This one should be in rc.1 |
|
@SteveL-MSFT |
|
🎉 Handy links: |
PR Summary
Currently all
*-Jobcmdlets try to autoloadPSScheduledJobmodule that is not PS-Core compatible, so this autoload quietly fails, so it is a waste of resources.Furthermore, this autoload of
PSScheduledJobmodule creates bad user experience whenWinCompatis enabled (see issue #11164 ).Disabling this code provides solution to both issues.
Fix #11164
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.