This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified from https://blog.simontimms.com/2021/06/11/installing-fonts/ | |
# Installs all .ttf fonts in Windows | |
# First copy font dirs/files to c:\temp then run this | |
Set-Location "c:\temp" | |
Write-Output "Install fonts" | |
$fonts = (New-Object -ComObject Shell.Application).Namespace(0x14) | |
foreach ($file in Get-ChildItem *.ttf -Recurse) | |
{ | |
$fileName = $file.Name | |
if (-not(Test-Path -Path "C:\Windows\fonts\$fileName" )) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create temp folder and create null proxy to bypass existing proxy | |
New-Item -Path c:\flashplayeruninstall -itemtype Directory | |
$proxy=New-object System.Net.WebProxy | |
$webSession=new-object Microsoft.PowerShell.Commands.WebRequestSession | |
$webSession.Proxy=$proxy | |
Invoke-WebRequest -Uri https://fpdownload.macromedia.com/get/flashplayer/current/support/uninstall_flash_player.exe -OutFile c:\flashplayeruninstall\uninstall_flash_player.exe -WebSession $webSession -UseBasicParsing | |
$arguments = "-uninstall" | |
Start-Process c:\flashplayeruninstall\uninstall_flash_player.exe $arguments -NoNewWindow -Wait | |
Remove-Item -Path "c:\flashplayeruninstall" -Force -Recurse -Confirm:$false |