Skip to main content

206000 - Script Command Not Supported on This Platform

Uploading...Agent error code #206000 indicates that the script configured on the knoc is not something the agent will run on the platform it is installed on. The agent refuses it before executing anything.

On Windows the agent runs PowerShell scripts only, and it refuses a script path that sits inside a Windows system directory.

Common causes include:

    The Command field names a shell script, a batch file or an executable on a Windows agent, rather than a .ps1 file The script path points into a Windows system directory such as C:\Windows\System32 A knoc written for a Linux agent was assigned to a Windows agent

    Steps to Resolve

    Use a PowerShell Script on Windows

      In the Knocknoc admin interface, open the backend configuration for the affected knoc Set the Command to a .ps1 file Save and retry the grant

      Move the Script Out of a System Directory

      The agent refuses to execute from Windows system directories. Place the script somewhere dedicated to it, for example C:\ProgramData\Knocknoc\scripts\, and make sure the directory is writable only by administrators so its contents cannot be altered by an unprivileged user.

      Confirm Which Agent the Knoc Targets

      A script knoc is tied to the platform its agent runs on. Check the agent assigned to the knoc and confirm the script suits that operating system. If you run both Windows and Linux agents, use a separate knoc for each with the appropriate script.