Powershell - Initiator

Hi Team. 

I have a workflow that sends an email and moves an account to the correct OU when its created. What i am trying to do is add some info in to the Info or Notes AD attribute. Something like Account created by ABC and then the date. 

I have the bare bones of something but unsure how to pass the SamAccountName of the person who created the account. 

function ServiceAccount($Request
{

set-QADUser -Identity $Request.GUID -ObjectAttributes @{ 'Info' = Account created by  }
}

Parents Reply Children