- $desktop = ([Environment]::GetEnvironmentVariable("Public"))+"\Desktop"
22 March 2013
Powershell: Public Desktop Environmental VariablePosted By: Mick Pletcher - 1:11 PM
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:
About Mick PletcherMick 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