When I try to uninstall WSP with following line, everything is ok:
Uninstall-SPSolution project.wsp # no error - OK
When I try to add switch parameter -AllWebApplications, I get error (something like This solution doesn't contains any resources for Web Application scope), which is also fine:
Uninstall-SPSolution project.wsp -AllWebApplications # error X - OK
BUT, when I add that switch parameter with FALSE value, I get error (same as above), which is wrong, isn't it?
Uninstall-SPSolution project.wsp -AllWebApplications:$false # error X again - WRONG
It looks like nothing changed from the line before this one, but it should...
In another way: My solution do NOT need AllWebApplication parameter, but I want to explicitly turn it off (meaning - specify it with FALSE value).
Question is: How can I specify this switch parameter as FALSE?
I just noticed that this is not happening with cmdlet Install-SPSolution.