ChrisTitusTech / winutil

Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
MIT License
24.12k stars 1.47k forks source link

Add this feature right now Very important for privacy and copliot removal code here #2286

Closed Nikoskampourakis closed 3 months ago

Nikoskampourakis commented 4 months ago

Hello winutil team add this tweak right now this tweak removes copliot and most of bing ai removal and privacy enchanted tweaks that i did heres the script (note: haven't tested it yet) Here it is:

PowerShell script to modify Microsoft Edge, Windows Explorer, and Group Policy settings

Function to disable CoPilot feature in Edge

function DisableEdgeCoPilot { $edgeRegistryPath = "HKCU:\Software\Microsoft\Edge"

if (Test-Path $edgeRegistryPath) {
    # Disable CoPilot feature
    New-ItemProperty -Path $edgeRegistryPath -Name "ShowCoPilot" -Value 0 -PropertyType "DWORD" -Force | Out-Null
    Write-Host "CoPilot feature disabled in Edge browser."
} else {
    Write-Host "Edge browser registry path not found. Please verify Edge installation."
}

}

Function to disable Bing AI and privacy enhancements

function DisableBingAIAndPrivacyEnhancements {

Placeholder function - Replace with actual registry modifications

Write-Host "Bing AI and privacy enhancements disabled."
# Example:
# Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" -Name "DisablePersonalizedAds" -Value 1 -Type DWord -Force | Out-Null
# Set-ItemProperty -Path "HKCU:\Software\Microsoft\Edge\SearchScopes" -Name "ShowRelevantContent" -Value 0 -Type DWord -Force | Out-Null

}

Function to disable search box suggestions in Windows Explorer

function DisableSearchBoxSuggestions { $explorerRegistryPath = "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer"

# Create Explorer registry path if it doesn't exist
if (!(Test-Path $explorerRegistryPath)) {
    New-Item -Path $explorerRegistryPath -Force | Out-Null
}

# Set registry key to disable search box suggestions
Set-ItemProperty -Path $explorerRegistryPath -Name "DisableSearchBoxSuggestions" -Value 1 -Type DWord -Force | Out-Null
Write-Host "Search box suggestions disabled in Windows Explorer."

}

Function to configure Group Policy to remove CoPilot from taskbar

function ConfigureGroupPolicyToRemoveCoPilot { $gpRegistryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"

# Create Explorer policies registry path if it doesn't exist
if (!(Test-Path $gpRegistryPath)) {
    New-Item -Path $gpRegistryPath -Force | Out-Null
}

# Set registry key to remove CoPilot from taskbar
Set-ItemProperty -Path $gpRegistryPath -Name "NoWindowsCopilotTaskbar" -Value 1 -Type DWord -Force | Out-Null
Write-Host "CoPilot removed from taskbar via Group Policy."

}

Main script execution

DisableEdgeCoPilot DisableBingAIAndPrivacyEnhancements DisableSearchBoxSuggestions ConfigureGroupPolicyToRemoveCoPilot

Write-Host "Edge browser, Bing AI, Windows Explorer, and Group Policy settings modified successfully."

github-actions[bot] commented 4 months ago

This issue was marked as stale because it has been inactive for 7 days

MyDrift-user commented 3 months ago

/close