Skip to main content

Join Windows Devices to Active Directory with a Fileset

What this Fileset does

This Fileset template uses PowerShell Add-Computer to join managed Windows devices to an on-premises Active Directory domain. Configure it for your domain, pilot it on one representative device, and then use a Deployment for the intended Windows devices.

Requirements

  • An on-premises Active Directory domain and a delegated account permitted to join computers in the target organizational unit (OU)
  • A FileWave-managed Windows 10 or Windows 11 device running a domain-join-capable edition such as Pro, Enterprise, Pro Education, or Pro for Workstations
  • Working DNS, accurate system time, and network access from the device to the required domain controllers
  • FileWave Central access to import, edit, and deploy the Fileset

Protect the join credential. The supplied template reads a plaintext password from a Fileset environment variable. Use a dedicated, least-privilege domain-join account—not a Domain Admin account—and rotate or disable the credential after the deployment. Anyone who can inspect or export the configured Fileset may be able to recover it.

Configure the Fileset

  1. Download Active Directory Join.fileset.zip, extract it, and import the Fileset into FileWave Central.
  2. Open the Fileset, select its PowerShell script, then choose Get Info → Executable → Environment Variables.
  3. Set the following variables for your environment:
    • user — the delegated join account as DOMAIN\username or username@example.com
    • password — the current password for that delegated account
    • domain — the Active Directory DNS domain, such as example.com
    • ou — the target OU distinguished name, such as OU=Workstations,DC=example,DC=com

The supplied script forces a restart. Schedule the Deployment for a maintenance window. To manage the restart separately, remove Restart-Computer -Force from the imported PowerShell script before deployment and verify the edited copy on a pilot device.

The script deletes its local working copy after it runs. The original remains in the FileWave Fileset, but the endpoint copy is removed by the script.

Example:

zF92T1xX3g7wVFWw-embedded-image-xxmxphmm.png

Credential format: Use a fully qualified account such as DOMAIN\username or username@example.com.

Deploy and verify

  1. Save the Fileset and create a Deployment for one pilot Windows device.
  2. After the required restart, sign in with a local administrator account and run Test-ComputerSecureChannel in an elevated Windows PowerShell session. A healthy domain connection returns True.
  3. Confirm that the computer account exists in the intended OU and that a domain user can sign in.
  4. Review the Fileset result in FileWave, then expand the Deployment in controlled stages.