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

Latest PoSH script failing when running as System from Ninja RMM's PoSH Module #112

Open
AngryAdminn opened this issue Jan 22, 2025 · 0 comments

Comments

@AngryAdminn
Copy link

AngryAdminn commented Jan 22, 2025

I have been trying to reach out to your support but have had no luck. I am running into issues with the latest build of your script. I have added a couple lines of code to pull in the properties from NinjaRMM but I don't think this would be the root of the issue. Hoping maybe I could come right to the source :)

##############################################################################
#Use Ninja-Property-Get to retrieve variables
try {
    $OrganizationKey = Ninja-Property-Get huntressCustomerName
    $AccountKey = Ninja-Property-Get huntressKey
} catch {
    Write-Error "Failed to retrieve Huntress properties: $_"
    exit 1
}
##############################################################################_

I have only changed 2 lines of your sciprt, shown below

##############################################################################
## Begin user modified variables
##############################################################################

# Replace __ACCOUNT_KEY__ with your account secret key (from your Huntress portal's "download agent" section)
#$AccountKey = "__ACCOUNT_KEY__"

# Replace __ORGANIZATION_KEY__ with a unique identifier for the organization/client (your choice of naming scheme)
#$OrganizationKey = "__ORGANIZATION_KEY__"

When running this on a Windows 11 machine I see the installer essentially fails to download. Right after gathering the network data, this is the next line of errors shown in the log. I did change the txt file name to "REMOVED" since this is the internet and didn't know what exactly that was. I was a bit confused as this is a Windows 11 machine, no IE. I tried running the UseBasicParsing as well, same result :/

[2025/01/12 21:50:00] Error: The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
[2025/01/12 21:50:00] WARNING, connectivity to Huntress URL's is being interrupted. You MUST open port 443 for https://eetee.huntress.io/REMOVED.txt in order for the Huntress agent to function.
[2025/01/12 21:50:00] Error: The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
[2025/01/12 21:50:00] WARNING, connectivity to Huntress URL's is being interrupted. You MUST open port 443 for https://huntress-installers.s3.us-east-1.amazonaws.com/agent/connectivity/REMOVED.txt in order for the Huntress agent to function.
[2025/01/12 21:50:00] Error: The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
[2025/01/12 21:50:00] WARNING, connectivity to Huntress URL's is being interrupted. You MUST open port 443 for https://huntress-rio.s3.amazonaws.com/agent/connectivity/REMOVED.txt in order for the Huntress agent to function.

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

1 participant