Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $fonts = (New-Object -ComObject Shell.Application).Namespace(0x14)
- dir *.ttf | %{
- if (test-path "C:\windows\fonts\$($_.name)") {
- Write-Host $_.name " Font already installed\n"
- } else {
- $fonts.CopyHere($_.fullname)
- Write-Host $_.name " font installed\n"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement