public/Test-RBACFeatures.ps1

Function Test-RBACFeatures {
    $ObjectGUIDs = get-ADObjectGUIDs
    $SchemaConfigPath = $((get-adrootdse).configurationNamingContext)
    @{
        sudoRoles = $ObjectGUIDs.name.contains("sudoRole")
        sshPublicKeys = $ObjectGUIDs.name.contains("sshPublicKeys")
        LAPS = $ObjectGUIDs.name.contains("ms-LAPS-EncryptedPassword")
        PKI = [bool](test-path "AD:CN=OID,CN=Public Key Services,CN=Services,$SchemaConfigPath")
        
    }
}