Skip to main content
added 42 characters in body
Source Link
phuclv
  • 28.4k
  • 15
  • 128
  • 252

Another way, using the PresentationCorePresentationCore assembly:

Add-Type -AssemblyName PresentationCore
[Windows.Media.Fonts]::SystemFontFamilies | Select-Object -Property Source
Add-Type -AssemblyName PresentationCore
[Windows.Media.Fonts]::SystemFontFamilies | Select-Object -Property Source

(tested on Windows 10)

Fonts Class (System.Windows.Media)
FontFamily Class (System.Windows.Media)
Using Static Classes and Methods - PowerShell

Another way, using the PresentationCore assembly:

Add-Type -AssemblyName PresentationCore
[Windows.Media.Fonts]::SystemFontFamilies | Select-Object -Property Source

(tested on Windows 10)

Fonts Class (System.Windows.Media)
FontFamily Class (System.Windows.Media)
Using Static Classes and Methods - PowerShell

Another way, using the PresentationCore assembly:

Add-Type -AssemblyName PresentationCore
[Windows.Media.Fonts]::SystemFontFamilies | Select-Object -Property Source

(tested on Windows 10)

Source Link
arielCo
  • 185
  • 1
  • 7

Another way, using the PresentationCore assembly:

Add-Type -AssemblyName PresentationCore
[Windows.Media.Fonts]::SystemFontFamilies | Select-Object -Property Source

(tested on Windows 10)

Fonts Class (System.Windows.Media)
FontFamily Class (System.Windows.Media)
Using Static Classes and Methods - PowerShell