I’m installing hyper v feature to win 10 machines with script “Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All” after it has downloaded and installing, it promts: " do you want to restart computer to complite operation?" “Yes”, “no” (yes is default).
I would like to automate “yes” answear without pressing anything. This needs to be run ~20 computers, so pressing and waiting would take a lot of time.
Tried -confirm, -force and few another tricks without success