I need to include the step "Allow remote connections to this computer" with disable NLM option using SCCM Task Sequence for new server builds.
I was able to achieve this partially by below two powershell commands by incorporating into SCCM TS.
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value 0
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name UserAuthentication -Value 0
After the server build when checked the settings are grayed out but Allow remote connections to