```PowerShell
[Environment]::GetFolderPath("MyDocuments")
```
# Query the Registry^[[How can I determine the location of the current user's Documents folder from a Windows batch script? - Super User](https://superuser.com/questions/1567719/how-can-i-determine-the-location-of-the-current-users-documents-folder-from-a-w)]
```PowerShell
(Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders').Personal
```