Following the instructions here Manage recipients in Exchange Server 2019 Hybrid environments | Microsoft Learn to turn of my client's last Exchange 2019 server. On step 3, under Permanently shutting down your last Exchange Server, when I run Remove-FederationTrust "Microsoft Federation Gateway" I get the error:
Can't remove federation trust "Microsoft Federation Gateway" It's in use by the following organization(s):
CN=Federation,CN=XXXXX,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=XXXXXXXXX,DC=local
+ CategoryInfo : InvalidOperation: (Microsoft Federation Gateway:ADObjectId) [Remove-FederationTrust], Or
gsStillUsingThisTrustException
Earlier steps completed successfully. What do I need to do to complete the last few steps?