To add a pendrive device in VMware ESXi VM, you can follow these steps:
1. On the Add Other Device dialog box, select USB Device.
2. Select the USB device you want to add from the list and click Next.
3. Configure the USB device settings and click Finish.