Font install on Windows 2019 Server

$FONTS = 0x14;$objShell = New-Object -ComObject Shell.Application;$objFolder = $objShell.Namespace($FONTS);$objFolder.CopyHere("C:tempmicrfont.ttf") 

I’ve used this piece of powershell for the last 4 years to install fonts. In Windows 2019 this has changed and installs to the user profile at c:usersboblocalmicrosoftfonts. This is great if you want users to be able to install fonts without admin permission but I need the fonts installed for all users. Anyone know how to modify this code to install for all users aka c:windowsfonts? This runs as part of my puppet config so the user running the command is LocalSystem.

submitted by /u/phiber232
[link] [comments]

Leave a Reply