Getting the path of %AppData% in PowerShell December 11, 2022 by Tarik This is the shortest way: $env:APPDATA or for local app data: $env:LOCALAPPDATA