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 9d12ac7 commit 54e8624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sos-optimize-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1231,10 +1231,10 @@ if ($removebloatware -eq $true) {

# Hide the Copilot button and disable its functionality for the current user
#New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Force | Out-Null
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCopilotButton" -Type DWord -Value 0
#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
Expand Down

0 comments on commit 54e8624

Please sign in to comment.