Passport expiry and H1/H4 transfer/extension

If you apply for H1B transfer with passport expiring within next 2 years, does the H1B for new employer is approved only till passport expiry date or for complete for 3 years?

Also if the H1B is approved for 3 years in above case, does the dependent H4 I-539 extension is approved till passport expiry of the H4 applicant or for 3 years coinciding with H1B approval?

H1B and H4 approvals will be given for full 3 years but the new i94 might be restricted to passport expiry date.

If new i94 is shorter, then, you would need to apply for new i94 after passport renewal.

A post was split to a new topic: Steps for H1B 8th year extension requires anything special?