To get the path reliably you'll need to call this by running the below command in PowerShell [Environment]::GetFolderPath([Environment+SpecialFolder]::Desktop) Alternatively you can run this in PowerShell (New-Object –ComObject Shell.Application).namespace(0x10).Self.Path 0x10 here is the Shell Special Folder Constant for desktop More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.