⚡ PowerShell 5.1+

Disable Snap Assist Suggestions

Stops Windows from suggesting other windows to snap next to one you just moved.

By WindowsScripting.com · 729 B
Set-DisableSnapAssist.ps1
<#
.SYNOPSIS
    Disable Snap Assist Suggestions.

.DESCRIPTION
    Stops Windows from suggesting other windows to snap next to one you just moved.

    Sets HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced \ SnapAssist to 0.

.EXAMPLE
    .\Set-DisableSnapAssist.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'SnapAssist' -Value 0 -PropertyType DWord -Force | Out-Null

Write-Host "Disable Snap Assist Suggestions applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green