Add error catch for unauthorized access when removing AppLocker test files (#15881)

This commit is contained in:
Paul Higinbotham
2021-08-10 11:03:53 -07:00
committed by GitHub
parent 7c7526a3a1
commit e2c23fc5bd
@@ -444,6 +444,10 @@ namespace System.Management.Automation
{
// file is in use on Windows
}
catch (UnauthorizedAccessException)
{
// user does not have permissions
}
}
return false;