COM2 only serial port showing up?

So I have been trying to upload this code to my arduino for the past half hour, but everytime I try, no matter what I change, I always get this message

avrdude: ser_open(): can't open device "\.\COM2": Access is denied.

And I cannot figure out why it won't find my arduino, as I do have it plugged in on COM2, but under the device manager, it doesn't recognize it, and shows up as an unknown device.

I'm not sure if this is trouble with my computer or trouble with my arduino, but help on either would be appreciated.

This is your first time? or you upload codes before?
anyway if you are using Linux try to run Arduino IDE as super user.
if your system windows try to install driver by manual,
move it to other usb will help sometimes