-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add error catch for unauthorized access when removing AppLocker
test files
#15881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@PoshChan Please remind me in 23 hours |
@TravisEz13, this is the reminder you requested 23 hours ago |
AppLocker
test files
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
PR Summary
Some anti virus applications appear to be changing access of test files written for AppLocker policy test, preventing PowerShell from successfully starting. Issue #15523.
PR Context
We already catch file IO exceptions when removing these test files, so I feel it is Ok to also catch UnauthorizedAccessException exceptions as well.
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).