Skip to content

Instantly share code, notes, and snippets.

View bevinduplessis's full-sized avatar

Bevin Du Plessis bevinduplessis

View GitHub Profile
@livkx
livkx / PS-ResetWUMU.ps1
Created February 5, 2021 21:51
Reset WUMU config, cache, certs. Then, run a scan and try check in with WSUS.
#Name: PS-ResetWUMU.ps1
#Author: github.com/livkx
#Decription: Reset WUMU config, cache, certs. Then, run a scan and try check in with WSUS.
#Version: 1.0
#Declare the functions we're going to use in the main function.
Function ServiceControlAndWait{ #Function stops the Windows Update related services.
param([Parameter(Position = 0)] [String[]] $Services, [String] $MaxWait, [String] $Action)
ForEach($Service in $Services){
@seamonkey420
seamonkey420 / Add AC3 Audio with FFMPEG.cmd
Last active April 13, 2024 22:47
ffmpeg script to convert main audio stream to ac3 5.1 while copying video and subtitles. windows cmdline based.
:: Can be integrated into explorer shell
:: and right click menus too
:: seamonkey420
:: Requirements: copy ffmpeg to c:\windows\system32
:: env variables needed to parse spaces in file paths!
:: pick one of the below sets of code, top replaces all audio with an ac3 one
:: bottom adds an ac3 stream and retains everything else, video, subs, audio.
:: below will encode main audio stream to ac3 as only audio and keep all video, subtitles
setlocal EnableExtensions DisableDelayedExpansion