The question is : what are the NET USE
possible outputs?
You can drown yourself with websites explaining how to use NET USE
command, but not a single one about what is coming out of it.
In my case I'm interested in the various error messages, and the interaction with the Powershell automatic variable $LASTEXITCODE
. I want to handle its output correctly but I don't know what can even happen (and no, I won't use New-PSDrive
).
Does someone knows the what or where I can find the information ?
Thanks