Forum Discussion

ChevITGuy's avatar
ChevITGuy
Brass Contributor
Jan 20, 2021
Solved

Need to Change and Apply Ease of Access Aero-Snap settings with batch script without a restart

We need to change and APPLY the Aero-Snap setting from the Ease of Access control panel, without a restart or logoff/logon in a Windows 10 Enterprise x64 20H2 non-persistent VDI environment.  We know...
  • ChevITGuy's avatar
    ChevITGuy
    Feb 05, 2021

    ChevITGuy

       I was able to modify the aformentioned Powershell script using the Get-ItemProperty and the Write-Output cmdlets to set a value to 1 or 0 based from the HKCU\Control Panel\Desktop\WindowArrangementActive registry value.  This value is previously set by the user profile management software in our login process.  I then "copied" my derived 0 or 1 value to the iParameter input variable for the SPI_SETWINARRANGING operation.  This worked excellently as evidenced by many test logins and logouts using three regular non-privileged user ID's.  If the user set the Checkmark on the Ease of Access panel before logoff, the subsequent login session had it CHECKED and vice versa.  This solution appears to be one that could enable or disable programmatically the Aero Snap feature in Windows 10 after a change in the WindowArrangementActive registry value.  Our user profile management team continues to look for their own resolution to the issue.  I'll mark this as best answer so far.

     

    ChevITGuy        

Resources