Since Windows Server 2016 has a slightly different setup for the roles and services (application role no longer available).
I have rewritten the script from Kevin Green to quickly install SCOM 2016 prerequisites.
Thanks Kevin Green , and Steve Beaumont and Tim McFadden to be precise!
It will ask if you are installing on Windows Server 2016, if yes the installation will use the Windows Server 2016 specific settings.
And if you are installing SCOM 2012 or SCOM 2016.
Script “SCOM2012_2016_Prerequisites.ps1” – all
Script ““DownloadOnly_SCOM2012_2016_Prerequisites.ps1” only for downloading prerequisites