I'm trying to determine whether a user (the one running the script, with or without run as) has certain user rights policies applied. Since secedit /analyze refers only to the actual setting and ignores privilege propagation by group membership, it is useless in this case.
I'm referring to these privileges: SeTcbPrivilege SeIncreaseQuotaPrivilege