How to Cleanup TPM information from AD for Windows 8 computers

For Windows 7 machines, TPM Owner Password is stored in msTPM-OwnerInformation which is attribute of Computer object in AD. So if you delete the computer object, TPM Owner Password is also deleted. For Windows 8, TPM Owner Information is not stored directly under Computer Object. It is stored in a separate object which is linked…