mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-15 07:05:51 -06:00
2b80e14bf9
* Simple improvements to 'applications.json' File (#2043) * Replace Spaces with Tabs in 'applications.json' File * Correct 'AFFiNE' App Entry's Winget ID from 'AFFiNE.stable' to 'ToEverything.AFFiNE' in 'applications.json' File * Compile Winutil * Tweaks (#2051) * Fix Numlock toggle (#2044) * Fix Numlock at login * Compile Winutil --------- Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> * Compile Winutil * fix typo (#2041) * Compile Winutil * Update README.md * * Fixed .getignore issues, it's it not enough to just add to gitgnore if it was already tracked by git it will be continued to be tracked by git, so you have to 'git rm' it * Fixed ooshutup, there is no need to download configs, they are already compiled into winutil + Added a tweak to remove and disable Intel LMS, which have been identifed as a potential backdoor into Windows. * Update winget.ps1 * + Added new release actions, every time we merge into main it will create a release by extracting the version fromwinutil.ps1 and setting all appropriate tags and versions * fix merge * add compile back in * Update action to latest tools * Ensure Compile is finished --------- Co-authored-by: Chris Titus <contact@christitus.com> Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> Co-authored-by: nikolan <94351312+nikolan123@users.noreply.github.com> Co-authored-by: KonTy <KonTy@github.com> Co-authored-by: Chris Titus <dfm.titus@gmail.com> * Compile Winutil * Rework Compile (#2061) * Compile Winutil --------- Co-authored-by: Mr.k <mineshtine28546271@gmail.com> Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> Co-authored-by: KonTy <9524513+KonTy@users.noreply.github.com> Co-authored-by: nikolan <94351312+nikolan123@users.noreply.github.com> Co-authored-by: KonTy <KonTy@github.com> Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
44 lines
1.6 KiB
PowerShell
44 lines
1.6 KiB
PowerShell
function Invoke-WPFOOSU {
|
|
<#
|
|
.SYNOPSIS
|
|
Downloads and runs OO Shutup 10 with or without config files
|
|
.PARAMETER action
|
|
Specifies how OOSU should be started
|
|
customize: Opens the OOSU GUI
|
|
recommended: Loads and applies the recommended OOSU policies silently
|
|
undo: Resets all policies to factory silently
|
|
#>
|
|
|
|
param (
|
|
[ValidateSet("customize", "recommended", "undo")]
|
|
[string]$action
|
|
)
|
|
|
|
$OOSU_filepath = "$ENV:temp\OOSU10.exe"
|
|
|
|
$Initial_ProgressPreference = $ProgressPreference
|
|
$ProgressPreference = "SilentlyContinue" # Disables the Progress Bar to drasticly speed up Invoke-WebRequest
|
|
Invoke-WebRequest -Uri "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -OutFile $OOSU_filepath
|
|
|
|
switch ($action)
|
|
{
|
|
"customize"{
|
|
Write-Host "Starting OO Shutup 10 ..."
|
|
Start-Process $OOSU_filepath
|
|
}
|
|
"recommended"{
|
|
$oosu_config = "$ENV:temp\ooshutup10_recommended.cfg"
|
|
$sync.configs.ooshutup10_recommended | Out-File -FilePath $oosu_config -Force
|
|
Write-Host "Applying recommended OO Shutup 10 Policies"
|
|
Start-Process $OOSU_filepath -ArgumentList "$oosu_config /quiet" -Wait
|
|
}
|
|
"undo"{
|
|
$oosu_config = "$ENV:temp\ooshutup10_factory.cfg"
|
|
$sync.configs.ooshutup10_factory | Out-File -FilePath $oosu_config -Force
|
|
Write-Host "Resetting all OO Shutup 10 Policies"
|
|
Start-Process $OOSU_filepath -ArgumentList "$oosu_config /quiet" -Wait
|
|
}
|
|
}
|
|
$ProgressPreference = $Initial_ProgressPreference
|
|
}
|