Forum Discussion
SDS Toolkit Error
- DeletedDec 11, 2017
Hi James
Have you tried using the powershell console? Using the ISE will give you that error.
\Magnus
Hi James
Have you tried using the powershell console? Using the ISE will give you that error.
\Magnus
- DeletedDec 11, 2017
James-
Were you able to get it working? I ask because I raised your issue with the SDS Developers, and we think you have found a bug in the toolkit. They have been working on it since last week and we hope to have an update in the next few days. If it is working for you now, great! But if not, I want to know about it and see if there is anything else I can do to help.
Thanks
- DeletedDec 13, 2017
Sorry, yes. I did get it working. The issue was only in PS ISE. It worked fine in Powershell itself, but looking around it looks the "bug" is with the Write-Message function. On line 80 where the function executes "Write-Host $message -ForegroundColor $foregroundColor", ISE throws the above error. If you modify the line to just output $message and cut out the switch that changes the foreground text color (IE. change it to something like "Write-Host $message" ) it runs just fine in ISE as well. I didn't dig into it any further than that, but it's definitely the source of the error in ISE.
Either way, I'm up and running again.