High Martin,
First check your webcam is working.
Try this for video
webcam /m/s |ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappers=1:nokey=0 -i -
You should get default video size if it is working or an error message
If mjpeg isn't working ! try yuyv
webcam /u/s |ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappers=1:nokey=0 -i -
Try this for audio
(from your output, my be you'll have 4 supported sample rate)
webcam /a24000 |ffprobe -v error -show_streams \PIPE\Webcam\Audio |more
You'll find in it 24000 or if not supporting, default supported sample rate is provided into the displayed messages
note: |more for better review messages or you can route them into a text file
You can test other sample rate to find out which ones are supported
Here, same sample rates you can try:
8000 11025 16000 24000 32000 22050 44100 48000
If you get information in both cases, than your webcam works.
Then, after starting webcam /a24000, run ffmpeg -y -i \PIPE\Webcam\Audio -c:a copy audio.wav