-
Notifications
You must be signed in to change notification settings - Fork 22
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
get-msisummaryinfo : A share violation has occurred #39
Comments
A path argument is required but doesn't seem like it's enforced for parameter binding. While technically it's a breaking change, since this invocation only errs it should be okay to make a breaking change to require at least one argument. To see how to use the cmdlets, please run |
Thanks, I'm used to help being displayed when no arguments are passed. This is traditionally how commands behave. "A share violation has occurred" doesn't explain that an argument is required. It sounds more like a bug in the code. |
PowerShell doesn't work that way, unfortunately. You can pass So, just to be clear, this cmdlet (or any cmdlet, unless they handle it themselves which would be non-standard) will not display help when no arguments are passed. Still, I can fix this specific problem since it shouldn't fail that way. It (and all other cmdlets) will prompt for required arguments, though. |
Note to self: this happens with several cmdlets. Was there some reason why or was it just an oversight?
|
Digging in more, I'm going to leave all but Get-MSISummaryInfo because the others are designed to enumerate all files if no parameters. Not sure why I was getting the sharing violation on one machine, but was unable to reproduce on another. |
PowerShell Gallery has been updated with MSI version 3.3.4 with a fix for this specific issue. If Thanks for reporting! |
After installing from PSGallery I am getting this error when trying to use get-msisummaryinfo. I'm not sure what this means. Is there a step I am missing?
The text was updated successfully, but these errors were encountered: