Thank you for the reply.
The missing gpu is a RX580.
GPU0 is intel HD and if I set --auto without using the -g option, it will try to mine with gpu 0,1,2,3,4 (that is intel graphics + 4 RX580) and gives a known opencl error because you can't mine on an intel HD graphics. GPU5 is listed but it doesn't start any thread for it. Using -c config.txt and specifying the 5 gpu's works as intended.
This is on a Asus z270-p with intel G4560 cpu and windows 10 ltsb (version 1607), jce_cn_gpu_miner.033b6
I have the intel graphics enabled so that the windows dwm.exe process doesn't allocate video memory on any rx580. Without it, I have to reduce intensity on the main gpu or the system lags and BSOD's