Hi, @clau marius
Thank you for posting in Microsoft Q&A forum.
We can see the second article does not mention performing an in-place upgrade from Windows Server 2012 R2, and from the tips, we know the PowerShell 5.1 or later is not a prerequisite for the in-place upgrade, it just used to collect some information.
https://video2.skills-academy.com/en-us/windows-server/get-started/perform-in-place-upgrade#:~:text=of%20your%20computer.-,Tip,-Get%2DComputerInfo%20requires
But the first article explicitly mentioned for Windows Server 2012 or Windows Server 2012 R2 only, we have to uninstall Windows Management Framework 5.1 before attempting the upgrade.
And according to my experience, we need to uninstall WMF 5.1 before we upgrade Windows Server 2012 R2.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.