mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
59e247c012
Applies a workaround for an issue where the `Microsoft.PowerShell.LocalAccounts` module fails to load in PowerShell 7 on Windows 11 23H2 and earlier. The script now checks the OS build number and imports the module using the Windows PowerShell compatibility layer on affected systems. Fixes: https://github.com/PowerShell/PowerShell/issues/21645