If your installing Last11 based on 24H2 you will find WMIC is depreciated, but can be turned back on using command prompt or in a .cmd file:
Then you can just do the usual to disable passwords expiring every 30 - 60 days, or in my case, asked to set one straight away and hangs the pre reboot after a update causing me to hold in the power button to fix it;
I hope this helps people who have been getting VERY annoyed with Windows 11 installs, I have decided to install Win 11 on all TPM 2.0 hardware as I am over fighting it, I'll still not being using Windows 11 or Office 365 myself, but I wont stop anyone else doing so.
-EDIT-
I am yet to test if it sticks within a sysprep, but my guess is it should.
Code:
dism /online /add-capability /capabilityname:WMIC~~~~
Then you can just do the usual to disable passwords expiring every 30 - 60 days, or in my case, asked to set one straight away and hangs the pre reboot after a update causing me to hold in the power button to fix it;
Code:
wmic path Win32_UserAccount set PasswordExpires=False
wmic UserAccount set PasswordExpires=False
I hope this helps people who have been getting VERY annoyed with Windows 11 installs, I have decided to install Win 11 on all TPM 2.0 hardware as I am over fighting it, I'll still not being using Windows 11 or Office 365 myself, but I wont stop anyone else doing so.
-EDIT-
I am yet to test if it sticks within a sysprep, but my guess is it should.