It is used to treat infections caused by certain kinds of viruses. Penciclovir is an antiviral medicine. Zovirax interferes with the replication of herpes viruses and is used to treat shingles chickenpox and genital herpes.