How do you decide whether to use PowerShell 5.1 or PowerShell 7 for enterprise automation?
Documentation: Microsoft Learn
Start from module and platform compatibility, authentication requirements, remoting behavior and support policy.
Interview · Question 28 of 34
Answer before reveal
Your draft
Write the answer you would give in an interview. The model answer stays hidden until you have drafted at least a short response.
A strong answer
Start from module and platform compatibility, authentication requirements, remoting behavior and support policy. Prefer PowerShell 7 for current cross-platform development where dependencies support it, but keep 5.1 where a required Windows-only module or product integration demands it.
Show it concretely
Expect this follow-up
How would you prevent a scheduled task from silently launching the wrong engine?