Open Paul-Spagnola-Work opened 2 years ago
The suggested edit is actually not an option as no check is performed at all, you just return a ‘bool’ which translates to false by default.
Github formatted it wrong. I'll fix it.
I noticed it posted wrong, but when I edited the post and added the correct code markup, I forgot to click save. I just hist save now.
For some reason the Test-RunningAsSystem is returning false even though the start-transcript header shows the user as DOMAIN\SYSTEM
I am making the following suggestion for changing the fuction:
Suggested function (which is working properly in my testing):