Pwdlastset attribute not updating
When this method runs, it searches the local Active Directory forest, each trusted forest, and each additional forest that you configure in the Active Directory Forests node of the Configuration Manager console.
Use Active Directory Forest Discovery to: To configure publishing for Active Directory forests for each site in your hierarchy, connect your Configuration Manager console to the top-level site of your hierarchy.
A secondary site cannot publish data to an untrusted forest.System Center Configuration Manager discovery methods can find different devices on your network or devices and users from Active Directory.To efficiently use a discovery method, you should understand its available configurations and limitations.The default is the current user unless the cmdlet is run from an AD Power Shell provider drive in which case the account associated with the drive is the default."User64" or "Domain01\User64" or a PSCredential object.
-Add @ -Remove @ When you use the -Add, -Remove, -Replace and -Clear parameters together, the operations will be performed in the order: Remove, then Add, then Replace, then clear.