PowerShell Genie

How do you make administrative PowerShell idempotent?

Question 2 min read Windows PowerShell 5.1 and PowerShell 7

Documentation: Microsoft Learn

Design scripts that compare current and desired state, change only what differs, and report repeatable administrative outcomes.

Interview · Question 13 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.

Primary documentation

Get-Service reference · Set-Service reference

Continue
Genie guideHow do you make administrative PowerShell idempotent?

Design scripts that compare current and desired state, change only what differs, and report repeatable administrative outcomes.