When should you use -LiteralPath instead of -Path?
Documentation: Microsoft Learn
Use LiteralPath when the path must be interpreted exactly, especially when names contain wildcard characters such as brackets.
Interview · Question 5 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
Use LiteralPath when the path must be interpreted exactly, especially when names contain wildcard characters such as brackets. Path can expand wildcard patterns.
Show it concretely
Expect this follow-up
What other path checks would you perform before changing or deleting the item?