' ============================================================
' CheckDisableSnapAssistStatus.vbs
'
' Checks whether "Disable Snap Assist Suggestions" is currently applied.
'
' Usage: cscript CheckDisableSnapAssistStatus.vbs
' ============================================================

Option Explicit

Dim objShell, currentValue
Set objShell = CreateObject("WScript.Shell")

On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\SnapAssist")

If Err.Number <> 0 Then
    WScript.Echo "'SnapAssist' is not set (using the Windows default)."
Else
    WScript.Echo "Current value of 'SnapAssist': " & currentValue
End If
On Error Goto 0