PowerShell Genie

How do single-quoted and double-quoted strings differ in PowerShell ?

Question 1 min read Windows PowerShell 5.1 and PowerShell 7

Documentation: Microsoft Learn

Double-quoted strings expand variables and subexpressions; single-quoted strings are literal except for the escape rules needed to represent a quote.

Interview · Question 2 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

Active Directory PowerShell documentation

Continue
Genie guideHow do single-quoted and double-quoted strings differ in PowerShell ?

Double-quoted strings expand variables and subexpressions; single-quoted strings are literal except for the escape rules needed to represent a quote.