Skip to content

Instantly share code, notes, and snippets.

View kawells's full-sized avatar
👨‍💻
Lost in the sauce code

Kevin Wells kawells

👨‍💻
Lost in the sauce code
  • Parker Hannifin
  • Oxnard, CA
View GitHub Profile
@kawells
kawells / Install-Fonts.ps1
Created August 14, 2022 17:52
Batch install nested font files on Windows 10
# 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" )) {
@kawells
kawells / Uninstall-AdobeFlash.ps1
Created August 9, 2021 19:02
Uninstall-AdobeFlash
# 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