I have a very simple issue.
I want to run this command in a worklet policy…
I then want the output of this to show in the activity log. As far as I can tell, this isn’t possible, as I’ve tried a whole host of ways to get it working but always end up with a blank log (unless I do something useless like “write-host hello”). I’d be really happy for someone to prove me wrong.
“manage-bde -Status” doesn’t work in 32-bit Powershell, which is what we use for Worklets. Instead, you can use the code below to pipe the command to 64-bit, which will show up in the Activity Log. This code block will work for anything else you wish to pipe to 64-bit PS as well.
Thanks, almost there but the powershell.exe line isn’t accepting any of the parameters…
Did you happen to modify the code I sent you? I just tested it again with a Worklet and it was successful.
You can also try the code below using Powershell instead of piping CMD
Ok my bad - looks like something weird happened via the copy and paste - typed it verbatim and it works :) :)
Thank you!! I’d have never figured this out in a million years