Windows Agent Precheck Script
Precheck script is used to check if all the necessary permissions are configured to install the agent.
The tool should be run if the are issues with installation rollback for the Windows EDR Agent.
How to run the script
Download zip archive from https://assets.master.k3s.getvisibility.com/k3s/win-agent-install-precheck.zip
Unzip in the preferred directory
Open PowerShell as Admin
Switch to the preferred directory (
cd {directoryPath}
)Enter
.\win-agent-install-precheck.ps1
The following error may occour:

To fix this, run the command powershell.exe -noprofile -executionpolicy bypass -file .\win-agent-install-precheck.ps1
How to interpret results
If the output is green and says ”Have permission” for each step, everything is OK and the agent will be installed successfully.

If there is any red output saying ”DO NOT have permission” , it means the agent won’t be installed successfully and the missing permissions need to be set.

How to remediate discovered issues
Observe the failed output and manually set Create and update permissions for it.
Last updated
Was this helpful?