Install-sqmAdModule
Other sqmSQLTool v1.8.2+
Ensures that the ActiveDirectory PowerShell module (RSAT) is installed.

Examples

Install-sqmAdModule
Install-sqmAdModule

    Checks whether the AD module is present and installs it if necessary.
Install-sqmAdModule -ContinueOnError
Install-sqmAdModule -ContinueOnError

    Returns $false if installation fails instead of throwing an exception.
if (-not (Install-sqmAdModule -ContinueOnError))
if (-not (Install-sqmAdModule -ContinueOnError))
    {
        Write-Warning "AD module not available - AD check will be skipped."
    }