Dec 02 2020 09:06 PM
Hi,
the BaselineLocalInstall.ps1 in SCT 1.0 for Server 2019 throws a silent error under certain circumstances that is added to the error variable. Responsible is line 147:
if ($null -eq (Get-Command LGPO.exe -ErrorAction SilentlyContinue))
When the script runs successful, this is the only error in $Error. Since $Error is currently the only way to check whether the baseline script ran successful or not, this causes an issue.
The fix is simple, however. Please replace the error action with Ignore.
if ($null -eq (Get-Command LGPO.exe -ErrorAction Ignore))
This acts like SilentlyContinue but does not add the error to the $Error variable, and if the script ran successful $Error will be empty.
Dec 02 2020 09:08 PM
Also pinging @Rick_Munck for that to see.
Dec 03 2020 10:52 AM
@Daniel Niccoli @Rick_Munck - that change makes sense to me. Good idea - thanks.
Dec 04 2020 05:31 AM
@Daniel Niccoli we greatly appreciate the suggestion and will make the change in the Final 20H2 package we are planning to release towards the middle of the month!
May 25 2021 02:09 AM
May 25 2021 10:48 AM
@Daniel Niccoli it should have been included in the 20H2 package for client and server. Are you seeing something to the contrary?
May 26 2021 12:57 AM
May 26 2021 04:42 AM
@Daniel Niccoli unfortunately we don't have the cycles to go back and update old baselines. Our recommendations/ fixes are always reflected in the latest version. You can take the script out of the newest and use with your version, shouldn't be an issue.
As for version number, that is a required field that has to be there, technically LGPO and every other download should be it's own DL and version but we decided it was best to use a master name for the download and keep everything in one spot for ease.
May 26 2021 06:44 AM - edited May 26 2021 06:45 AM
@Rick_Munck Old? Server 2019 is still in Mainstream support until the second half of 2024. :thinking_face: Do you test the 20H2 baselines against Server 2019? Because if you do, then I trust that they work and don't break anything. The baseline does change some quite delicate settings.
May 26 2021 06:53 AM
Jun 09 2021 12:23 AM
Jun 09 2021 12:51 PM