I'm currently running a SQL SPROC from within powershell, getting a value, and attempting to assign that value to an AD attribute. Everything goes fine getting the value, but when I call this line:
>Set-AdmUser -Identity %username% -attribute "$value"
I'm informed that the Set-AdmUser cmdlet is not recognized. Which is bizarre, because I'm running this from a PS command in Adaxes.
When I launch PS on the server and load the Adaxes module, that command runs just fine. So I'm not sure what I'm doing wrong here, and I'd like to avoid calling PS from within PS to load the module and run the command.