Reading contents of console

I’m working with manage-bde. Unfortunately, errors with -changepin aren’t recorded within PowerShell. I’ve tried passing the output to a variable that I could then parse for an error message, but that isn’t working for me either.

I’m trying to find a way to read the previous line from the console to check if there was an error produced. Has anyone encountered this before? Any suggestions would be appreciated.

submitted by /u/PsScrub420
[link] [comments]

Leave a Reply