Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Powershell To Get Active Directory Users And Groups into SQL!

    The following seems incorrect.
    CREATE VIEW vwActiveDirectorySummary
    AS
    SELECT
    ad.DomainName,
    COUNT(*) AS TotalADUsers,
     SUM(CASE
               WHEN ( AD.PasswordisExpired = 'True'
                      AND AD.AccountIsEnabled = 'True' )
                     OR AD.AccountIsEnabled...

Viewing post 1 (of 1 total)