For non-encrypted fields (i.e. non-string), the field's value was never used. Instead, the (decrypted) value of the last encrypted field (i.e. string field) was used. Unsure what used to happen if the first field was non-encrypted, as I lack PowerShell experience and did not have time to test. Anyway, it works properly now.
Probably fixes https://github.com/jseerden/IntuneBackupAndRestore/issues/53
For non-encrypted fields (i.e. non-string), the field's value was never used. Instead, the (decrypted) value of the last encrypted field (i.e. string field) was used. Unsure what used to happen if the first field was non-encrypted, as I lack PowerShell experience and did not have time to test. Anyway, it works properly now.