The .NET Environment class can provide the paths to common folders like a user desktop:
Environment]::GetFolderPath("Desktop")
Use this line to get a list of allowed folder names:
[Enum]::GetNames([System.Environment+SpecialFolder])
The .NET Environment class can provide the paths to common folders like a user desktop:
Use this line to get a list of allowed folder names: