Skip to content

Commit

Permalink
Update sos-optimize-windows.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
simeononsecurity authored Dec 21, 2024
1 parent ebe3af6 commit b3ba65c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion sos-optimize-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,17 @@ if ($removebloatware -eq $true) {
#Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCopilotButton" -Type DWord -Value 0

# Output a confirmation message
Write-Output "The Copilot button has been disabled and hidden from the taskbar."
#Write-Output "The Copilot button has been disabled and hidden from the taskbar."

# Uninstall the Copilot application
Get-AppxPackage *Windows.Copilot* | Remove-AppxPackage
Get-AppxPackage *Microsoft.Copilot* | Remove-AppxPackage

# Output a confirmation message
Write-Output "The Copilot application has been uninstalled."

DISM /Online /Disable-Feature /FeatureName:"Recall"
Disable-WindowsOptionalFeature -Online -FeatureName "Recall"

# Uninstall the Copilot application
Get-AppxPackage *Windows.Copilot* | Remove-AppxPackage
Expand Down

0 comments on commit b3ba65c

Please sign in to comment.