Set-CMDiscoveryMethod does not have a parameter to configure the discovery account
Additional context can be found:
This functionality is in Technical Preview 1901.
Nice ! Burning to switch to it
Can you tell me if it is à new parameter to existing cmdlet or a new one ?
Today we have the cmdlet Set-CMDiscoveryMethod to work on Discovery OU but no parameter or cmdlet let you add the DISCOVERY ACCOUNT you can use to attack those OU
So each time it is associated to Site System account and you need to edit it or use WMI classes