Skip to content
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

PowerShell 7 / Windows 11 Support #41

Open
ivassallo19 opened this issue Jun 20, 2024 · 2 comments
Open

PowerShell 7 / Windows 11 Support #41

ivassallo19 opened this issue Jun 20, 2024 · 2 comments

Comments

@ivassallo19
Copy link

Haven't seen a mention of this anywhere.
Would be great for AaronLocker to be updated, to support PowerShell 7 / Windows 11.
Currently, there are a couple of points.

  • The .ps1 files look for PSVersion 5.1. The way it looks for it (Major -ne 5 -or Minor -ne 1) means that if 7.1 exists it will pass, so that should be improved anyway
  • SupportFunctions.ps1 uses 'Get-Content -Encoding Byte', and Byte encoding type was removed/replaced, so this causes an error

I've been able to modify my copy, but would be useful to have the main branch updated with these changes.

@ivassallo19
Copy link
Author

Just an additional note.
A few other changes in PowerShell 7.

  • Get-AppLockerFileInformation returns a FileInformation object, which has properties that are now a String, e.g. Hash is now a String instead of FileHash, so had to add logic that uses .Split for Hash as well as Publisher
  • Some instances where a cmdlet specifies an ErrorVariable, where if it is not triggered and the variable not set, .Count fails. I got around this by setting the variable first to an empty object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ivassallo19 and others