Skip to content

Instantly share code, notes, and snippets.

@mczerniawski
Created July 26, 2017 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mczerniawski/92de8c9f0477822d27d1f1676eb8d859 to your computer and use it in GitHub Desktop.
Save mczerniawski/92de8c9f0477822d27d1f1676eb8d859 to your computer and use it in GitHub Desktop.
begin {
Set-Variable Fonts -Value 0x14 -Option ReadOnly
$fontRegistryPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"
$shell = New-Object -ComObject Shell.Application
$folder = $shell.NameSpace($Fonts)
$objfontFolder = $folder.self.Path
#$copyOptions = 20
$copyFlag = [string]::Format("{0:x}",4+16)
$copyFlag
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment