I recently made the switch to creating Class-based PowerShell DSC resources. In this, I discovered that each time I use $env:HOMEDRIVE it returns a null value. I tried enclosing it with ‘$()’ but that didn’t help.
Is there a way to use Environment Variables in the code that I’m missing?
Thanks in advance,
Russ