A. To declare constants, you use the New-Variable cmdlet. It includes a switch that lets you define the new variable as a constant, meaning its value can't be changed. (I'll make you run
to see which one.) Note that all variables are discarded when their scope is destroyed (such as when a script finishes running).
Do you have a Windows PowerShell question? Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.