Anpassung der debload config.
This commit is contained in:
@@ -299,6 +299,7 @@ function InstallSoftwareOpt {
|
|||||||
# Funktion um Windows zu debloaten
|
# Funktion um Windows zu debloaten
|
||||||
function DebloatWindows {
|
function DebloatWindows {
|
||||||
Write-Host "Beginne das Windows zu debloaten und hardening auszuführen..." - -ForegroundColor Blue
|
Write-Host "Beginne das Windows zu debloaten und hardening auszuführen..." - -ForegroundColor Blue
|
||||||
|
. .\debloat.ps1
|
||||||
debloatwindows
|
debloatwindows
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ function debloatwindows {
|
|||||||
Add-MpPreference -AttackSurfaceReductionRules_Ids e6db77e5-3df2-4cf1-b95a-636979351e5b -AttackSurfaceReductionRules_Actions Enabled
|
Add-MpPreference -AttackSurfaceReductionRules_Ids e6db77e5-3df2-4cf1-b95a-636979351e5b -AttackSurfaceReductionRules_Actions Enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
tart-Job -Name "Protect-Privacy" -ScriptBlock {
|
Start-Job -Name "Protect-Privacy" -ScriptBlock {
|
||||||
|
|
||||||
Param([switch]$Debloat)
|
Param([switch]$Debloat)
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ Set-Location $HOME/.winconfig
|
|||||||
if ((Test-Path $HOME/.winconfig/logs) -eq $False){
|
if ((Test-Path $HOME/.winconfig/logs) -eq $False){
|
||||||
New-Item $HOME/.winconfig/logs/
|
New-Item $HOME/.winconfig/logs/
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
Remove-Item "$HOME/.winconfig/logs/*.log"
|
||||||
|
}
|
||||||
Start-Transcript -Path $HOME/.winconfig/logs/run.log | out-null
|
Start-Transcript -Path $HOME/.winconfig/logs/run.log | out-null
|
||||||
|
|
||||||
# Menü laden
|
# Menü laden
|
||||||
@@ -57,5 +60,5 @@ $WPFconfigure.Add_Click({
|
|||||||
Start-Process powershell.exe -Verb RunAs -ArgumentList "-command Start-Transcript ~/.winconfig/logs/winget-debloat.log -Append | out-null; . ./config.ps1 ; DebloatWindows | Out-Host" -WindowStyle Normal
|
Start-Process powershell.exe -Verb RunAs -ArgumentList "-command Start-Transcript ~/.winconfig/logs/winget-debloat.log -Append | out-null; . ./config.ps1 ; DebloatWindows | Out-Host" -WindowStyle Normal
|
||||||
})
|
})
|
||||||
|
|
||||||
$Form.ShowDialog() | out-null
|
$Form.ShowDialog() | Out-Null
|
||||||
Stop-Transcript
|
Stop-Transcript | Out-Null
|
||||||
|
|||||||
Reference in New Issue
Block a user