v3 - consider adding a -listavailable to get-psprovider to show available providers
Votes from Connect: 12
Original Date Submitted: 12/10/2011 6:51:41 AM
Handle: Oisin Grehan
Site Name: PowerShell
Feedback ID: 712875
Frequency: Always Happens
Regression: No, this is new to the most recent version
So, I don't know if anyone else noticed it yet, but the WSMAN drive is no longer mounted at start up: It's autoloaded. The problem I have with this is that it doesn't seem to be a valid candidate for get-command, even if wsman: were a function (which it's not, it appears, unlike "c:") So the problem here is unless you know it's going to work, you're not going to find it. Get-PSProvider shows nothing, and Get-PSDrive also comes up short.
It would seem that the analgous thing to do would be to have Get-PSProvider show unloaded providers (I was going to suggest get-psdrive but showing unmounted drives is just weird/wrong) like Get-Command shows unloaded commands.
I suggest the following syntax: get-psprovider -listavailable
Product Studio item created by Connect Synchronizer due to creation of feedback ID 712875 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=712875).
there is no way to see what providers are available, and their default drive triggers that would autoload the implementation.
show providers and default drives.
Internal BugId: 3189