I'm not using Powershell, but I had a look in the .net documentation and found that error code 155 = "A null value was passed in where a null value is not allowed" . seems you are passing null somewhere, hope that helps.