Skip to content

Instantly share code, notes, and snippets.

View TimLeitch's full-sized avatar

Tim TimLeitch

View GitHub Profile
@TimLeitch
TimLeitch / voice_prank_phrases.txt
Last active August 25, 2022 04:57
voice_prank_phrases.txt
I can see you type.,
I put the STD in STUD all I need is you.,
I like the way you stare at my screen.,
No, I will not make out with you!,
What we have here is a failure to communicate.,
The more you weigh the harder you are to kidnap. Stay safe, eat cake.,
I bet its called almond milk because no one can say nut juice with a straight face.,
I dont think inside the box. I dont think outside the box either. I dont even know where the box is.,
If were not meant to have midnight snacks why is there a light in the fridge.,
Im actually not funny, im just mean and people think im joking.,
@TimLeitch
TimLeitch / driver_update.ps1
Last active July 15, 2022 17:16
Update Drivers
#search and list all missing Drivers
$Session = New-Object -ComObject Microsoft.Update.Session
$Searcher = $Session.CreateUpdateSearcher()
$Searcher.ServiceID = '7971f918-a847-4430-9279-4a52d1efe18d'
$Searcher.SearchScope = 1 # MachineOnly
$Searcher.ServerSelection = 3 # Third Party
$Criteria = "IsInstalled=0 and Type='Driver' and ISHidden=0"
try {
new-NetQosPolicy -Name "Dialpad RTP" -AppPathNameMatchCondition "Dialpad.exe" -IPProtocolMatchCondition UDP -IPSrcPortStartMatchCondition 16384 -IPSrcPortEndMatchCondition 32768 -DSCPAction 46 -NetworkProfile All
}
catch {
{1: New-Item -Path "C:\IT" -Name "log.txt" -ItemType file -Value "Qos policy for port 16384 failed" <#Do this if a terminating exception happens#>}
}
try {
new-NetQosPolicy -Name "Dialpad SIP" -AppPathNameMatchCondition "Dialpad.exe" -IPProtocolMatchCondition TCP -IPSrcPortStartMatchCondition 443 -IPSrcPortEndMatchCondition 443 -DSCPAction 26 -NetworkProfile All
}
catch {
try {
new-NetQosPolicy -Name "Teams Audio" -AppPathNameMatchCondition "Teams.exe" -IPProtocolMatchCondition Both -IPSrcPortStartMatchCondition 50000 -IPSrcPortEndMatchCondition 50019 -DSCPAction 46 -NetworkProfile All
}
catch {
{1: New-Item -Path "C:\IT" -Name "log.txt" -ItemType file -Value "Qos policy for port 50000 failed" <#Do this if a terminating exception happens#>}
}
try {
new-NetQosPolicy -Name "Teams Video" -AppPathNameMatchCondition "Teams.exe" -IPProtocolMatchCondition Both -IPSrcPortStartMatchCondition 50020 -IPSrcPortEndMatchCondition 50039 -DSCPAction 34 -NetworkProfile All
}
catch {
@TimLeitch
TimLeitch / bleachbit_cleanup.ps1
Created June 7, 2022 20:13
Bleachbit Cleanup script
$source = "https://github.com/TimLeitch/usefulsoftware/raw/main/BleachBit-4.4.2-portable.zip";
$destination = "C:\Temp\BleachBit.zip";
Invoke-WebRequest -Uri $source -OutFile $destination
Expand-Archive $destination -DestinationPath c:\Temp\BleachBit
$args = "--clean","adobe_reader.cache","adobe_reader.tmp","firefox.dom","firefox.cache","firefox.cookies","firefox.crash_reports",
"flash.cache","flash.cookies","google_chrome.cache","google_chrome.cookies","google_chrome.vacuum","google_earth.temporary_files",
@TimLeitch
TimLeitch / Install_DellSAsilent
Last active June 3, 2022 21:10
Install Dell Support Assist
# Silent Install Dell Support Assist
# https://downloads.dell.com/serviceability/catalog/SupportAssistInstaller.exe
# Path for the workdir
$workdir = "c:\temp\"
$DellSAInstalled = Test-Path -Path "C:\Program Files\Dell\SupportAssistAgent"
If ($DellSAInstalled){
@TimLeitch
TimLeitch / Win10_Bloatware_fix
Created June 2, 2022 15:06
Removes all the bloatware crap from windows 10
$AppsList =
'Microsoft.3DBuilder',
'Microsoft.BingFinance',
'Microsoft.BingNews',
'Microsoft.BingSports',
'Microsoft.MicrosoftSolitaireCollection',
'Microsoft.People',
'Microsoft.Windows.Photos',
'Microsoft.WindowsCamera',
'microsoft.windowscommunicationsapps',
@TimLeitch
TimLeitch / Pin_Office_Apps
Last active June 6, 2022 17:41
Pin Office Apps
# Detect 32/64 bit windows
$source = "http://www.technosys.net/download.aspx?file=syspin.exe";
$destination = "c:\Temp\syspin.exe";
#Check if the installer is in the folder. If installer exist, replace it
If ((Test-Path $destination) -eq $false) {
New-Item -ItemType File -Path $destination -Force
}
#install software
@TimLeitch
TimLeitch / Teams_Cache_Clear
Last active June 2, 2022 16:43
Clear Teams Cache
Write-Host "Closing Teams in order to clear cache"
try{
Get-Process -ProcessName Teams | Stop-Process -Force
Start-Sleep -Seconds 5
Write-Host "Teams is now closed"
}
catch{
echo $_
}
# Now clean temp file locations
@TimLeitch
TimLeitch / RevoUninstaller Portable
Last active June 3, 2022 21:05
Install RevoUninstaller Portable and remove when done
$source = "https://download.revouninstaller.com/download/RevoUninstaller_Portable.zip";
$destination = "c:\Temp\Revo_Portable.zip";
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest $source -OutFile $destination
Expand-Archive $destination C:\Temp\Revo
Start-Process -FilePath C:\Temp\Revo\RevoUninstaller_Portable\RevoUPort.exe -wait
Remove-Item -Recurse -Path C:\Temp\Revo
Remove-Item -Recurse -Path C:\Temp\Revo_Portable.zip