Using the global error collection stored in the $Error variable to retrieve detailed error information in a powershell script

I was recently working with a developer who wanted to know if there is a way to get the error when they call the Invoke-Expression cmdlet. He was using the $LastExitCode to determine if it succeeded or not. Unfortunately, the $LastExitCode was not returning the error he was expecting. A better way of checking for…


Automating the silent deployment of RemoteApp and Desktop Connection.

I have a customer that was trying to automate the RemoteApp and Desktop Connection but couldn’t find any information that shows you the steps on how to do this. First, there is a feature on Windows 7 and Windows 2008 R2 called  RemoteApp and Desktop Connection, which provides Administrators the ability to group and personalize…