I changed the ESP one time (I have more than 40 ESP in a box)
I changed the cable too
But the pc is a Surface from Microsoft, and I changed the cable's spot but still nothing
I think this is a very common problem with all ESP32 development boards. This is what I have found out.
If W11 does not register the USB connection as a COM port, it is because the driver in W11 for the USB-UART bridge chip on board is missing from W11. Go to Device Manager on W11, and see under "Other" what kind of bridge you have. Generally it is CH340 (older boards) or CP2102. Go to the manufacturers of the chip and download and install the driver supplied by the manufacturer. Reboot. W11 should now recognize the COM port, and IDE will display the COM under Ports.
So upload a sketch. If IDE complains before the upload that the connection has failed, that is another common problem. While uploading press boot, then click RST (or EN), and release boot. It is supposed to boot but probably does not. This I think is because of the utterly irrational manner in which an ESP32 gets into boot mode, which I can't find an explanation for. There is a special timing sequence the ESP32 wants from the RST (EN) pin.
So take a 10K resistor and a 10 uF capacitor and connect them in parallel. Connect the + of the capacitor/resistor to the EN pin. Connect the - side to GND. This worked for me on a couple of different WROOM-32 boards, and I was able to upload without pressing buttons. Good luck.