Installing Fonts With Powershell


hello,


i'm trying install bunch of fonts using vb or powershell. understand it's not enough copy fonts c:\windows\fonts these days. i've been having problems using shell.application object though. if run:

set objshell = createobject("shell.application")
set objfolder = objshell.namespace("c:\fonts")
set objfolderitem = objfolder.parsename("sbd_____.pfm")

nothing happens, either otf,ttf or .pfm fonts. fonts copied fonts folder don't show in apps or in registry.

the fonts install if add : objfolderitem.invokeverb("install")

is line literally doign same thing if manually install font when right clicking file?

my powershell script looks :

$fonts = 0x14
$objshell = new-object -comobject shell.application
$objfolder = $objshell.namespace($fonts)
$objfolder.copyhere("c:\fonts\vagroundedstd-thin.otf")

can add command objfolderitem.invokeverb("install")? or there install command powershell?



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607