An extremely useful Powershell command…..
13 Jun 2011
By default Powershell exceptions and stderr outputs don’t give you much information beyond the exception name and the position in the script where the exception occurred. What you really want is a full stack trace.
You can get more information by running the following command; immediately after you’re troubled by a ‘troublesome’ exception
$error[0]|format-list force