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?
![image.png](?qa=blob&qa_blobid=12462682284523684066)
Trying to set up automation to set the photo in AD and Azure at the same time to avoid waiting for synchronization.