I'm looking at this onliner Set-AdmUser -Identity $DN -Replace @{AADPHoto = $photoBytes} -AdaxesService localhost -Server. I get an illegal operation error.
Wondering what I am getting wrong maybe the attribute?
Trying to set up automation to set the photo in AD and Azure at the same time to avoid waiting for synchronization.