Powershell

Nov 30, 2010 14:51

Powershell's errors are incredibly verbose. Unfortunately they're also content-free, making them completely useless.

Leave a comment

Comments 13

maekern November 30 2010, 22:40:55 UTC
Example?

Reply

praecorloth November 30 2010, 22:44:35 UTC
mount z: "\\server\share\"

New-PSDrive : Cannot find a provider with the name '\\server\share'. The name is not in the proper format
. A provider name may only be alpha-numeric characters or a Windows PowerShell snap-in name followed by a single '\' followed by alpha-numeric characters.
At line:1 char:6
+ mount <<<< z: "\\server\share"
+ CategoryInfo : ObjectNotFound: (\\server\share:String) [New-PSDrive], ProviderNotFoundException
+ FullyQualifiedErrorId : ProviderNotFoundBadFormat,Microsoft.PowerShell.Commands.NewPSDriveCommand

Sorry if the paste is fail. Y'know, Windows command shells 'n all that.

Reply

chardin December 1 2010, 00:54:43 UTC
Did you remove the double quotes from the "\\server\share\" thing?

Reply

praecorloth December 1 2010, 00:58:05 UTC
Y'know, I didn't do that. But it wouldn't make sense for me to try that since neither PowerShell nor cmd recognize paths with spaces in them if you don't have them in quotes.

Reply


maekern November 30 2010, 22:41:47 UTC
Kind of like how if you mistype or improperly construct the arguments for "net" it just gives you the help instead of saying what was wrong?

Reply

praecorloth November 30 2010, 22:45:22 UTC
Different from this, though this is pretty faily.

Reply


Leave a comment

Up