In Windows 10, I was able to use "Cascade Windows" with a simple .vbs script:
set objShell = CreateObject("shell.application")
call objShell.CascadeWindows()
The same is possible with PowerShell:
$ShellExp = New-Object -ComObject Shell.Application
$ShellExp.CascadeWindows()
However, in Windows 11, this is no longer possible. Nevertheless, the method is present in Windows 11. Issue the following PowerShell command:
New-Object -ComObject "Shell.Application" | gm | select Name, MemberType
And using e.g. AutoHotkey, I am able to "Cascade Windows" using the following script/command:
DllCall( "CascadeWindows", uInt,0, Int,4, Int,0, Int,0, Int,0 )
Is there a way to restore a functioning "Cascade Windows" action using VBScript or PowerShell?