Skip to content

Commit

Permalink
Update resume.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
caglaryalcin committed Aug 31, 2024
1 parent 3e47a2e commit 0067ca9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions resume.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1272,34 +1272,34 @@ Function UnusedApps {

UninstallEdge

Function Removelnks {
Write-Host `n"Removing Desktop shortcuts..." -NoNewline
Function RemoveRecall {
Write-Host "Removing Windows 11 Recall..." -NoNewline
try {
Get-ChildItem C:\users\Public\Desktop\*.lnk | ForEach-Object { Remove-Item $_ -ErrorAction SilentlyContinue } *>$null
Get-ChildItem $env:USERPROFILE\Desktop\*.lnk | ForEach-Object { Remove-Item $_ -ErrorAction SilentlyContinue } *>$null
Get-ChildItem -Path "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp" -Force | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
Silent
DISM /Online /Disable-Feature /FeatureName:"Recall"*>$null
Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
}
catch {
Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black
}
}

Removelnks
RemoveRecall

Function RemoveRecall {
Write-Host `n"Removing Windows 11 Recall..." -NoNewline
Function Removelnks {
Write-Host "Removing Desktop shortcuts..." -NoNewline
try {
Silent
DISM /Online /Disable-Feature /FeatureName:"Recall"*>$null
Get-ChildItem C:\users\Public\Desktop\*.lnk | ForEach-Object { Remove-Item $_ -ErrorAction SilentlyContinue } *>$null
Get-ChildItem $env:USERPROFILE\Desktop\*.lnk | ForEach-Object { Remove-Item $_ -ErrorAction SilentlyContinue } *>$null
Get-ChildItem -Path "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp" -Force | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
}
catch {
Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black
}
}

RemoveRecall
Removelnks

}
elseif ($response -eq 'n' -or $response -eq 'N') {
Expand Down

0 comments on commit 0067ca9

Please sign in to comment.