Active Directory PowerShell Commands
You can enable Windows PowerShell to execute commands on your Active Directory system. All standard Active Directory commands are supported on your system. For more information on Active Directory PowerShell commands, refer to ActiveDirectory Module documentation.
Note
You can use PowerShell commands to find your configuration information if it's running on a computer connected to the domain.
To get your forest and domain information, complete the following:
- Select the Windows Start button, search for PowerShell, and then select Windows PowerShell.
- To view your domain information, enter the following command:
Get-ADDomain, and then press the Enter key. - To view your forest information, enter the following command:
Get-ADForest, and then press the Enter key.
Active Directory Module for Windows PowerShell
To get the closest Domain Controller for a particular domain, the Active Directory source calls IQService.
As a prerequisite, the Active Directory module for Windows PowerShell on the IQService machine must be installed and the Active Directory DS role must be installed on a machine.
To enable the Active Directory module for Windows PowerShell, complete the following:
- Go to Server manager > Features > Remote Server Administration Tools > AD DS & LDS tools and select Active Directory module for Windows PowerShell.
To enable the Active Directory module for Windows PowerShell using PowerShell commands, complete the following:
- Select the Windows Start button, search for PowerShell, and then select Windows PowerShell.
-
In the PowerShell console window, use the
Install-WindowsFeaturecmdlet to install the module. Specify the feature name (RSAT-AD-PowerShell) and add the-IncludeAllSubFeatureparameter to add any child features. For example:
Documentation Feedback
Feedback is provided as an informational resource only and does not form part of SailPoint’s official product documentation. SailPoint does not warrant or make any guarantees about the feedback (including without limitation as to its accuracy, relevance, or reliability). All feedback is subject to the terms set forth at https://developer.sailpoint.com/discuss/tos.