-
Vangelis Koukis authored
Introduce support for Windows XP / Server 2003 Images. To do this: * Extend common.sh and 40InstallUnattend so they can also detect Windows XP / Server 2003 SYSPREP.INF answer files. * Extend 50AssignHostname so it can set the hostname inside SYSPREP.INF, based on a small handle-ini-file.py utility. * Remove the seemingly unnecessary addition of /LOGONPASSWORDCHG:NO, which is unsupported under XP / Server 2003. More on this below. * Warn the user about Windows XP / Server 2003 not supporting online NTFS resize, and the need to use OFFLINE_NTFSRESIZE instead. Regarding the use of /LOGONPASSWORDCHG:NO while using NET USER to change a user password: * This argument is unsupported under Windows XP / Server 2003, see http://blog.johnmuellerbooks.com/2011/04/12/working-with-net-user/ * Its default value is "NO" anyway, so it shouldn't make a difference whether it is explicitly specified in the command line or not: https://answers.microsoft.com/en-us/windows/forum/windows_vista-security/setting-up-passwords-for-new-users/1704349b-31a3-4340-ae9e-1473c5adb919 * Even if the security policies of a specific Image were set up in such way that users *were* required to change their passwords immediately upon their first logon, it is not snf-image's job to modify this behavior by specifying /LOGONPASSWORDCHG:NO. The password policy is Image-specific, and snf-image shouldn't mess with it.
3bcb05ab