2022-10-23 00:12:07 -05:00
#for CI/CD
2022-11-29 17:56:16 -06:00
$BranchToUse = 'main'
2022-11-29 17:54:18 -06:00
2022-04-27 22:42:07 -05:00
<#
. NOTES
2022-10-18 17:26:23 -05:00
Author : Chris Titus @christitustech
GitHub : https : / / github . com / ChrisTitusTech
Version 0.0 . 1
2022-04-27 22:42:07 -05:00
#>
2022-11-29 17:54:18 -06:00
Start-Transcript $ENV:TEMP \ Winutil . log -Append
2022-11-14 15:48:10 -06:00
# $inputXML = Get-Content "MainWindow.xaml" #uncomment for development
2022-10-23 00:12:07 -05:00
$inputXML = ( new-object Net . WebClient ) . DownloadString ( " https://raw.githubusercontent.com/ChrisTitusTech/winutil/ $BranchToUse /MainWindow.xaml " ) #uncomment for Production
2022-05-10 08:18:13 -05:00
2022-11-29 17:54:18 -06:00
# Check if chocolatey is installed and get its version
if ( ( Get-Command -Name choco -ErrorAction Ignore ) -and ( $chocoVersion = ( Get-Item " $env:ChocolateyInstall \choco.exe " -ErrorAction Ignore ) . VersionInfo . ProductVersion ) ) {
Write-Output " Chocolatey Version $chocoVersion is already installed "
} else {
2022-11-14 15:48:10 -06:00
Write-Output " Seems Chocolatey is not installed, installing now "
Set-ExecutionPolicy Bypass -Scope Process -Force ; Invoke-Expression ( ( New-Object System . Net . WebClient ) . DownloadString ( 'https://chocolatey.org/install.ps1' ) )
powershell choco feature enable -n allowGlobalConfirmation
}
#Load config files to hashtable
$configs = @ { }
(
" applications " ,
" tweaks " ,
" preset " ,
" feature "
) | ForEach-Object {
#$configs["$PSItem"] = Get-Content .\config\$PSItem.json | ConvertFrom-Json
$configs [ " $psitem " ] = Invoke-RestMethod " https://raw.githubusercontent.com/ChrisTitusTech/winutil/ $BranchToUse /config/ $psitem .json "
}
2022-10-18 17:26:23 -05:00
$inputXML = $inputXML -replace 'mc:Ignorable="d"' , '' -replace " x:N " , 'N' -replace '^<Win.*' , '<Window'
[ void][System.Reflection.Assembly ] :: LoadWithPartialName ( 'presentationframework' )
[ xml ] $XAML = $inputXML
#Read XAML
2022-04-27 22:42:07 -05:00
2022-10-18 17:26:23 -05:00
$reader = ( New-Object System . Xml . XmlNodeReader $xaml )
try { $Form = [ Windows.Markup.XamlReader ] :: Load ( $reader ) }
catch [ System.Management.Automation.MethodInvocationException ] {
Write-Warning " We ran into a problem with the XAML code. Check the syntax for this control... "
write-host $error [ 0 ] . Exception . Message -ForegroundColor Red
If ( $error [ 0 ] . Exception . Message -like " *button* " ) {
write-warning " Ensure your <button in the `$ inputXML does NOT have a Click=ButtonClick property. PS can't handle this `n `n `n `n "
2022-05-17 09:31:18 -05:00
}
2022-10-18 17:26:23 -05:00
}
catch {
# If it broke some other way <img draggable="false" role="img" class="emoji" alt="😀" src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/svg/1f600.svg">
Write-Host " Unable to load Windows.Markup.XamlReader. Double-check syntax and ensure .net is installed. "
}
#===========================================================================
# Store Form Objects In PowerShell
#===========================================================================
$xaml . SelectNodes ( " //*[@Name] " ) | ForEach-Object { Set-Variable -Name " WPF $( $_ . Name ) " -Value $Form . FindName ( $_ . Name ) }
2022-11-14 15:48:10 -06:00
#===========================================================================
# Functions
#===========================================================================
2022-10-18 17:26:23 -05:00
Function Get-FormVariables {
#If ($global:ReadmeDisplay -ne $true) { Write-host "If you need to reference this display again, run Get-FormVariables" -ForegroundColor Yellow; $global:ReadmeDisplay = $true }
2022-09-07 13:37:34 -05:00
2022-10-18 17:26:23 -05:00
write-host " "
write-host " CCCCCCCCCCCCCTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT "
write-host " CCC::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T "
write-host " CC:::::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T "
write-host " C:::::CCCCCCCC::::CT:::::TT:::::::TT:::::TT:::::TT:::::::TT:::::T "
write-host " C:::::C CCCCCCTTTTTT T:::::T TTTTTTTTTTTT T:::::T TTTTTT "
write-host " C:::::C T:::::T T:::::T "
write-host " C:::::C T:::::T T:::::T "
write-host " C:::::C T:::::T T:::::T "
write-host " C:::::C T:::::T T:::::T "
write-host " C:::::C T:::::T T:::::T "
write-host " C:::::C T:::::T T:::::T "
write-host " C:::::C CCCCCC T:::::T T:::::T "
write-host " C:::::CCCCCCCC::::C TT:::::::TT TT:::::::TT "
write-host " CC:::::::::::::::C T:::::::::T T:::::::::T "
write-host " CCC::::::::::::C T:::::::::T T:::::::::T "
write-host " CCCCCCCCCCCCC TTTTTTTTTTT TTTTTTTTTTT "
write-host " "
write-host " ====Chris Titus Tech===== "
write-host " =====Windows Toolbox===== "
#====DEBUG GUI Elements====
2022-04-27 22:42:07 -05:00
2022-10-18 17:26:23 -05:00
#write-host "Found the following interactable elements from our form" -ForegroundColor Cyan
#get-variable WPF*
}
2022-11-14 15:48:10 -06:00
Function Get-CheckBoxes {
<#
. DESCRIPTION
Function is meant to find all checkboxes that are checked on the specefic tab and input them into a script .
Outputed data will be the names of the checkboxes that were checked
. EXAMPLE
Get-CheckBoxes " WPFInstall "
#>
Param ( $Group )
$CheckBoxes = get-variable | Where-Object { $psitem . name -like " $Group * " -and $psitem . value . GetType ( ) . name -eq " CheckBox " }
$Output = New-Object System . Collections . Generic . List [ System.Object ]
if ( $Group -eq " WPFInstall " ) {
Foreach ( $CheckBox in $CheckBoxes ) {
2022-11-29 17:27:36 -06:00
if ( $CheckBox . value . ischecked -eq $true ) {
$Configs . applications . install . $ ( $CheckBox . name ) . winget -split " ; " | ForEach-Object {
$Output . Add ( $psitem )
}
$CheckBox . value . ischecked = $false
2022-11-14 15:48:10 -06:00
}
}
}
2022-11-29 17:27:36 -06:00
Write-Output $ ( $Output | Select-Object -Unique )
2022-11-14 15:48:10 -06:00
}
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-11-29 17:54:18 -06:00
function Set-Presets {
<#
. DESCRIPTION
Meant to make settings presets easier in the tweaks tab . Will pull the data from config / preset . json
#>
param ( $preset )
$CheckBoxesToCheck = $configs . preset . $preset
#Uncheck all
get-variable | Where-Object { $_ . name -like " *tweaks* " } | ForEach-Object {
if ( $psitem . value . gettype ( ) . name -eq " CheckBox " ) {
$CheckBox = Get-Variable $psitem . Name
if ( $CheckBoxesToCheck -contains $CheckBox . name ) {
$checkbox . value . ischecked = $true
}
else { $checkbox . value . ischecked = $false }
}
}
}
2022-10-18 17:26:23 -05:00
#===========================================================================
# Global Variables
#===========================================================================
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-11-14 15:48:10 -06:00
$AppTitle = " Chris Titus Tech's Windows Utility "
2022-04-27 22:42:07 -05:00
2022-10-18 17:26:23 -05:00
#===========================================================================
# Navigation Controls
#===========================================================================
2022-04-27 22:42:07 -05:00
2022-10-18 17:26:23 -05:00
$WPFTab1BT . Add_Click ( {
$WPFTabNav . Items [ 0 ] . IsSelected = $true
$WPFTabNav . Items [ 1 ] . IsSelected = $false
$WPFTabNav . Items [ 2 ] . IsSelected = $false
$WPFTabNav . Items [ 3 ] . IsSelected = $false
} )
$WPFTab2BT . Add_Click ( {
$WPFTabNav . Items [ 0 ] . IsSelected = $false
$WPFTabNav . Items [ 1 ] . IsSelected = $true
$WPFTabNav . Items [ 2 ] . IsSelected = $false
$WPFTabNav . Items [ 3 ] . IsSelected = $false
} )
$WPFTab3BT . Add_Click ( {
$WPFTabNav . Items [ 0 ] . IsSelected = $false
$WPFTabNav . Items [ 1 ] . IsSelected = $false
$WPFTabNav . Items [ 2 ] . IsSelected = $true
$WPFTabNav . Items [ 3 ] . IsSelected = $false
} )
$WPFTab4BT . Add_Click ( {
$WPFTabNav . Items [ 0 ] . IsSelected = $false
$WPFTabNav . Items [ 1 ] . IsSelected = $false
$WPFTabNav . Items [ 2 ] . IsSelected = $false
$WPFTabNav . Items [ 3 ] . IsSelected = $true
} )
2022-05-10 08:18:13 -05:00
2022-10-18 17:26:23 -05:00
#===========================================================================
# Tab 1 - Install
#===========================================================================
2022-11-14 15:48:10 -06:00
2022-10-18 17:26:23 -05:00
$WPFinstall . Add_Click ( {
2022-11-14 15:48:10 -06:00
$WingetInstall = Get-CheckBoxes -Group " WPFInstall "
2022-10-18 17:26:23 -05:00
# Check if winget is installed
Write-Host " Checking if Winget is Installed... "
if ( Test-Path ~ \ AppData \ Local \ Microsoft \ WindowsApps \ winget . exe ) {
#Checks if winget executable exists and if the Windows Version is 1809 or higher
Write-Host " Winget Already Installed "
}
else {
2022-10-23 00:12:07 -05:00
#Gets the computer's information
$ComputerInfo = Get-ComputerInfo
2022-10-18 17:26:23 -05:00
2022-10-23 00:12:07 -05:00
#Gets the Windows Edition
$OSName = if ( $ComputerInfo . OSName ) {
$ComputerInfo . OSName
} else {
$ComputerInfo . WindowsProductName
}
2022-10-18 17:26:23 -05:00
2022-10-23 00:12:07 -05:00
if ( ( ( ( $OSName . IndexOf ( " LTSC " ) ) -ne -1 ) -or ( $OSName . IndexOf ( " Server " ) -ne -1 ) ) -and ( ( $ComputerInfo . WindowsVersion ) -ge " 1809 " ) ) {
Write-Host " Running Alternative Installer for LTSC/Server Editions "
2022-10-18 17:26:23 -05:00
2022-10-23 00:12:07 -05:00
# Switching to winget-install from PSGallery from asheroto
# Source: https://github.com/asheroto/winget-installer
2022-11-29 17:54:18 -06:00
Start-Process powershell . exe -Verb RunAs -ArgumentList " -command irm https://raw.githubusercontent.com/ChrisTitusTech/winutil/ $BranchToUse /winget.ps1 | iex | Out-Host " -WindowStyle Normal
2022-10-23 00:12:07 -05:00
2022-10-18 17:26:23 -05:00
}
elseif ( ( ( Get-ComputerInfo ) . WindowsVersion ) -lt " 1809 " ) {
#Checks if Windows Version is too old for winget
Write-Host " Winget is not supported on this version of Windows (Pre-1809) "
}
else {
#Installing Winget from the Microsoft Store
Write-Host " Winget not found, installing it now. "
Start-Process " ms-appinstaller:?source=https://aka.ms/getwinget "
$nid = ( Get-Process AppInstaller ) . Id
Wait-Process -Id $nid
Write-Host " Winget Installed "
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
}
2022-05-10 08:18:13 -05:00
2022-10-18 17:26:23 -05:00
if ( $wingetinstall . Count -eq 0 ) {
$WarningMsg = " Please select the program(s) to install "
[ System.Windows.MessageBox ] :: Show ( $WarningMsg , $AppTitle , [ System.Windows.MessageBoxButton ] :: OK , [ System.Windows.MessageBoxImage ] :: Warning )
return
}
2022-05-10 08:18:13 -05:00
2022-10-18 17:26:23 -05:00
# Install all winget programs in new window
2022-11-14 15:48:10 -06:00
#$wingetinstall.ToArray()
2022-10-18 17:26:23 -05:00
# Define Output variable
$wingetResult = New-Object System . Collections . Generic . List [ System.Object ]
foreach ( $node in $wingetinstall ) {
try {
2022-11-29 17:54:18 -06:00
Start-Process powershell . exe -Verb RunAs -ArgumentList " -command Start-Transcript $ENV:TEMP \winget- $node .log -Append; winget install -e --accept-source-agreements --accept-package-agreements --silent $node | Out-Host " -WindowStyle Normal
2022-10-18 17:26:23 -05:00
$wingetResult . Add ( " $node `n " )
2022-11-14 15:48:10 -06:00
Start-Sleep -s 6
2022-10-18 17:26:23 -05:00
Wait-Process winget -Timeout 90 -ErrorAction SilentlyContinue
2022-10-18 08:08:23 -05:00
}
2022-10-18 17:26:23 -05:00
catch [ System.InvalidOperationException ] {
Write-Warning " Allow Yes on User Access Control to Install "
}
catch {
Write-Error $_ . Exception
}
}
$wingetResult . ToArray ( )
$wingetResult | ForEach-Object { $_ } | Out-Host
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
# Popup after finished
$ButtonType = [ System.Windows.MessageBoxButton ] :: OK
if ( $wingetResult -ne " " ) {
$Messageboxbody = " Installed Programs `n $( $wingetResult ) "
2022-04-29 23:11:51 -05:00
}
2022-10-18 17:26:23 -05:00
else {
$Messageboxbody = " No Program(s) are installed "
}
$MessageIcon = [ System.Windows.MessageBoxImage ] :: Information
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
[ System.Windows.MessageBox ] :: Show ( $Messageboxbody , $AppTitle , $ButtonType , $MessageIcon )
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " ================================= "
Write-Host " --- Installs are Finished --- "
Write-Host " ================================= "
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
} )
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
$WPFInstallUpgrade . Add_Click ( {
$isUpgradeSuccess = $false
try {
Start-Process powershell . exe -Verb RunAs -ArgumentList " -command winget upgrade --all | Out-Host " -Wait -WindowStyle Normal
$isUpgradeSuccess = $true
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
catch [ System.InvalidOperationException ] {
Write-Warning " Allow Yes on User Access Control to Upgrade "
}
catch {
Write-Error $_ . Exception
}
$ButtonType = [ System.Windows.MessageBoxButton ] :: OK
$Messageboxbody = if ( $isUpgradeSuccess ) { " Upgrade Done " } else { " Upgrade was not succesful " }
$MessageIcon = [ System.Windows.MessageBoxImage ] :: Information
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-10-18 17:26:23 -05:00
[ System.Windows.MessageBox ] :: Show ( $Messageboxbody , $AppTitle , $ButtonType , $MessageIcon )
} )
2022-10-18 08:08:23 -05:00
#===========================================================================
2022-10-18 17:26:23 -05:00
# Tab 2 - Tweak Buttons
2022-10-18 08:08:23 -05:00
#===========================================================================
2022-10-18 17:26:23 -05:00
$WPFdesktop . Add_Click ( {
2022-11-29 17:54:18 -06:00
Set-Presets " Desktop "
} )
2022-10-18 17:26:23 -05:00
$WPFlaptop . Add_Click ( {
2022-11-29 17:54:18 -06:00
Set-Presets " laptop "
} )
2022-10-18 17:26:23 -05:00
$WPFminimal . Add_Click ( {
2022-11-29 17:54:18 -06:00
Set-Presets " minimal "
} )
2022-10-18 17:26:23 -05:00
$WPFtweaksbutton . Add_Click ( {
If ( $WPFEssTweaksAH . IsChecked -eq $true ) {
Write-Host " Disabling Activity History... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System " -Name " EnableActivityFeed " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System " -Name " PublishUserActivities " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System " -Name " UploadUserActivities " -Type DWord -Value 0
$WPFEssTweaksAH . IsChecked = $false
}
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksDeleteTempFiles . IsChecked -eq $true ) {
Write-Host " Delete Temp Files "
2022-10-23 00:12:07 -05:00
Get-ChildItem -Path " C:\Windows\Temp " * . * -Recurse | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue
Get-ChildItem -Path $env:TEMP * . * -Recurse | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue
2022-10-18 17:26:23 -05:00
$WPFEssTweaksDeleteTempFiles . IsChecked = $false
2022-10-23 00:12:07 -05:00
Write-Host " ======================================= "
Write-Host " --- Cleaned following folders: "
Write-Host " --- C:\Windows\Temp "
Write-Host " --- " $env:TEMP
Write-Host " ======================================= "
2022-10-18 17:26:23 -05:00
}
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksDVR . IsChecked -eq $true ) {
If ( ! ( Test-Path " HKCU:\System\GameConfigStore " ) ) {
New-Item -Path " HKCU:\System\GameConfigStore " -Force
}
Set-ItemProperty -Path " HKCU:\System\GameConfigStore " -Name " GameDVR_DXGIHonorFSEWindowsCompatible " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\System\GameConfigStore " -Name " GameDVR_HonorUserFSEBehaviorMode " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\System\GameConfigStore " -Name " GameDVR_EFSEFeatureFlags " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\System\GameConfigStore " -Name " GameDVR_Enabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\System\GameConfigStore " -Name " GameDVR_FSEBehavior " -Type DWord -Value 2
2022-10-23 00:12:07 -05:00
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR " -Force
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR " -Name " AllowGameDVR " -Type DWord -Value 0
$WPFEssTweaksDVR . IsChecked = $false
2022-04-29 23:11:51 -05:00
}
2022-11-14 15:48:10 -06:00
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksHiber . IsChecked -eq $true ) {
Write-Host " Disabling Hibernation... "
Set-ItemProperty -Path " HKLM:\System\CurrentControlSet\Control\Session Manager\Power " -Name " HibernateEnabled " -Type Dword -Value 0
If ( ! ( Test-Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings " | Out-Null
}
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings " -Name " ShowHibernateOption " -Type Dword -Value 0
$WPFEssTweaksHiber . IsChecked = $false
2022-04-29 23:11:51 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksHome . IsChecked -eq $true ) {
$WPFEssTweaksHome . IsChecked = $false
}
If ( $WPFEssTweaksLoc . IsChecked -eq $true ) {
Write-Host " Disabling Location Tracking... "
If ( ! ( Test-Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location " -Force | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location " -Name " Value " -Type String -Value " Deny "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44} " -Name " SensorPermissionState " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration " -Name " Status " -Type DWord -Value 0
Write-Host " Disabling automatic Maps updates... "
Set-ItemProperty -Path " HKLM:\SYSTEM\Maps " -Name " AutoUpdateEnabled " -Type DWord -Value 0
$WPFEssTweaksLoc . IsChecked = $false
}
If ( $WPFMiscTweaksDisableTPMCheck . IsChecked -eq $true ) {
Write-Host " Disabling TPM Check... "
If ( ! ( Test-Path " HKLM:\SYSTEM\Setup\MoSetup " ) ) {
New-Item -Path " HKLM:\SYSTEM\Setup\MoSetup " -Force | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SYSTEM\Setup\MoSetup " -Name " AllowUpgradesWithUnsupportedTPM " -Type DWord -Value 1
$WPFMiscTweaksDisableTPMCheck . IsChecked = $false
}
If ( $WPFEssTweaksDiskCleanup . IsChecked -eq $true ) {
Write-Host " Running Disk Cleanup on Drive C:... "
cmd / c cleanmgr . exe / d C: / VERYLOWDISK
$WPFEssTweaksDiskCleanup . IsChecked = $false
}
If ( $WPFMiscTweaksDisableUAC . IsChecked -eq $true ) {
Write-Host " Disabling UAC... "
# This below is the pussy mode which can break some apps. Please. Leave this on 1.
# below i will show a way to do it without breaking some Apps that check UAC. U need to be admin tho.
# Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Type DWord -Value 0
Set-ItemProperty -Path HKLM : \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Policies \ System -Name ConsentPromptBehaviorAdmin -Type DWord -Value 0 # Default is 5
# This will set the GPO Entry in Security so that Admin users elevate without any prompt while normal users still elevate and u can even leave it ennabled.
# It will just not bother u anymore
$WPFMiscTweaksDisableUAC . IsChecked = $false
}
If ( $WPFMiscTweaksDisableNotifications . IsChecked -eq $true ) {
Write-Host " Disabling Notifications and Action Center... "
New-Item -Path " HKCU:\Software\Policies\Microsoft\Windows " -Name " Explorer " -force
New-ItemProperty -Path " HKCU:\Software\Policies\Microsoft\Windows\Explorer " -Name " DisableNotificationCenter " -PropertyType " DWord " -Value 1
New-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications " -Name " ToastEnabled " -PropertyType " DWord " -Value 0 -force
$WPFMiscTweaksDisableNotifications . IsChecked = $false
}
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
If ( $WPFMiscTweaksRightClickMenu . IsChecked -eq $true ) {
Write-Host " Setting Classic Right-Click Menu... "
New-Item -Path " HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2} " -Name " InprocServer32 " -force -value " "
$WPFMiscTweaksRightClickMenu . IsChecked = $false
}
2022-11-14 15:48:10 -06:00
If ( $WPFchangedns . text -eq 'Google' ) {
Write-Host " Setting DNS to Google for all connections... "
$DC = " 8.8.8.8 "
$Internet = " 8.8.4.4 "
$dns = " $DC " , " $Internet "
2022-11-29 17:54:18 -06:00
$Interfaces = [ System.Management.ManagementClass ] :: new ( " Win32_NetworkAdapterConfiguration " ) . GetInstances ( )
$Interfaces . SetDNSServerSearchOrder ( $dns ) | Out-Null
2022-11-14 15:48:10 -06:00
}
If ( $WPFchangedns . text -eq 'Cloud Flare' ) {
Write-Host " Setting DNS to Cloud Flare for all connections... "
$DC = " 1.1.1.1 "
$Internet = " 1.0.0.1 "
$dns = " $DC " , " $Internet "
2022-11-29 17:54:18 -06:00
$Interfaces = [ System.Management.ManagementClass ] :: new ( " Win32_NetworkAdapterConfiguration " ) . GetInstances ( )
$Interfaces . SetDNSServerSearchOrder ( $dns ) | Out-Null
2022-11-14 15:48:10 -06:00
}
If ( $WPFchangedns . text -eq 'Level3' ) {
Write-Host " Setting DNS to Level3 for all connections... "
$DC = " 4.2.2.2 "
$Internet = " 4.2.2.1 "
$dns = " $DC " , " $Internet "
2022-11-29 17:54:18 -06:00
$Interfaces = [ System.Management.ManagementClass ] :: new ( " Win32_NetworkAdapterConfiguration " ) . GetInstances ( )
$Interfaces . SetDNSServerSearchOrder ( $dns ) | Out-Null
2022-11-14 15:48:10 -06:00
}
If ( $WPFchangedns . text -eq 'Open DNS' ) {
Write-Host " Setting DNS to Open DNS for all connections... "
$DC = " 208.67.222.222 "
$Internet = " 208.67.220.220 "
$dns = " $DC " , " $Internet "
2022-11-29 17:54:18 -06:00
$Interfaces = [ System.Management.ManagementClass ] :: new ( " Win32_NetworkAdapterConfiguration " ) . GetInstances ( )
$Interfaces . SetDNSServerSearchOrder ( $dns ) | Out-Null
2022-11-14 15:48:10 -06:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksOO . IsChecked -eq $true ) {
2022-10-23 00:12:07 -05:00
If ( ! ( Test-Path . \ ooshutup10 . cfg ) ) {
Write-Host " Running O&O Shutup with Recommended Settings "
2022-11-14 15:48:10 -06:00
curl . exe -s " https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg " -o ooshutup10 . cfg
curl . exe -s " https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe " -o OOSU10 . exe
2022-10-23 00:12:07 -05:00
}
2022-10-18 17:26:23 -05:00
. / OOSU10 . exe ooshutup10 . cfg / quiet
$WPFEssTweaksOO . IsChecked = $false
}
If ( $WPFEssTweaksRP . IsChecked -eq $true ) {
Write-Host " Creating Restore Point in case something bad happens "
Enable-ComputerRestore -Drive " $env:SystemDrive "
Checkpoint-Computer -Description " RestorePoint1 " -RestorePointType " MODIFY_SETTINGS "
$WPFEssTweaksRP . IsChecked = $false
}
If ( $WPFEssTweaksServices . IsChecked -eq $true ) {
# Set Services to Manual
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
$services = @ (
" ALG " # Application Layer Gateway Service(Provides support for 3rd party protocol plug-ins for Internet Connection Sharing)
" AJRouter " # Needed for AllJoyn Router Service
" BcastDVRUserService_48486de " # GameDVR and Broadcast is used for Game Recordings and Live Broadcasts
#"BDESVC" # Bitlocker Drive Encryption Service
#"BFE" # Base Filtering Engine (Manages Firewall and Internet Protocol security)
#"BluetoothUserService_48486de" # Bluetooth user service supports proper functionality of Bluetooth features relevant to each user session.
#"BrokerInfrastructure" # Windows Infrastructure Service (Controls which background tasks can run on the system)
" Browser " # Let users browse and locate shared resources in neighboring computers
" BthAvctpSvc " # AVCTP service (needed for Bluetooth Audio Devices or Wireless Headphones)
" CaptureService_48486de " # Optional screen capture functionality for applications that call the Windows.Graphics.Capture API.
" cbdhsvc_48486de " # Clipboard Service
" diagnosticshub.standardcollector.service " # Microsoft (R) Diagnostics Hub Standard Collector Service
" DiagTrack " # Diagnostics Tracking Service
" dmwappushservice " # WAP Push Message Routing Service
" DPS " # Diagnostic Policy Service (Detects and Troubleshoots Potential Problems)
" edgeupdate " # Edge Update Service
" edgeupdatem " # Another Update Service
#"EntAppSvc" # Enterprise Application Management.
" Fax " # Fax Service
" fhsvc " # Fax History
" FontCache " # Windows font cache
#"FrameServer" # Windows Camera Frame Server (Allows multiple clients to access video frames from camera devices)
" gupdate " # Google Update
" gupdatem " # Another Google Update Service
#"iphlpsvc" # ipv6(Most websites use ipv4 instead) - Needed for Xbox Live
" lfsvc " # Geolocation Service
#"LicenseManager" # Disable LicenseManager (Windows Store may not work properly)
" lmhosts " # TCP/IP NetBIOS Helper
" MapsBroker " # Downloaded Maps Manager
" MicrosoftEdgeElevationService " # Another Edge Update Service
" MSDTC " # Distributed Transaction Coordinator
" NahimicService " # Nahimic Service
#"ndu" # Windows Network Data Usage Monitor (Disabling Breaks Task Manager Per-Process Network Monitoring)
" NetTcpPortSharing " # Net.Tcp Port Sharing Service
" PcaSvc " # Program Compatibility Assistant Service
" PerfHost " # Remote users and 64-bit processes to query performance.
" PhoneSvc " # Phone Service(Manages the telephony state on the device)
#"PNRPsvc" # Peer Name Resolution Protocol (Some peer-to-peer and collaborative applications, such as Remote Assistance, may not function, Discord will still work)
#"p2psvc" # Peer Name Resolution Protocol(Enables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work)iscord will still work)
#"p2pimsvc" # Peer Networking Identity Manager (Peer-to-Peer Grouping services may not function, and some applications, such as HomeGroup and Remote Assistance, may not function correctly. Discord will still work)
" PrintNotify " # Windows printer notifications and extentions
" QWAVE " # Quality Windows Audio Video Experience (audio and video might sound worse)
" RemoteAccess " # Routing and Remote Access
" RemoteRegistry " # Remote Registry
" RetailDemo " # Demo Mode for Store Display
" RtkBtManServ " # Realtek Bluetooth Device Manager Service
" SCardSvr " # Windows Smart Card Service
" seclogon " # Secondary Logon (Disables other credentials only password will work)
" SEMgrSvc " # Payments and NFC/SE Manager (Manages payments and Near Field Communication (NFC) based secure elements)
" SharedAccess " # Internet Connection Sharing (ICS)
#"Spooler" # Printing
" stisvc " # Windows Image Acquisition (WIA)
#"StorSvc" # StorSvc (usb external hard drive will not be reconized by windows)
" SysMain " # Analyses System Usage and Improves Performance
" TrkWks " # Distributed Link Tracking Client
#"WbioSrvc" # Windows Biometric Service (required for Fingerprint reader / facial detection)
" WerSvc " # Windows error reporting
" wisvc " # Windows Insider program(Windows Insider will not work if Disabled)
#"WlanSvc" # WLAN AutoConfig
" WMPNetworkSvc " # Windows Media Player Network Sharing Service
" WpcMonSvc " # Parental Controls
" WPDBusEnum " # Portable Device Enumerator Service
" WpnService " # WpnService (Push Notifications may not work)
#"wscsvc" # Windows Security Center Service
" WSearch " # Windows Search
" XblAuthManager " # Xbox Live Auth Manager (Disabling Breaks Xbox Live Games)
" XblGameSave " # Xbox Live Game Save Service (Disabling Breaks Xbox Live Games)
" XboxNetApiSvc " # Xbox Live Networking Service (Disabling Breaks Xbox Live Games)
" XboxGipSvc " # Xbox Accessory Management Service
# Hp services
" HPAppHelperCap "
" HPDiagsCap "
" HPNetworkCap "
" HPSysInfoCap "
" HpTouchpointAnalyticsService "
# Hyper-V services
" HvHost "
" vmicguestinterface "
" vmicheartbeat "
" vmickvpexchange "
" vmicrdv "
" vmicshutdown "
" vmictimesync "
" vmicvmsession "
# Services that cannot be disabled
#"WdNisSvc"
)
foreach ( $service in $services ) {
# -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist
Write-Host " Setting $service StartupType to Manual "
2022-10-23 00:12:07 -05:00
Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Manual -ErrorAction SilentlyContinue
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
$WPFEssTweaksServices . IsChecked = $false
}
If ( $WPFEssTweaksStorage . IsChecked -eq $true ) {
Write-Host " Disabling Storage Sense... "
Remove-Item -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy " -Recurse -ErrorAction SilentlyContinue
$WPFEssTweaksStorage . IsChecked = $false
}
If ( $WPFEssTweaksTele . IsChecked -eq $true ) {
Write-Host " Disabling Telemetry... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection " -Name " AllowTelemetry " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection " -Name " AllowTelemetry " -Type DWord -Value 0
Disable-ScheduledTask -TaskName " Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser " | Out-Null
Disable-ScheduledTask -TaskName " Microsoft\Windows\Application Experience\ProgramDataUpdater " | Out-Null
Disable-ScheduledTask -TaskName " Microsoft\Windows\Autochk\Proxy " | Out-Null
Disable-ScheduledTask -TaskName " Microsoft\Windows\Customer Experience Improvement Program\Consolidator " | Out-Null
Disable-ScheduledTask -TaskName " Microsoft\Windows\Customer Experience Improvement Program\UsbCeip " | Out-Null
Disable-ScheduledTask -TaskName " Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector " | Out-Null
Write-Host " Disabling Application suggestions... "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " ContentDeliveryAllowed " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " OemPreInstalledAppsEnabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " PreInstalledAppsEnabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " PreInstalledAppsEverEnabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SilentInstalledAppsEnabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SubscribedContent-338387Enabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SubscribedContent-338388Enabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SubscribedContent-338389Enabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SubscribedContent-353698Enabled " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SystemPaneSuggestionsEnabled " -Type DWord -Value 0
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " -Force | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " -Name " DisableWindowsConsumerFeatures " -Type DWord -Value 1
Write-Host " Disabling Feedback... "
If ( ! ( Test-Path " HKCU:\SOFTWARE\Microsoft\Siuf\Rules " ) ) {
New-Item -Path " HKCU:\SOFTWARE\Microsoft\Siuf\Rules " -Force | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Siuf\Rules " -Name " NumberOfSIUFInPeriod " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection " -Name " DoNotShowFeedbackNotifications " -Type DWord -Value 1
Disable-ScheduledTask -TaskName " Microsoft\Windows\Feedback\Siuf\DmClient " -ErrorAction SilentlyContinue | Out-Null
Disable-ScheduledTask -TaskName " Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload " -ErrorAction SilentlyContinue | Out-Null
Write-Host " Disabling Tailored Experiences... "
If ( ! ( Test-Path " HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " ) ) {
New-Item -Path " HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " -Force | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " -Name " DisableTailoredExperiencesWithDiagnosticData " -Type DWord -Value 1
Write-Host " Disabling Advertising ID... "
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo " | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo " -Name " DisabledByGroupPolicy " -Type DWord -Value 1
Write-Host " Disabling Error reporting... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting " -Name " Disabled " -Type DWord -Value 1
Disable-ScheduledTask -TaskName " Microsoft\Windows\Windows Error Reporting\QueueReporting " | Out-Null
Write-Host " Restricting Windows Update P2P only to local network... "
If ( ! ( Test-Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " -Name " DODownloadMode " -Type DWord -Value 1
Write-Host " Stopping and disabling Diagnostics Tracking Service... "
Stop-Service " DiagTrack " -WarningAction SilentlyContinue
Set-Service " DiagTrack " -StartupType Disabled
Write-Host " Stopping and disabling WAP Push Service... "
Stop-Service " dmwappushservice " -WarningAction SilentlyContinue
Set-Service " dmwappushservice " -StartupType Disabled
Write-Host " Enabling F8 boot menu options... "
bcdedit / set ` { current ` } bootmenupolicy Legacy | Out-Null
Write-Host " Disabling Remote Assistance... "
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance " -Name " fAllowToGetHelp " -Type DWord -Value 0
Write-Host " Stopping and disabling Superfetch service... "
Stop-Service " SysMain " -WarningAction SilentlyContinue
Set-Service " SysMain " -StartupType Disabled
# Task Manager Details
If ( ( get-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion " -Name CurrentBuild ) . CurrentBuild -lt 22557 ) {
Write-Host " Showing task manager details... "
$taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr . exe -PassThru
Do {
Start-Sleep -Milliseconds 100
$preferences = Get-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager " -Name " Preferences " -ErrorAction SilentlyContinue
} Until ( $preferences )
Stop-Process $taskmgr
$preferences . Preferences [ 28 ] = 0
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager " -Name " Preferences " -Type Binary -Value $preferences . Preferences
}
else { Write-Host " Task Manager patch not run in builds 22557+ due to bug " }
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " Showing file operations details... "
If ( ! ( Test-Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager " ) ) {
New-Item -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager " | Out-Null
}
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager " -Name " EnthusiastMode " -Type DWord -Value 1
Write-Host " Hiding Task View button... "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " ShowTaskViewButton " -Type DWord -Value 0
Write-Host " Hiding People icon... "
If ( ! ( Test-Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People " ) ) {
New-Item -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People " | Out-Null
}
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People " -Name " PeopleBand " -Type DWord -Value 0
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " Changing default Explorer view to This PC... "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " LaunchTo " -Type DWord -Value 1
## Enable Long Paths
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem " -Name " LongPathsEnabled " -Type DWORD -Value 1
2022-09-25 14:01:09 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " Hiding 3D Objects icon from This PC... "
Remove-Item -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A} " -Recurse -ErrorAction SilentlyContinue
2022-09-25 13:52:53 -05:00
2022-10-18 17:26:23 -05:00
## Performance Tweaks and More Telemetry
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching " -Name " SearchOrderConfig " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile " -Name " SystemResponsiveness " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " MenuShowDelay " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " AutoEndTasks " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management " -Name " ClearPageFileAtShutdown " -Type DWord -Value 0
2022-11-14 15:48:10 -06:00
Set-ItemProperty -Path " HKCU:\Control Panel\Mouse " -Name " MouseHoverTime " -Type DWord -Value 400
2022-10-23 00:12:07 -05:00
## Timeout Tweaks cause flickering on Windows now
Remove-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " WaitToKillAppTimeout " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " HungAppTimeout " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control " -Name " WaitToKillServiceTimeout " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " LowLevelHooksTimeout " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " WaitToKillServiceTimeout " -ErrorAction SilentlyContinue
2022-10-18 17:26:23 -05:00
# Network Tweaks
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters " -Name " IRPStackSize " -Type DWord -Value 20
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile " -Name " NetworkThrottlingIndex " -Type DWord -Value 4294967295
# Gaming Tweaks
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games " -Name " GPU Priority " -Type DWord -Value 8
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games " -Name " Priority " -Type DWord -Value 6
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games " -Name " Scheduling Category " -Type String -Value " High "
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
# Group svchost.exe processes
2022-11-29 17:54:18 -06:00
$ram = ( Get-CimInstance -ClassName " Win32_PhysicalMemory " | Measure-Object -Property Capacity -Sum ) . Sum / 1 kb
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control " -Name " SvcHostSplitThresholdInKB " -Type DWord -Value $ram -Force
2022-04-29 23:11:51 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " Disable News and Interests "
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds " | Out-Null
2022-04-29 23:11:51 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds " -Name " EnableFeeds " -Type DWord -Value 0
# Remove "News and Interest" from taskbar
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds " -Name " ShellFeedsTaskbarViewMode " -Type DWord -Value 2
2022-04-29 23:11:51 -05:00
2022-10-18 17:26:23 -05:00
# remove "Meet Now" button from taskbar
2022-04-29 23:11:51 -05:00
2022-10-18 17:26:23 -05:00
If ( ! ( Test-Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer " ) ) {
New-Item -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer " -Force | Out-Null
2022-10-13 05:59:14 -05:00
}
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer " -Name " HideSCAMeetNow " -Type DWord -Value 1
Write-Host " Removing AutoLogger file and restricting directory... "
$autoLoggerDir = " $env:PROGRAMDATA \Microsoft\Diagnosis\ETLLogs\AutoLogger "
If ( Test-Path " $autoLoggerDir \AutoLogger-Diagtrack-Listener.etl " ) {
Remove-Item " $autoLoggerDir \AutoLogger-Diagtrack-Listener.etl "
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
icacls $autoLoggerDir / deny SYSTEM : ` ( OI ` ) ` ( CI ` ) F | Out-Null
Write-Host " Stopping and disabling Diagnostics Tracking Service... "
Stop-Service " DiagTrack "
Set-Service " DiagTrack " -StartupType Disabled
2022-11-29 17:54:18 -06:00
2022-10-18 17:26:23 -05:00
Write-Host " Doing Security checks for Administrator Account and Group Policy "
2022-11-29 17:54:18 -06:00
if ( ( [ System.Security.Principal.WindowsIdentity ] :: GetCurrent ( ) . Name ) . IndexOf ( 'Administrator' ) -eq -1 ) {
2022-10-18 17:26:23 -05:00
net user administrator / active : no
2022-09-07 12:56:36 -05:00
}
2022-10-18 17:26:23 -05:00
$WPFEssTweaksTele . IsChecked = $false
2022-04-29 23:11:51 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksWifi . IsChecked -eq $true ) {
Write-Host " Disabling Wi-Fi Sense... "
If ( ! ( Test-Path " HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting " -Force | Out-Null
}
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting " -Name " Value " -Type DWord -Value 0
If ( ! ( Test-Path " HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots " -Force | Out-Null
}
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots " -Name " Value " -Type DWord -Value 0
$WPFEssTweaksWifi . IsChecked = $false
2022-04-29 23:11:51 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFMiscTweaksLapPower . IsChecked -eq $true ) {
If ( Test-Path " HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling " ) {
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling " -Name " PowerThrottlingOff " -Type DWord -Value 00000000
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power " -Name " HiberbootEnabled " -Type DWord -Value 0000001
$WPFMiscTweaksLapPower . IsChecked = $false
}
If ( $WPFMiscTweaksLapNum . IsChecked -eq $true ) {
Write-Host " Disabling NumLock after startup... "
If ( ! ( Test-Path " HKU: " ) ) {
New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null
2022-09-07 12:56:36 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKU:\.DEFAULT\Control Panel\Keyboard " -Name " InitialKeyboardIndicators " -Type DWord -Value 0
$WPFMiscTweaksLapNum . IsChecked = $false
}
If ( $WPFMiscTweaksPower . IsChecked -eq $true ) {
If ( Test-Path " HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling " ) {
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling " -Name " PowerThrottlingOff " -Type DWord -Value 00000001
2022-10-18 08:08:23 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power " -Name " HiberbootEnabled " -Type DWord -Value 0000000
$WPFMiscTweaksPower . IsChecked = $false
}
If ( $WPFMiscTweaksNum . IsChecked -eq $true ) {
Write-Host " Enabling NumLock after startup... "
If ( ! ( Test-Path " HKU: " ) ) {
New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKU:\.DEFAULT\Control Panel\Keyboard " -Name " InitialKeyboardIndicators " -Type DWord -Value 2
$WPFMiscTweaksNum . IsChecked = $false
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFMiscTweaksExt . IsChecked -eq $true ) {
Write-Host " Showing known file extensions... "
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " HideFileExt " -Type DWord -Value 0
$WPFMiscTweaksExt . IsChecked = $false
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFMiscTweaksUTC . IsChecked -eq $true ) {
Write-Host " Setting BIOS time to UTC... "
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation " -Name " RealTimeIsUniversal " -Type DWord -Value 1
$WPFMiscTweaksUTC . IsChecked = $false
2022-04-29 23:11:51 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFMiscTweaksDisplay . IsChecked -eq $true ) {
Write-Host " Adjusting visual effects for performance... "
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " DragFullWindows " -Type String -Value 0
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " MenuShowDelay " -Type String -Value 200
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " UserPreferencesMask " -Type Binary -Value ( [ byte[] ] ( 144 , 18 , 3 , 128 , 16 , 0 , 0 , 0 ) )
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop\WindowMetrics " -Name " MinAnimate " -Type String -Value 0
Set-ItemProperty -Path " HKCU:\Control Panel\Keyboard " -Name " KeyboardDelay " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " ListviewAlphaSelect " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " ListviewShadow " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " TaskbarAnimations " -Type DWord -Value 0
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects " -Name " VisualFXSetting " -Type DWord -Value 3
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\DWM " -Name " EnableAeroPeek " -Type DWord -Value 0
Write-Host " Adjusted visual effects for performance "
$WPFMiscTweaksDisplay . IsChecked = $false
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-11-14 15:48:10 -06:00
If ( $WPFMiscTweaksDisableMouseAcceleration . IsChecked -eq $true ) {
Write-Host " Disabling mouse acceleration... "
Set-ItemProperty -Path " HKCU:\Control Panel\Mouse " -Name " MouseSpeed " -Type String -Value 0
Set-ItemProperty -Path " HKCU:\Control Panel\Mouse " -Name " MouseThreshold1 " -Type String -Value 0
Set-ItemProperty -Path " HKCU:\Control Panel\Mouse " -Name " MouseThreshold2 " -Type String -Value 0
$WPFMiscTweaksDisableMouseAcceleration . IsChecked = $false
}
If ( $WPFMiscTweaksEnableMouseAcceleration . IsChecked -eq $true ) {
Write-Host " Enabling mouse acceleration... "
Set-ItemProperty -Path " HKCU:\Control Panel\Mouse " -Name " MouseSpeed " -Type String -Value 1
Set-ItemProperty -Path " HKCU:\Control Panel\Mouse " -Name " MouseThreshold1 " -Type String -Value 6
Set-ItemProperty -Path " HKCU:\Control Panel\Mouse " -Name " MouseThreshold2 " -Type String -Value 10
$WPFMiscTweaksEnableMouseAcceleration . IsChecked = $false
}
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksRemoveCortana . IsChecked -eq $true ) {
Write-Host " Removing Cortana... "
Get-AppxPackage -allusers Microsoft . 549981C3F5F10 | Remove-AppxPackage
$WPFEssTweaksRemoveCortana . IsChecked = $false
2022-10-08 18:07:08 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksRemoveEdge . IsChecked -eq $true ) {
Write-Host " Removing Microsoft Edge... "
2022-10-23 00:12:07 -05:00
Invoke-WebRequest -useb https : / / raw . githubusercontent . com / ChrisTitusTech / winutil / $BranchToUse / Edge_Removal . bat | Invoke-Expression
2022-10-18 17:26:23 -05:00
$WPFEssTweaksRemoveEdge . IsChecked = $false
2022-10-08 16:50:46 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFEssTweaksDeBloat . IsChecked -eq $true ) {
$Bloatware = @ (
#Unnecessary Windows 10 AppX Apps
" 3DBuilder "
" Microsoft3DViewer "
" AppConnector "
" BingFinance "
" BingNews "
" BingSports "
" BingTranslator "
" BingWeather "
" BingFoodAndDrink "
" BingHealthAndFitness "
" BingTravel "
" MinecraftUWP "
" GamingServices "
# "WindowsReadingList"
" GetHelp "
" Getstarted "
" Messaging "
" Microsoft3DViewer "
" MicrosoftSolitaireCollection "
" NetworkSpeedTest "
" News "
" Lens "
" Sway "
" OneNote "
" OneConnect "
" People "
" Print3D "
" SkypeApp "
" Todos "
" Wallet "
" Whiteboard "
" WindowsAlarms "
" windowscommunicationsapps "
" WindowsFeedbackHub "
" WindowsMaps "
" WindowsPhone "
" WindowsSoundRecorder "
" XboxApp "
" ConnectivityStore "
" CommsPhone "
" ScreenSketch "
" TCUI "
" XboxGameOverlay "
" XboxGameCallableUI "
" XboxSpeechToTextOverlay "
" MixedReality.Portal "
" ZuneMusic "
" ZuneVideo "
#"YourPhone"
" Getstarted "
" MicrosoftOfficeHub "
#Sponsored Windows 10 AppX Apps
#Add sponsored/featured apps to remove in the "*AppName*" format
" EclipseManager "
" ActiproSoftwareLLC "
" AdobeSystemsIncorporated.AdobePhotoshopExpress "
" Duolingo-LearnLanguagesforFree "
" PandoraMediaInc "
" CandyCrush "
" BubbleWitch3Saga "
" Wunderlist "
" Flipboard "
" Twitter "
" Facebook "
" Royal Revolt "
" Sway "
" Speed Test "
" Dolby "
" Viber "
" ACGMediaPlayer "
" Netflix "
" OneCalendar "
" LinkedInforWindows "
" HiddenCityMysteryofShadows "
" Hulu "
" HiddenCity "
" AdobePhotoshopExpress "
" HotspotShieldFreeVPN "
#Optional: Typically not removed but you can if you need to
" Advertising "
#"MSPaint"
#"MicrosoftStickyNotes"
#"Windows.Photos"
#"WindowsCalculator"
#"WindowsStore"
# HPBloatware Packages
" HPJumpStarts "
" HPPCHardwareDiagnosticsWindows "
" HPPowerManager "
" HPPrivacySettings "
" HPSupportAssistant "
" HPSureShieldAI "
" HPSystemInformation "
" HPQuickDrop "
" HPWorkWell "
" myHP "
" HPDesktopSupportUtilities "
" HPQuickTouch "
" HPEasyClean "
" HPSystemInformation "
)
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-10-23 00:48:39 -05:00
## Teams Removal - Source: https://github.com/asheroto/UninstallTeams
function getUninstallString($match ) {
return ( Get-ChildItem -Path HKLM : \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall , HKLM : \ SOFTWARE \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Uninstall | Get-ItemProperty | Where-Object { $_ . DisplayName -like " * $match * " } ) . UninstallString
2022-10-18 17:26:23 -05:00
}
2022-10-23 00:48:39 -05:00
$TeamsPath = [ System.IO.Path ] :: Combine ( $env:LOCALAPPDATA , 'Microsoft' , 'Teams' )
$TeamsUpdateExePath = [ System.IO.Path ] :: Combine ( $TeamsPath , 'Update.exe' )
Write-Output " Stopping Teams process... "
Stop-Process -Name " *teams* " -Force -ErrorAction SilentlyContinue
Write-Output " Uninstalling Teams from AppData\Microsoft\Teams "
if ( [ System.IO.File ] :: Exists ( $TeamsUpdateExePath ) ) {
# Uninstall app
$proc = Start-Process $TeamsUpdateExePath " -uninstall -s " -PassThru
$proc . WaitForExit ( )
2022-10-18 17:26:23 -05:00
}
2022-10-23 00:48:39 -05:00
Write-Output " Removing Teams AppxPackage... "
Get-AppxPackage " *Teams* " | Remove-AppxPackage -ErrorAction SilentlyContinue
Get-AppxPackage " *Teams* " -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
Write-Output " Deleting Teams directory "
if ( [ System.IO.Directory ] :: Exists ( $TeamsPath ) ) {
Remove-Item $TeamsPath -Force -Recurse -ErrorAction SilentlyContinue
2022-10-18 17:26:23 -05:00
}
2022-10-23 00:48:39 -05:00
Write-Output " Deleting Teams uninstall registry key "
# Uninstall from Uninstall registry key UninstallString
$us = getUninstallString ( " Teams " ) ;
if ( $us . Length -gt 0 ) {
$us = ( $us . Replace ( " /I " , " /uninstall " ) + " /quiet " ) . Replace ( " " , " " )
$FilePath = ( $us . Substring ( 0 , $us . IndexOf ( " .exe " ) + 4 ) . Trim ( ) )
$ProcessArgs = ( $us . Substring ( $us . IndexOf ( " .exe " ) + 5 ) . Trim ( ) . replace ( " " , " " ) )
$proc = Start-Process -FilePath $FilePath -Args $ProcessArgs -PassThru
$proc . WaitForExit ( )
2022-10-13 05:59:14 -05:00
}
2022-10-23 00:48:39 -05:00
Write-Output " Restart computer to complete teams uninstall "
2022-10-18 17:26:23 -05:00
Write-Host " Removing Bloatware "
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-10-18 17:26:23 -05:00
foreach ( $Bloat in $Bloatware ) {
2022-10-23 00:48:39 -05:00
Get-AppxPackage " * $Bloat * " | Remove-AppxPackage -ErrorAction SilentlyContinue
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like " * $Bloat * " | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
2022-10-18 17:26:23 -05:00
Write-Host " Trying to remove $Bloat . "
2022-10-18 08:08:23 -05:00
}
2022-04-29 23:11:51 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " Finished Removing Bloatware Apps "
Write-Host " Removing Bloatware Programs "
# Remove installed programs
$InstalledPrograms = Get-Package | Where-Object { $UninstallPrograms -contains $_ . Name }
$InstalledPrograms | ForEach-Object {
2022-10-13 05:59:14 -05:00
2022-10-18 17:26:23 -05:00
Write-Host -Object " Attempting to uninstall: [ $( $_ . Name ) ]... "
Try {
2022-10-23 00:48:39 -05:00
$Null = $_ | Uninstall-Package -AllVersions -Force -ErrorAction SilentlyContinue
2022-10-18 17:26:23 -05:00
Write-Host -Object " Successfully uninstalled: [ $( $_ . Name ) ] "
}
Catch {
Write-Warning -Message " Failed to uninstall: [ $( $_ . Name ) ] "
}
2022-10-18 08:08:23 -05:00
}
2022-10-18 17:26:23 -05:00
Write-Host " Finished Removing Bloatware Programs "
$WPFEssTweaksDeBloat . IsChecked = $false
2022-10-18 08:08:23 -05:00
}
2022-10-13 05:59:14 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " ================================= "
Write-Host " -- Tweaks are Finished --- "
Write-Host " ================================= "
2022-09-07 15:17:31 -05:00
2022-10-18 17:26:23 -05:00
$ButtonType = [ System.Windows.MessageBoxButton ] :: OK
$MessageboxTitle = " Tweaks are Finished "
$Messageboxbody = ( " Done " )
$MessageIcon = [ System.Windows.MessageBoxImage ] :: Information
[ System.Windows.MessageBox ] :: Show ( $Messageboxbody , $MessageboxTitle , $ButtonType , $MessageIcon )
} )
2022-11-14 15:48:10 -06:00
$WPFAddUltPerf . Add_Click ( {
Write-Host " Adding Ultimate Performance Profile "
powercfg -duplicatescheme e9a42b02-d5df - 448d -aa00 - 03f14749eb61
Write-Host " Profile added "
}
)
2022-10-18 17:26:23 -05:00
2022-11-14 15:48:10 -06:00
$WPFRemoveUltPerf . Add_Click ( {
Write-Host " Removing Ultimate Performance Profile "
powercfg -delete e9a42b02-d5df - 448d -aa00 - 03f14749eb61
Write-Host " Profile Removed "
}
)
2022-11-29 17:54:18 -06:00
function Get-AppsUseLightTheme {
return ( Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize' ) . AppsUseLightTheme
}
function Get-SystemUsesLightTheme {
return ( Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize' ) . SystemUsesLightTheme
}
$WPFToggleDarkMode . IsChecked = $ ( If ( $ ( Get-AppsUseLightTheme ) -eq 0 -And $ ( Get-SystemUsesLightTheme ) -eq 0 ) { $true } Else { $false } )
$WPFToggleDarkMode . Add_Click ( {
$EnableDarkMode = $WPFToggleDarkMode . IsChecked
$DarkMoveValue = $ ( If ( $EnableDarkMode ) { 0 } Else { 1 } )
Write-Host $ ( If ( $EnableDarkMode ) { " Enabling Dark Mode " } Else { " Disabling Dark Mode " } )
$Theme = " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize "
If ( $DarkMoveValue -ne $ ( Get-AppsUseLightTheme ) )
{
Set-ItemProperty $Theme AppsUseLightTheme -Value $DarkMoveValue
2022-10-08 16:51:36 -05:00
}
2022-11-29 17:54:18 -06:00
If ( $DarkMoveValue -ne $ ( Get-SystemUsesLightTheme ) )
{
Set-ItemProperty $Theme SystemUsesLightTheme -Value $DarkMoveValue
}
Write-Host $ ( If ( $EnableDarkMode ) { " Enabled " } Else { " Disabled " } )
2022-11-14 15:48:10 -06:00
2022-10-08 16:51:36 -05:00
}
2022-10-18 17:26:23 -05:00
)
2022-11-29 17:54:18 -06:00
2022-10-18 17:26:23 -05:00
#===========================================================================
# Undo All
#===========================================================================
$WPFundoall . Add_Click ( {
Write-Host " Creating Restore Point in case something bad happens "
Enable-ComputerRestore -Drive " $env:SystemDrive "
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
Checkpoint-Computer -Description " RestorePoint1 " -RestorePointType " MODIFY_SETTINGS "
2022-10-18 17:26:23 -05:00
Write-Host " Enabling Telemetry... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection " -Name " AllowTelemetry " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection " -Name " AllowTelemetry " -Type DWord -Value 1
Write-Host " Enabling Wi-Fi Sense "
Set-ItemProperty -Path " HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting " -Name " Value " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots " -Name " Value " -Type DWord -Value 1
Write-Host " Enabling Application suggestions... "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " ContentDeliveryAllowed " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " OemPreInstalledAppsEnabled " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " PreInstalledAppsEnabled " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " PreInstalledAppsEverEnabled " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SilentInstalledAppsEnabled " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SubscribedContent-338387Enabled " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SubscribedContent-338388Enabled " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SubscribedContent-338389Enabled " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SubscribedContent-353698Enabled " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager " -Name " SystemPaneSuggestionsEnabled " -Type DWord -Value 1
If ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " ) {
Remove-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " -Recurse -ErrorAction SilentlyContinue
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " -Name " DisableWindowsConsumerFeatures " -Type DWord -Value 0
Write-Host " Enabling Activity History... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System " -Name " EnableActivityFeed " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System " -Name " PublishUserActivities " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System " -Name " UploadUserActivities " -Type DWord -Value 1
Write-Host " Enable Location Tracking... "
If ( Test-Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location " ) {
Remove-Item -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location " -Recurse -ErrorAction SilentlyContinue
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location " -Name " Value " -Type String -Value " Allow "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44} " -Name " SensorPermissionState " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration " -Name " Status " -Type DWord -Value 1
Write-Host " Enabling automatic Maps updates... "
Set-ItemProperty -Path " HKLM:\SYSTEM\Maps " -Name " AutoUpdateEnabled " -Type DWord -Value 1
Write-Host " Enabling Feedback... "
If ( Test-Path " HKCU:\SOFTWARE\Microsoft\Siuf\Rules " ) {
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
Remove-Item -Path " HKCU:\SOFTWARE\Microsoft\Siuf\Rules " -Recurse -ErrorAction SilentlyContinue
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Siuf\Rules " -Name " NumberOfSIUFInPeriod " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection " -Name " DoNotShowFeedbackNotifications " -Type DWord -Value 0
Write-Host " Enabling Tailored Experiences... "
If ( Test-Path " HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " ) {
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
Remove-Item -Path " HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " -Recurse -ErrorAction SilentlyContinue
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent " -Name " DisableTailoredExperiencesWithDiagnosticData " -Type DWord -Value 0
Write-Host " Disabling Advertising ID... "
If ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo " ) {
2022-09-06 17:05:11 -05:00
Remove-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo " -Recurse -ErrorAction SilentlyContinue
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo " -Name " DisabledByGroupPolicy " -Type DWord -Value 0
Write-Host " Allow Error reporting... "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting " -Name " Disabled " -Type DWord -Value 0
Write-Host " Allowing Diagnostics Tracking Service... "
Stop-Service " DiagTrack " -WarningAction SilentlyContinue
Set-Service " DiagTrack " -StartupType Manual
Write-Host " Allowing WAP Push Service... "
Stop-Service " dmwappushservice " -WarningAction SilentlyContinue
Set-Service " dmwappushservice " -StartupType Manual
Write-Host " Allowing Home Groups services... "
Stop-Service " HomeGroupListener " -WarningAction SilentlyContinue
Set-Service " HomeGroupListener " -StartupType Manual
Stop-Service " HomeGroupProvider " -WarningAction SilentlyContinue
Set-Service " HomeGroupProvider " -StartupType Manual
Write-Host " Enabling Storage Sense... "
New-Item -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy " | Out-Null
Write-Host " Allowing Superfetch service... "
Stop-Service " SysMain " -WarningAction SilentlyContinue
Set-Service " SysMain " -StartupType Manual
Write-Host " Setting BIOS time to Local Time instead of UTC... "
Set-ItemProperty -Path " HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation " -Name " RealTimeIsUniversal " -Type DWord -Value 0
Write-Host " Enabling Hibernation... "
Set-ItemProperty -Path " HKLM:\System\CurrentControlSet\Control\Session Manager\Power " -Name " HibernteEnabled " -Type Dword -Value 1
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings " -Name " ShowHibernateOption " -Type Dword -Value 1
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization " -Name " NoLockScreen " -ErrorAction SilentlyContinue
Write-Host " Hiding file operations details... "
If ( Test-Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager " ) {
Remove-Item -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager " -Recurse -ErrorAction SilentlyContinue
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager " -Name " EnthusiastMode " -Type DWord -Value 0
Write-Host " Showing Task View button... "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " ShowTaskViewButton " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People " -Name " PeopleBand " -Type DWord -Value 1
Write-Host " Changing default Explorer view to Quick Access... "
Set-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " LaunchTo " -Type DWord -Value 1
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " Unrestricting AutoLogger directory "
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
$autoLoggerDir = " $env:PROGRAMDATA \Microsoft\Diagnosis\ETLLogs\AutoLogger "
icacls $autoLoggerDir / grant : r SYSTEM : ` ( OI ` ) ` ( CI ` ) F | Out-Null
2022-10-18 17:26:23 -05:00
Write-Host " Enabling and starting Diagnostics Tracking Service "
Set-Service " DiagTrack " -StartupType Automatic
Start-Service " DiagTrack "
Write-Host " Hiding known file extensions "
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " HideFileExt " -Type DWord -Value 1
Write-Host " Reset Local Group Policies to Stock Defaults "
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
# cmd /c secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
cmd / c RD / S / Q " %WinDir%\System32\GroupPolicyUsers "
cmd / c RD / S / Q " %WinDir%\System32\GroupPolicy "
cmd / c gpupdate / force
2022-10-18 17:26:23 -05:00
# Considered using Invoke-GPUpdate but requires module most people won't have installed
Write-Output " Adjusting visual effects for appearance... "
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " DragFullWindows " -Type String -Value 1
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " MenuShowDelay " -Type String -Value 400
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " UserPreferencesMask " -Type Binary -Value ( [ byte[] ] ( 158 , 30 , 7 , 128 , 18 , 0 , 0 , 0 ) )
Set-ItemProperty -Path " HKCU:\Control Panel\Desktop\WindowMetrics " -Name " MinAnimate " -Type String -Value 1
Set-ItemProperty -Path " HKCU:\Control Panel\Keyboard " -Name " KeyboardDelay " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " ListviewAlphaSelect " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " ListviewShadow " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced " -Name " TaskbarAnimations " -Type DWord -Value 1
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects " -Name " VisualFXSetting " -Type DWord -Value 3
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\DWM " -Name " EnableAeroPeek " -Type DWord -Value 1
Remove-ItemProperty -Path " HKCU:\Control Panel\Desktop " -Name " HungAppTimeout " -ErrorAction SilentlyContinue
Write-Host " Restoring Clipboard History... "
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
Remove-ItemProperty -Path " HKCU:\SOFTWARE\Microsoft\Clipboard " -Name " EnableClipboardHistory " -ErrorAction SilentlyContinue
2022-09-06 17:05:11 -05:00
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\System " -Name " AllowClipboardHistory " -ErrorAction SilentlyContinue
2022-10-18 17:26:23 -05:00
Write-Host " Enabling Notifications and Action Center "
Remove-Item -Path HKCU : \ SOFTWARE \ Policies \ Microsoft \ Windows \ Explorer -Force
Remove-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications " -Name " ToastEnabled "
Write-Host " Restoring Default Right Click Menu Layout "
Remove-Item -Path " HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2} " -Recurse -Confirm: $false -Force
Write-Host " Reset News and Interests "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds " -Name " EnableFeeds " -Type DWord -Value 1
# Remove "News and Interest" from taskbar
Set-ItemProperty -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds " -Name " ShellFeedsTaskbarViewMode " -Type DWord -Value 0
Write-Host " Done - Reverted to Stock Settings "
Write-Host " Essential Undo Completed "
$ButtonType = [ System.Windows.MessageBoxButton ] :: OK
$MessageboxTitle = " Undo All "
$Messageboxbody = ( " Done " )
$MessageIcon = [ System.Windows.MessageBoxImage ] :: Information
[ System.Windows.MessageBox ] :: Show ( $Messageboxbody , $MessageboxTitle , $ButtonType , $MessageIcon )
Write-Host " ================================= "
Write-Host " --- Undo All is Finished --- "
Write-Host " ================================= "
} )
#===========================================================================
# Tab 3 - Config Buttons
#===========================================================================
$WPFFeatureInstall . Add_Click ( {
2022-05-10 08:18:13 -05:00
2022-10-18 17:26:23 -05:00
If ( $WPFFeaturesdotnet . IsChecked -eq $true ) {
Enable-WindowsOptionalFeature -Online -FeatureName " NetFx4-AdvSrvs " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " NetFx3 " -All -NoRestart
2022-09-15 10:50:38 -05:00
}
2022-10-18 17:26:23 -05:00
If ( $WPFFeatureshyperv . IsChecked -eq $true ) {
Enable-WindowsOptionalFeature -Online -FeatureName " HypervisorPlatform " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " Microsoft-Hyper-V-All " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " Microsoft-Hyper-V " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " Microsoft-Hyper-V-Tools-All " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " Microsoft-Hyper-V-Management-PowerShell " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " Microsoft-Hyper-V-Hypervisor " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " Microsoft-Hyper-V-Services " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " Microsoft-Hyper-V-Management-Clients " -All -NoRestart
cmd / c bcdedit / set hypervisorschedulertype classic
Write-Host " HyperV is now installed and configured. Please Reboot before using. "
}
If ( $WPFFeatureslegacymedia . IsChecked -eq $true ) {
Enable-WindowsOptionalFeature -Online -FeatureName " WindowsMediaPlayer " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " MediaPlayback " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " DirectPlay " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " LegacyComponents " -All -NoRestart
}
If ( $WPFFeaturewsl . IsChecked -eq $true ) {
Enable-WindowsOptionalFeature -Online -FeatureName " VirtualMachinePlatform " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " Microsoft-Windows-Subsystem-Linux " -All -NoRestart
Write-Host " WSL is now installed and configured. Please Reboot before using. "
}
If ( $WPFFeaturenfs . IsChecked -eq $true ) {
Enable-WindowsOptionalFeature -Online -FeatureName " ServicesForNFS-ClientOnly " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " ClientForNFS-Infrastructure " -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName " NFS-Administration " -All -NoRestart
nfsadmin client stop
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default " -Name " AnonymousUID " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default " -Name " AnonymousGID " -Type DWord -Value 0
nfsadmin client start
nfsadmin client localhost config fileaccess = 755 SecFlavors = + sys -krb5 -krb5i
Write-Host " NFS is now setup for user based NFS mounts "
}
$ButtonType = [ System.Windows.MessageBoxButton ] :: OK
$MessageboxTitle = " All features are now installed "
$Messageboxbody = ( " Done " )
$MessageIcon = [ System.Windows.MessageBoxImage ] :: Information
[ System.Windows.MessageBox ] :: Show ( $Messageboxbody , $MessageboxTitle , $ButtonType , $MessageIcon )
Write-Host " ================================= "
Write-Host " --- Features are Installed --- "
Write-Host " ================================= "
} )
$WPFPanelDISM . Add_Click ( {
Start-Process PowerShell -ArgumentList " Write-Host '(1/4) Chkdsk' -ForegroundColor Green; Chkdsk /scan;
Write-Host '`n(2/4) SFC - 1st scan' -ForegroundColor Green ; sfc / scannow ;
Write-Host '`n(3/4) DISM' -ForegroundColor Green ; DISM / Online / Cleanup-Image / Restorehealth ;
Write-Host '`n(4/4) SFC - 2nd scan' -ForegroundColor Green ; sfc / scannow ;
Read-Host '`nPress Enter to Continue' " -verb runas
} )
$WPFPanelAutologin . Add_Click ( {
curl . exe -ss " https://live.sysinternals.com/Autologon.exe " -o autologin . exe # Official Microsoft recommendation https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
cmd / c autologin . exe
} )
$WPFPanelcontrol . Add_Click ( {
cmd / c control
} )
$WPFPanelnetwork . Add_Click ( {
cmd / c ncpa . cpl
} )
$WPFPanelpower . Add_Click ( {
cmd / c powercfg . cpl
} )
$WPFPanelsound . Add_Click ( {
cmd / c mmsys . cpl
} )
$WPFPanelsystem . Add_Click ( {
cmd / c sysdm . cpl
} )
$WPFPaneluser . Add_Click ( {
cmd / c " control userpasswords2 "
} )
#===========================================================================
# Tab 4 - Updates Buttons
#===========================================================================
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
$WPFUpdatesdefault . Add_Click ( {
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Force | Out-Null
}
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Name " NoAutoUpdate " -Type DWord -Value 0
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Name " AUOptions " -Type DWord -Value 3
If ( ! ( Test-Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " -Force | Out-Null
2022-09-15 10:50:38 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " -Name " DODownloadMode " -Type DWord -Value 1
2022-09-15 10:50:38 -05:00
2022-10-18 17:26:23 -05:00
$services = @ (
" BITS "
" wuauserv "
)
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-10-18 17:26:23 -05:00
foreach ( $service in $services ) {
# -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " Setting $service StartupType to Automatic "
Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Automatic
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Write-Host " Enabling driver offering through Windows Update... "
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata " -Name " PreventDeviceMetadataFromNetwork " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching " -Name " DontPromptForWindowsUpdate " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching " -Name " DontSearchWindowsUpdate " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching " -Name " DriverUpdateWizardWuSearchEnabled " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate " -Name " ExcludeWUDriversInQualityUpdate " -ErrorAction SilentlyContinue
Write-Host " Enabling Windows Update automatic restart... "
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Name " NoAutoRebootWithLoggedOnUsers " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Name " AUPowerManagement " -ErrorAction SilentlyContinue
Write-Host " Enabled driver offering through Windows Update "
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings " -Name " BranchReadinessLevel " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings " -Name " DeferFeatureUpdatesPeriodInDays " -ErrorAction SilentlyContinue
Remove-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings " -Name " DeferQualityUpdatesPeriodInDays " -ErrorAction SilentlyContinue
Write-Host " ================================= "
Write-Host " --- Updates Set to Default --- "
Write-Host " ================================= "
} )
$WPFFixesUpdate . Add_Click ( {
### Reset Windows Update Script - reregister dlls, services, and remove registry entires.
Write-Host " 1. Stopping Windows Update Services... "
Stop-Service -Name BITS
Stop-Service -Name wuauserv
Stop-Service -Name appidsvc
Stop-Service -Name cryptsvc
Write-Host " 2. Remove QMGR Data file... "
Remove-Item " $env:allusersprofile \Application Data\Microsoft\Network\Downloader\qmgr*.dat " -ErrorAction SilentlyContinue
Write-Host " 3. Renaming the Software Distribution and CatRoot Folder... "
Rename-Item $env:systemroot \ SoftwareDistribution SoftwareDistribution . bak -ErrorAction SilentlyContinue
Rename-Item $env:systemroot \ System32 \ Catroot2 catroot2 . bak -ErrorAction SilentlyContinue
Write-Host " 4. Removing old Windows Update log... "
Remove-Item $env:systemroot \ WindowsUpdate . log -ErrorAction SilentlyContinue
Write-Host " 5. Resetting the Windows Update Services to defualt settings... "
" sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) "
" sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) "
Set-Location $env:systemroot \ system32
Write-Host " 6. Registering some DLLs... "
regsvr32 . exe / s atl . dll
regsvr32 . exe / s urlmon . dll
regsvr32 . exe / s mshtml . dll
regsvr32 . exe / s shdocvw . dll
regsvr32 . exe / s browseui . dll
regsvr32 . exe / s jscript . dll
regsvr32 . exe / s vbscript . dll
regsvr32 . exe / s scrrun . dll
regsvr32 . exe / s msxml . dll
regsvr32 . exe / s msxml3 . dll
regsvr32 . exe / s msxml6 . dll
regsvr32 . exe / s actxprxy . dll
regsvr32 . exe / s softpub . dll
regsvr32 . exe / s wintrust . dll
regsvr32 . exe / s dssenh . dll
regsvr32 . exe / s rsaenh . dll
regsvr32 . exe / s gpkcsp . dll
regsvr32 . exe / s sccbase . dll
regsvr32 . exe / s slbcsp . dll
regsvr32 . exe / s cryptdlg . dll
regsvr32 . exe / s oleaut32 . dll
regsvr32 . exe / s ole32 . dll
regsvr32 . exe / s shell32 . dll
regsvr32 . exe / s initpki . dll
regsvr32 . exe / s wuapi . dll
regsvr32 . exe / s wuaueng . dll
regsvr32 . exe / s wuaueng1 . dll
regsvr32 . exe / s wucltui . dll
regsvr32 . exe / s wups . dll
regsvr32 . exe / s wups2 . dll
regsvr32 . exe / s wuweb . dll
regsvr32 . exe / s qmgr . dll
regsvr32 . exe / s qmgrprxy . dll
regsvr32 . exe / s wucltux . dll
regsvr32 . exe / s muweb . dll
regsvr32 . exe / s wuwebv . dll
Write-Host " 7) Removing WSUS client settings... "
REG DELETE " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate " / v AccountDomainSid / f
REG DELETE " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate " / v PingID / f
REG DELETE " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate " / v SusClientId / f
Write-Host " 8) Resetting the WinSock... "
netsh winsock reset
netsh winhttp reset proxy
netsh int ip reset
Write-Host " 9) Delete all BITS jobs... "
Get-BitsTransfer | Remove-BitsTransfer
Write-Host " 10) Attempting to install the Windows Update Agent... "
2022-11-29 17:54:18 -06:00
If ( [ System.Environment ] :: Is64BitOperatingSystem ) {
2022-10-18 17:26:23 -05:00
wusa Windows8-RT -KB2937636 -x64 / quiet
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
else {
wusa Windows8-RT -KB2937636 -x86 / quiet
}
2022-05-10 08:18:13 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " 11) Starting Windows Update Services... "
Start-Service -Name BITS
Start-Service -Name wuauserv
Start-Service -Name appidsvc
Start-Service -Name cryptsvc
Write-Host " 12) Forcing discovery... "
wuauclt / resetauthorization / detectnow
Write-Host " Process complete. Please reboot your computer. "
$ButtonType = [ System.Windows.MessageBoxButton ] :: OK
$MessageboxTitle = " Reset Windows Update "
$Messageboxbody = ( " Stock settings loaded. `n Please reboot your computer " )
$MessageIcon = [ System.Windows.MessageBoxImage ] :: Information
[ System.Windows.MessageBox ] :: Show ( $Messageboxbody , $MessageboxTitle , $ButtonType , $MessageIcon )
Write-Host " ================================= "
Write-Host " -- Reset ALL Updates to Factory - "
Write-Host " ================================= "
} )
$WPFUpdatesdisable . Add_Click ( {
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Force | Out-Null
2022-10-13 05:59:14 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Name " NoAutoUpdate " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Name " AUOptions " -Type DWord -Value 1
If ( ! ( Test-Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " -Force | Out-Null
2022-10-13 05:59:14 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config " -Name " DODownloadMode " -Type DWord -Value 0
$services = @ (
" BITS "
" wuauserv "
)
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
foreach ( $service in $services ) {
# -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
Write-Host " Setting $service StartupType to Disabled "
Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Disabled
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Write-Host " ================================= "
Write-Host " --- Updates ARE DISABLED --- "
Write-Host " ================================= "
} )
$WPFUpdatessecurity . Add_Click ( {
Write-Host " Disabling driver offering through Windows Update... "
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata " -Force | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata " -Name " PreventDeviceMetadataFromNetwork " -Type DWord -Value 1
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching " -Force | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching " -Name " DontPromptForWindowsUpdate " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching " -Name " DontSearchWindowsUpdate " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching " -Name " DriverUpdateWizardWuSearchEnabled " -Type DWord -Value 0
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate " | Out-Null
Test (#94)
* xml decouple
* Typos: Documents, Start installs (#18)
Document -> Documents
Start install -> Start installs
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added DISM command and button to tool (#19)
* Added DISM command and button to tool
* Added additional scans and colours to make it clear when each scan type starts
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix issue in #14 (#20)
* Fix issue in #14
- It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button.
- Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script
- Fixes #14
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Add winget check and installer (#21)
* Add winget check and installer
- Adds Check if winget is installed
- If not installed, checks if the computer is running 1809+ and if the computer is running Windows Server or LTSC
- If running pre-1809, winget install stops as it is not supported
- If running Windows Server or Windows LTSC, runs alternative installer compatible with those editions of Windows
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Small Fixes. (#22)
* Update winutil.ps1
* Use Curl instead of Bits transfer for O&O Shutup.
* Update winutil.ps1
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* upload example (#12)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* code format using powershell VS code extension (#28)
* Working runspaces (#32)
* upload example
* decoupling xaml and ps1 (#7)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Update README.md
* convert to runspaces
* add security updates to invoke-button
* Update README.md
removed extra text about test branch
* initial commit to test restmethod
* formatting
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix bug in #39 (#40)
- Closes #39
- $arch is not set to a value in the script, and it throws an error when the If-Statement is called
- Fixed by replacing the $arch variable check with a wmic check
* Fix and Tweak #19 (#43)
* Fix Issue in #19
- Pull Request #19 didn't add an entry for PanelDISM into MainWindow.xaml, causing an error to be thrown when the script if executed and a button to not be created
- Fixed by adding an entry into MainWIndow.xaml that creates the needed button under the FixesUpdate button
- Note: To see the fix, you need to comment line 9 and uncomment line 8 to use the local MainWindow.xaml instead of the one in the Main Branch
* Fix Formatting and Tweak Things
- Fixed the formatting
- Tweaked Write-Host's
- Added newlines (`n) to space out the Statuses
- Added progress indicators
- Required "s and 's to be swapped so x/4 does not perform an operation
* Slight Tweak
* Added Uncheck all button in the Install tab (#29)
* Revert "Added Uncheck all button in the Install tab (#29)" (#72)
This reverts commit 833837155af3d1c0a91f28e78ed2bf8c4aedea65.
* Throw warning if no programs are selected for installation (#30)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Fix a few spelling errors (#44)
- Fixed a few spelling errors
- dependancies -> dependencies
- Evnronment -> Environment
- haved -> have
- Hibernte -> Hibernate
- histroy -> history
- extentions -> extensions
* Arguments (#52)
* Implement Arguments
- Using $env:args, the script scans for arguments; then if found, Invokes the Runspace associated with said arg. Or in the case of the old panels, just opens the panel.
- \b is to prevent mutual words from causing issues (Ex: Install and InstallUpgrade would conflict without \b)
* Actually add \b
Forgot to save before previous commit : |
* Fix Order Issue
- The arg check occurred too early, causing an error
* Remove Invoke-Runspace
- Replaced Invoke-Runspace with Invoke-Command as there is no need to worry about the gui when running unattended
* Add Program Install Arg Check
- Added arg check for Install
- Format is 'Install: company.program,.company.program2'
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Replace all instances of "incase" to "in case" (#60)
Co-authored-by: Chris Titus <dfm.titus@gmail.com>
* Added -NoRestart to WindowsOptionalFeature (#65)
* Handled UAC exit on install and upgrade (#31)
Co-authored-by: ChrisTitusTech <dfm.titus@gmail.com>
Co-authored-by: Ayoub Hebbaj <30575106+M3nti0nL3Ss@users.noreply.github.com>
Co-authored-by: Jards <jordancattwood@hotmail.com>
Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com>
Co-authored-by: Aetopia <41850963+Aetopia@users.noreply.github.com>
Co-authored-by: DeveloperDurp <74198206+DeveloperDurp@users.noreply.github.com>
Co-authored-by: Rahul Somasundaram <ssrahul96@gmail.com>
Co-authored-by: GrahamboJangles <36944031+GrahamboJangles@users.noreply.github.com>
Co-authored-by: PWall <34860495+pwall2222@users.noreply.github.com>
2022-09-05 13:32:48 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate " -Name " ExcludeWUDriversInQualityUpdate " -Type DWord -Value 1
Write-Host " Disabling Windows Update automatic restart... "
If ( ! ( Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " ) ) {
New-Item -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Force | Out-Null
2022-10-18 08:08:23 -05:00
}
2022-10-18 17:26:23 -05:00
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Name " NoAutoRebootWithLoggedOnUsers " -Type DWord -Value 1
Set-ItemProperty -Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU " -Name " AUPowerManagement " -Type DWord -Value 0
Write-Host " Disabled driver offering through Windows Update "
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings " -Name " BranchReadinessLevel " -Type DWord -Value 20
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings " -Name " DeferFeatureUpdatesPeriodInDays " -Type DWord -Value 365
Set-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings " -Name " DeferQualityUpdatesPeriodInDays " -Type DWord -Value 4
$ButtonType = [ System.Windows.MessageBoxButton ] :: OK
$MessageboxTitle = " Set Security Updates "
$Messageboxbody = ( " Recommended Update settings loaded " )
$MessageIcon = [ System.Windows.MessageBoxImage ] :: Information
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
[ System.Windows.MessageBox ] :: Show ( $Messageboxbody , $MessageboxTitle , $ButtonType , $MessageIcon )
Write-Host " ================================= "
Write-Host " -- Updates Set to Recommended --- "
Write-Host " ================================= "
} )
2022-10-18 08:08:23 -05:00
2022-10-18 17:26:23 -05:00
#===========================================================================
# Shows the form
#===========================================================================
2022-11-14 15:48:10 -06:00
Get-FormVariables
2022-10-18 17:26:23 -05:00
$Form . ShowDialog ( ) | out-null
2022-11-29 17:54:18 -06:00
Stop-Transcript