Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot Copy And Paste In File Explorer And Taskbar Search Box - Fixed #206

Open
KedarWolf opened this issue Jan 24, 2021 · 1 comment

Comments

@KedarWolf
Copy link

KedarWolf commented Jan 24, 2021

Describe the bug
After applying the 'Set-Additional.cmd' can no longer copy and paste into the File Explorer and taskbar Search Bar boxes.

The fix is below.

If anyone has an issue where they cannot copy/paste into the File Explorer and taskbar Search Icon search boxes after running 'Set-Additional.cmd', here is the fix.

From the 'Services.json' remove the below.

{
        "Name":  "WSearch",
        "Description":  "Windows Search",
        "ServiceName":  "WSearch",
        "Status":  4,
        "StartType":  2,
        "SetStatus":  "Disabled"
    },

And from the Set-Additional.ps1 remove this.

# Disable Clipboard history, its synchronization service and any Remote Desktop redirection.
        If ($Build -ge 17763)
        {
            If (!(Test-Path -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System")) { New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -ItemType Directory -Force | Out-Null }
            Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name AllowCrossDeviceClipboard -Value 0 -Force
            Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name AllowClipboardHistory -Value 0 -Force
            If (!(Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Terminal Server Client")) { New-Item -Path "HKLM:\SOFTWARE\Microsoft\Terminal Server Client" -ItemType Directory -Force | Out-Null }
            Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Terminal Server Client" -Name DisableClipboardRedirection -Value 1 -Force
            If (!(Test-Path -Path "HKCU:\Software\Microsoft\Clipboard")) { New-Item -Path "HKCU:\Software\Microsoft\Clipboard" -ItemType Directory -Force | Out-Null }
            Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name EnableClipboardHistory -Value 0 -Force
            Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\cbdhsvc" -Name Start -Value 4 -Force
        }

        # Uninstall Cortana.
        If ($Build -ge 19041) { Get-AppxPackage -Name *Microsoft.549981C3F5F10* | Remove-AppxPackage -AllUsers | Out-Null }
@CarlosMerc
Copy link

I think you can keep search service disabled as it is in Services.json. Not sure about that cortana one though, it depends on the version of win10 (ie LTSC makes no diff), but later on cortana was decoupled?

You only prolly need to change the clipboard sections in that registry grouping ie AllowClipboardHistory to 1, EnableClipboardHistory to 1, not sure about the cbdhsvc, but you can try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants