22 March 2013

Powershell: Public Desktop Environmental Variable

Posted By: Mick Pletcher - 1:11 PM


& Comment

Powershell 3.0 now has a public desktop environmental variable, CommonDesktopDirectory, unlike versions 1 & 2. In order to make the powershell public desktop environmental variable compatible across different versions, use the following line:

  • $desktop = ([Environment]::GetEnvironmentVariable("Public"))+"\Desktop"

About Mick Pletcher

My blog is here to help solve issues I have encountered and solved, publish scripts I have written, and educate others in understanding areas that are not well covered


  1. This blog is highly informatics, crisp and clear. Here everything has been described in systematic manner so that reader could get maximum information and learn many things. This is one of the best blogs I have read.


Copyright © 2013 Mick's IT Blogs™ is a registered trademark.