It still doesn't appear to be working. I've tried messing around with the OUList and OUPath variable but it's not liking it. Here's what I have listed out:
#[Parameter(Mandatory)]
[string]$OUList = $OUPath -split ';' 'ou=desktops,ou=resources,ou=mkt,ou=ls,ou=amr,ou=ia,dc=corp,dc=org;ou=laptops,ou=resources,ou=mkt,ou=ls,ou=amr,ou=ia,dc=corp,dc=org',
[string]$LogFilePath = 'C:\Powershell\LocalAdmins\Log\desktop_log.log',
[string]$SmtpServer = 'server@domain.com',
[string]$EmailFrom = 'from@domain.com,
[string]$EmailSubject = 'New Local Administrator Detected',
[string]$EmailRecipient = 'email@domain.com'
When I try to run the script, it keeps saying "The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property."