Day: December 18, 2019

  • PowerShell Quick Tip: Accessing the ProgramFiles(x86) Environment Variable

    Accessing environment variables in PowerShell is easy, either: dir env: to view all of them, or: dir env:ProgramFiles to access a specific one. However, if you try that for the ProgramFiles(x86) environment variable you are greeted with the following error:view sourceprint? PS C:\> dir env:ProgramFiles(x86) x86 : The term ‘x86’ is not recognized as the name of a cmdlet, function, script file,…