Last updated: 2026-03-31
This article provides a comprehensive guide to discovering Windows-based hosts and Hyper-V environments. By leveraging either WMI (default) or WinRM, the discovery engine collects detailed information on operating systems, services, software, and virtual machine data.
Prerequisites
Before starting, ensure your environment meets the following baseline requirements:
Network requirements
| Protocol | Default Ports | Connection Logic |
| WinRM | 5985 (HTTP) / 5986 (HTTPS) | Direct connection from the RC to the target. |
| WMI | 135 (RPC) + Dynamic Ports | Initiates on 135, then negotiates a dynamic port for data transfer. |
Discovered Information
With a properly configured discovery account, the system gathers:
Create a Windows or Hyper-V discovery job
1. Navigate to Discovery > HyperVisors / Nix / Windows.
2. Click Create and set the Platform to Windows.
3. Choose your communication protocol:
- To use WinRM: Select Discover Using WinRM. If running through WDS, ensure the WDS service is running under a Domain Account (Local System is not supported for remote authentication).
- To use WMI: Leave WinRM unselected (WMI is the default). 4. Add your target FQDNs, IP addresses, or CIDR ranges.
5. Click Add another Username/Password to provide credentials.
Query a Domain Controller (Active Directory)
Instead of entering static IPs, you can dynamically target devices found in AD.
1. Enable Query domain controller to obtain a list of discovery devices.
2. Enter the Domain Server IP/Hostname and LDAP credentials.
3. Select your LDAP Criteria (e.g., "All Computers" or a custom filter like (&(objectCategory=computer)(dNSHostName=\*.domain.com))).
Microsoft LAPS integration
If your domain uses Local Admin Password Solution (LAPS), the system can retrieve local admin passwords directly from AD.
1. Follow the Query Domain Controller steps above.
2. Enable the Use LAPS (only Applies to WDS) checkbox.
3. Ensure the LDAP account used has permission to read the LAPS password attributes in AD.
Device naming and duplicate prevention
To maintain a clean inventory, use the Naming Options section to standardize how devices are added:
- Hostname as Discovered: Keeps the name exactly as returned by WMI/WinRM.
- Hostname plus Domain Name: Forces the FQDN format.
- Alias Options: Use these to keep one format as the primary name while storing the other as a searchable alias.
Permission requirements
WMI and Windows Host Discovery
The discovery account requires Enable Account, Remote Enable, and Read Security permissions for the following WMI namespaces:
The account must also be a member of the Performance Monitor Users and Distributed COM Users groups on the target machine.
Application Dependency Mapping (ADM)
To discover service communications, the account generally requires Local Administrator privileges.
Port Matrix
| Ports | Protocol | Application Protocol | Notes |
| 5985 | HTTP | WinRM | Always required for WinRM. |
| 5986 | HTTPS | WinRM | Always required for WinRM. |
| 135 | TCP | WMI | Always required for WMI. |
| 137 | UDP | NetBIOS Name Resolution | Optional/Legacy. Windows 2000 and newer versions of Windows can work over port 445. |
| 138 | UDP | NetBIOS Datagram Service | Optional/Legacy. Windows 2000 and newer versions of Windows can work over port 445. |
| 139 | TCP | SMB | Optional/Legacy. Windows 2000 and newer versions of Windows can work over port 445. |
| 445 | TCP | SMB | Optional. Used by WDS to retrieve UDP communication and configuration files from targets. |
| 1024-5000 | TCP | RPC randomly allocated low TCP ports | Optional/Legacy. Used in Windows 2000, Windows XP, and Windows Server 2003. Newer versions of Windows use high TCP ports 49152 - 65535. |
| 49152-65535 | TCP | RPC randomly allocated high TCP ports | Always required (unless the entire environment predates Windows Server 2008). Used in Windows Server 2008 and later versions, and in Windows Vista and later versions. |
Best Practices and Limitations
Legacy Windows 2000 Discovery Prerequisites
To discover a legacy Windows 2000-based operating system, adjust the following OS settings on the machine hosting your WDS:
1. Change or create the HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\LmCompatibilityLevel element so that it has the value 1.
2. Change the WDS service user from System to one of the host users (like an admin account). You can try to run a discovery job without this step, but users report failure without making this change.