So, if one does not intend to receive it, it's invalid simpliciter. If some other dispositions are lacking, e.g. secretly doesn't believe in the Church (doing it for, say, social reasons) or isn't repetent of sin (planning on continuing living in sin, for instance), etc. ... then the Sacrament is valid, in so far as it confers the Baptismal character, but it does not confer sanctifying grace (remission of sins, justification). For the fomer, the Sacrament would be done absolutely, i.e. unconditionally ... unless, as St. Thomas stated, the intention was doubtful. In the latter case, the individual could go to Confession to then receive the justification (forgiveness of sins, sanctifying grace) that should have come with the initial reception of the Sacrament.