Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $fonts = (New-Object -ComObject Shell.Application).Namespace(0x14)
  2. dir *.ttf | %{
  3.     if (test-path "C:\windows\fonts\$($_.name)") {
  4.         Write-Host $_.name " Font already installed\n"
  5.     } else {    
  6.         $fonts.CopyHere($_.fullname)
  7.     Write-Host $_.name " font installed\n"
  8.     }
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement