Ampicillin is usually administered intravenously (IV) in neonates to ensure rapid and effective delivery. The dosage and duration depend on the type and severity of the infection, as well as the age and weight of the infant. In some cases, intramuscular injections may also be used.