# encoding: ascii
# api: powershell
# title: New-DesktopIni
# description: Create a desktop.ini in your PowerShell folder setting the icon and messing with the display name.
# version: 1.0
# type: class
# license: CC0
# x-poshcode-id: 1842
# x-archived: 2010-05-17T00:10:36
#
#
$di = [System.IO.FileInfo]"$(split-path $Profile -Parent)\desktop.ini"
set-content $di "[.ShellClassInfo]`r`nLocalizedResourceName=1$([char]160)WindowsPowerShell`r`nIconResource=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe,0`r`n[ViewState]`r`nFolderType=Documents"
$di.Attributes = $di.Attributes -bor [IO.FileAttributes]"System,Hidden" -bxor [IO.FileAttributes]"Archive"
