-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
build_win2008.ps1 Failing version check #78
Comments
I'm not a developer on this, but I think line 37 in build_win2008.ps1 has the problem. --exactMatch inside the If conditional sends the string "--exactMatch" to the CompareVersions. I got the script working by removing one of these dashes You can add
The new edited line should look like I'll try to make a pull request tonight |
Thank you for fixing this one @infosec-intern! |
this is in response to issue rapid7#78 "build_win2008.ps1 Failing version check" exactMatch sends the string "--exactMatch" to the CompareVersions function instead of $False
Issue Description
The CompareVesrion function fails for me at the exact match check.
This is similar to issue #48 which was closed. However the updated version of the script does not work for me. It could be something weird on my system, not sure.
I did make a small change to the script and got it to work, see below:
I simply changed
If ($ExactMatch) {
toIf ($ExactMatch -eq $True) {
which fixed the error I was having.Again, this may just be some quirk on my system in particular, I'm not sure.
Host System
The text was updated successfully, but these errors were encountered: