I'm trying to fecth employeeID from diffent forest and getting null, fine with all other attibutes and same script is working for local domain without any issue. Please let me know how to get the same.
Get-ADUser user -Server dc.local.com:3268 -properties * | Select DisplayName, employeeID