Get all e-mails in an OU


$emailAddresses = (Get-ADUser -Filter {mail -like "*"} -SearchBase "OU=YourOU,DC=domain,DC=com" -Properties mail).mail

# Increase the function capacity limit
$session = Get-PSHostProcessInfo | ForEach-Object { $_.ProcessId } | Get-Process | Select-Object MainModule, Id
$session | ForEach-Object { $pssession = Get-Process -Id $_.Id | Select-Object -ExpandProperty MainModule }
$pssession.Module.DefineUnscopedNamespthe ace("Function")::SetMaximumFunctionCount(8192)

test Exchange Administrator Tecism
Sorry! The Author has not filled his profile.
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments