auditLogMbxName = "SystemMailbox{8cc370d3-822a-4ab8-a926-bb94bd0641a9}"; $auditLogMbxLastName = "SystemMailbox 8cc370d3-822a-4ab8-a926-bb94bd0641a9"; ...

$auditLogMbxName = "SystemMailbox{8cc370d3-822a-4ab8-a926-bb94bd0641a9}";          $auditLogMbxLastName = "SystemMailbox 8cc370d3-822a-4ab8-a926-bb94bd0641a9";          Write-ExchangeSetupLog -Info ("Retrieving users with LastName=$auditLogMbxLastName.");          $auditLogUser = @(Get-User -Filter {LastName -eq $auditLogMbxLastName} -IgnoreDefaultScope -ResultSize 1);          if ($auditLogUser.Length -eq 0)          {            Write-ExchangeSetupLog -Info ("Retrieving audit log users with LastName=$auditLogMbxLastName.");            $auditLogUser = @(Get-User -AuditLog -Filter {LastName -eq $auditLogMbxLastName} -IgnoreDefaultScope -ResultSize 1);          }          if ($auditLogUser.Length -eq 0)          {            Write-ExchangeSetupLog -Info ("Installing user account with Name=$auditLogMbxName and LastName=$auditLogMbxLastName.");            Install-UserAccount -Name $auditLogMbxName -LastName $auditLogMbxLastName;          }          else          {            Write-ExchangeSetupLog -Info ("Audit log user $auditLogMbxName already exists.");          }
English
English (United States)
Español (España)
Spanish (Spain)