mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2024-11-15 12:13:13 +00:00
Script will now create a restore point
The ability for the script to create a system restore point has been added before the GUI itself is shown. It is automatically created at this time as well.
This commit is contained in:
parent
43dbee47d7
commit
6e8c7362c7
@ -35,6 +35,7 @@ If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#Unnecessary Windows 10 AppX apps that will be removed by the blacklist.
|
#Unnecessary Windows 10 AppX apps that will be removed by the blacklist.
|
||||||
$global:Bloatware = @(
|
$global:Bloatware = @(
|
||||||
"Microsoft.PPIProjection"
|
"Microsoft.PPIProjection"
|
||||||
@ -488,6 +489,10 @@ Else {
|
|||||||
|
|
||||||
Start-Transcript -OutputDirectory "${DebloatFolder}"
|
Start-Transcript -OutputDirectory "${DebloatFolder}"
|
||||||
|
|
||||||
|
Write-Output "Creating System Restore Point if one does not already exist. If one does, then you will receive a warning. Please wait..."
|
||||||
|
Checkpoint-Computer -Description "Before using W10DebloaterGUI.ps1"
|
||||||
|
|
||||||
|
|
||||||
#region gui events {
|
#region gui events {
|
||||||
$CustomizeBlacklist.Add_Click( {
|
$CustomizeBlacklist.Add_Click( {
|
||||||
$CustomizeForm = New-Object System.Windows.Forms.Form
|
$CustomizeForm = New-Object System.Windows.Forms.Form
|
||||||
|
Loading…
Reference in New Issue
Block a user