Batch file to give the companion missing ammo, run this if the companion lost their ammo. Place this file in games root directory. Open console, click on NPC, type bat CompAmmo
Batch file to give you the companion weapons, run this if you lost their weapon. Place this file in games root directory. Open console, type bat CompWeapons