PoshCode Logo PowerShell Code Repository

Difference between
modified post 6851 by Marcus on Thu 20th Apr 19:17 and
original post 2220 by Lee Holmes on Thu 9th Sep 21:42
Showold version | new version | both versions

    
11
## From Windows PowerShell Cookbook (O'Reilly)
22
## by Lee Holmes (http://www.leeholmes.com/guide)
44
Set-StrictMode -Version Latest
66
Push-Location
77
Set-Location HKCU:\Console
88
New-Item '.\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe'
99
Set-Location '.\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe'
1111
New-ItemProperty . ColorTable00 -type DWORD -value 0x00562401
1212
New-ItemProperty . ColorTable07 -type DWORD -value 0x00f0edee
1313
New-ItemProperty . FaceName -type STRING -value "Lucida Console"
1414
New-ItemProperty . FontFamily -type DWORD -value 0x00000036
1515
New-ItemProperty . FontSize -type DWORD -value 0x000c0000
1616
New-ItemProperty . FontWeight -type DWORD -value 0x00000190
1717
New-ItemProperty . HistoryNoDup -type DWORD -value 0x00000000
1818
New-ItemProperty . QuickEdit -type DWORD -value 0x00000001
1919
New-ItemProperty . ScreenBufferSize -type DWORD -value 0x0bb80078
2020
New-ItemProperty . WindowSize -type DWORD -value 0x00320078
2121
Pop-Location

ContributeMost Recent Contributions (feed)

Contribute ... Next Page