Skip to content

Failed to set user elastic-agent-user password for service while installing unprivileged agent on Windows enrolled in Active Directory. #11248

@amolnater-qasource

Description

@amolnater-qasource

Kibana version:

VERSION: 9.3.0-SNAPSHOT
BUILD: 93303
COMMIT: 07655a0a20808401ae4531541ed85885b2f61fea
Artifact: https://snapshots.elastic.co/9.3.0-05c2ec24/downloads/beats/elastic-agent/elastic-agent-9.3.0-SNAPSHOT-windows-x86_64.zip

Preconditions:

  1. 9.3.0-SNAPSHOT Kibana cloud environment should be available.
  2. Active Directory should be setup.
  3. Windows Server 2025 should be available and should be connected to Active Directory.

Steps to reproduce:

  1. Run elastic-agent install command using --unprivileged flag.
  2. Observe elastic-agent failed to install and below error is observed:
    Error: error installing package: error getting service installation options: failed to set user elastic-agent-user password for service: call to NetUserSetInfo failed: status=2221 error=0

Expected behavior:
Elastic agent should be installed using --unprivileged on Windows enrolled with Active Directory.

Screen Capture:

Image Image

Linked Feature ticket:
#11079

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teambugSomething isn't workingimpact:highShort-term priority; add to current release, or definitely next.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions