This file contains 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
#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){ |
This file contains 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
:: 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 |