The following example updates an existing SMTP task output target.



Code Sample

# Updates the SMTP task output target with the specified identifier.

$target = $administration.GET_TaskOutputTarget("3f718566-19e9-45a9-8a0a-0f1a9f9c2c58");

$target.DisplayName = "Updated SMTP Task Output Target";

$target.Addresses.ToAddresses.Clear();

$target.Addresses.ToAddresses += "administrator@demonstration.int";

$administration.SET_TaskOutputSmtpTarget($target);