Send Welcome Email After account exists in AD with initial password

We have FIM setup to create new users based on a workflow In the workflow I add them to the outbound sync rule, then send a welcome email, in this workflow there are several steps, one is randomly generating an initial password, what I'm trying to figure
out is how to send the welcome email after the delta sync runs that verifies the user was created in AD.
I thought about using the Poor Man's version of a connector detection mechanism however how to get the inital password from the workflow above into the workflow that would run after the connector detection mechanism detected the object coming in from AD?
Thanks;
Jon

The other option could be to set a random password on the AD account when it is created but then have another workflow that runs in the Portal when the objectSid is set for the first time. This workflow could reset the user's password in AD to another random
value and send the email notification with that newly generated password - this way the password is known and but it isn't stored anywhere.
Andrew.
Andrew & Borys thank you both for the replies.
Andrew I like that option more I'm guessing a a set transition MPR from null/blank (not sure what the initial value is in the portal) to not null / not blank.
One issue is I don't think ObjectSID is available to use as a filter in the portal.
I'll check this using a custom attribute.

Similar Messages

  • Everytime I send an email I have to sign in with my password.

    I figure I must have something checked in my setup that makes me sign in my password before sending an email. Or is this something that my comcast carrier is requiring me to do.

    For the past two weeks Thunderbird is acting weird. It keeps saying to enter password, then it says log in failed. Then there is a delay in receiving messages. Checked my settings, everything is ok. What is causing this.

  • Issue sending bulk email after Exchange 2010 to 2013 migration

    Hi!
    I have an issue with some reporting software sending bulk emails after our Exchange 2013 migration. 
    I can see the connections in the firewall and I can see the first connections under the protocol logs in the Exchange servers. What happens is that after ~10 emails, within the same amount of seconds from what I can tell, the mail flow just stops to the
    Exchange server. I cant seem to find an error message anywhere within the Exchange logs and I've tried updating the receive connector with higher timeouts / Connection limits but the users still cant send all the invoices etc right away. 
    We have multiple applications / receive connectors with this issue and the users did not report any issues with Exchange 2010 so I am assuming that this issue did not exist there. 
    We're running two multi-role (CAS/MB) Exchange 2013 servers in a DAG. Exchange 2010 is not fully decommissioned yet but all links and users are moved to 2013.
    Any help is much appreciated!

    Hi ,
    To avoid the issues when relaying the emails from application server through exchange then we need concentrate on the below mentioned parameters on the receive connectors in exchange 2013 cas servers and also we need to set the parameter value as per your
    environment requirement.
    Please check the below mentioned values on the dedicated receive connectors in exchange 2013 cas server to relay emails from the application server
    Parameters :
    ConnectionInactivityTimeout
    ConnectionTimeout
    MaxInboundConnection
    MaxInboundConnectionPercentagePerSource
    MaxInboundConnectionPerSource
    MaxRecipientsPerMessage
    MessageRateLimit
    Note : In case if none of the above changes help you then the final option would be to enable the protocol logging on the receive connector utilized by the application server to relay emails via exchange server and with the help of the logs we can can came
    to know that why the connections from the application server to exchange server is disconnecting after some emails has send.
    Thanks & Regards S.Nithyanandham
    Here are the relevant values for the receive connector, doublechecked and it's the same on both DAG members;
    ConnectionTimeout                       : 00:20:00
    ConnectionInactivityTimeout             : 00:05:00
    MaxInboundConnection                    : 5000
    MaxInboundConnectionPerSource           : Unlimited
    MaxInboundConnectionPercentagePerSource : 100
    MaxRecipientsPerMessage                 : 200
    MessageRateLimit                    
    : Unlimited
    Adding logs for one big connection spike from the customer. About 50 inbound connections to the Exchange servers . 
    SMTP Receive;
    2015-01-26T18:02:46.991Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,0,DAG member 01:587,Customer IP:60262,+,,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,1,DAG member 01:587,Customer IP:60262,*,SMTPSubmit SMTPAcceptAnySender SMTPAcceptAuthoritativeDomainSender AcceptRoutingHeaders,Set Session Permissions
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,2,DAG member 01:587,Customer IP:60262,>,"220 DAG member 01 Microsoft ESMTP MAIL Service ready at Mon, 26 Jan 2015 19:02:46 +0100",
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,3,DAG member 01:587,Customer IP:60262,<,EHLO customerdomain.com,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,4,DAG member 01:587,Customer IP:60262,>,250-DAG member 01 Hello [Customer IP],
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,5,DAG member 01:587,Customer IP:60262,>,250-SIZE 36700160,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,6,DAG member 01:587,Customer IP:60262,>,250-PIPELINING,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,7,DAG member 01:587,Customer IP:60262,>,250-DSN,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,8,DAG member 01:587,Customer IP:60262,>,250-ENHANCEDSTATUSCODES,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,9,DAG member 01:587,Customer IP:60262,>,250-STARTTLS,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,10,DAG member 01:587,Customer IP:60262,>,250-AUTH LOGIN,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,11,DAG member 01:587,Customer IP:60262,>,250-8BITMIME,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,12,DAG member 01:587,Customer IP:60262,>,250-BINARYMIME,
    2015-01-26T18:02:47.006Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,13,DAG member 01:587,Customer IP:60262,>,250 CHUNKING,
    2015-01-26T18:02:47.022Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,14,DAG member 01:587,Customer IP:60262,<,STARTTLS,
    2015-01-26T18:02:47.022Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,15,DAG member 01:587,Customer IP:60262,>,220 2.0.0 SMTP server ready,
    2015-01-26T18:02:47.022Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,16,DAG member 01:587,Customer IP:60262,*,,Sending certificate
    2015-01-26T18:02:47.022Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,17,DAG member 01:587,Customer IP:60262,*,CN=server,Certificate subject
    2015-01-26T18:02:47.022Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,18,DAG member 01:587,Customer IP:60262,*,CN=server,Certificate issuer name
    2015-01-26T18:02:47.022Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,21,DAG member 01:587,Customer IP:60262,*,server;DAG member 01,Certificate alternate names
    2015-01-26T18:02:47.053Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,22,DAG member 01:587,Customer IP:60262,*,,TLS negotiation succeeded
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,23,DAG member 01:587,Customer IP:60262,<,EHLO customerdomain.com,
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,24,DAG member 01:587,Customer IP:60262,*,,Client certificate chain validation status: 'EmptyCertificate'
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,25,DAG member 01:587,Customer IP:60262,*,,TlsDomainCapabilities='None'; Status='NoRemoteCertificate'
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,26,DAG member 01:587,Customer IP:60262,>,250-DAG member 01 Hello [Customer IP],
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,27,DAG member 01:587,Customer IP:60262,>,250-SIZE 36700160,
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,28,DAG member 01:587,Customer IP:60262,>,250-PIPELINING,
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,29,DAG member 01:587,Customer IP:60262,>,250-DSN,
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,30,DAG member 01:587,Customer IP:60262,>,250-ENHANCEDSTATUSCODES,
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,31,DAG member 01:587,Customer IP:60262,>,250-AUTH LOGIN,
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,32,DAG member 01:587,Customer IP:60262,>,250-8BITMIME,
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,33,DAG member 01:587,Customer IP:60262,>,250-BINARYMIME,
    2015-01-26T18:02:47.069Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,34,DAG member 01:587,Customer IP:60262,>,250 CHUNKING,
    2015-01-26T18:02:47.085Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,35,DAG member 01:587,Customer IP:60262,<,AUTH LOGIN,
    2015-01-26T18:02:47.085Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,36,DAG member 01:587,Customer IP:60262,>,334 <authentication response>,
    2015-01-26T18:02:47.100Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,37,DAG member 01:587,Customer IP:60262,>,334 <authentication response>,
    2015-01-26T18:02:47.131Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,38,DAG member 01:587,Customer IP:60262,*,SMTPSubmit SMTPAcceptAnyRecCustomer IPient BypassAntiSpam AcceptRoutingHeaders,Set Session Permissions
    2015-01-26T18:02:47.147Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,39,DAG member 01:587,Customer IP:60262,*,[email protected],authenticated
    2015-01-26T18:02:47.272Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,40,DAG member 01:587,Customer IP:60262,*,,Proxy session was successfully set up. Session [email protected] will now be proxied
    2015-01-26T18:02:47.272Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,41,DAG member 01:587,Customer IP:60262,>,235 2.7.0 Authentication successful,
    2015-01-26T18:02:47.819Z,RECEIVE CONNECTOR,08D2051B7AE3DA8E,42,DAG member 01:587,Customer IP:60262,-,,Local
    SMTP Send
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,0,,DAG member 02:465,*,,attempting to connect. Client proxy session for [email protected]
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,1,DAG member 01:57446,DAG member 02:465,+,,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,2,DAG member 01:57446,DAG member 02:465,<,"220 DAG member 02 Microsoft ESMTP MAIL Service ready at Mon, 26 Jan 2015 19:02:46 +0100",
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,3,DAG member 01:57446,DAG member 02:465,>,EHLO DAG member 01,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,4,DAG member 01:57446,DAG member 02:465,<,250-DAG member 02 Hello [DAG member 01],
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,5,DAG member 01:57446,DAG member 02:465,<,250-SIZE 36700160,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,6,DAG member 01:57446,DAG member 02:465,<,250-PIPELINING,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,7,DAG member 01:57446,DAG member 02:465,<,250-DSN,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,8,DAG member 01:57446,DAG member 02:465,<,250-ENHANCEDSTATUSCODES,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,9,DAG member 01:57446,DAG member 02:465,<,250-STARTTLS,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,10,DAG member 01:57446,DAG member 02:465,<,250-X-ANONYMOUSTLS,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,11,DAG member 01:57446,DAG member 02:465,<,250-AUTH GSSAPI NTLM,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,12,DAG member 01:57446,DAG member 02:465,<,250-X-EXPS GSSAPI NTLM,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,13,DAG member 01:57446,DAG member 02:465,<,250-8BITMIME,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,14,DAG member 01:57446,DAG member 02:465,<,250-BINARYMIME,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,15,DAG member 01:57446,DAG member 02:465,<,250-CHUNKING,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,16,DAG member 01:57446,DAG member 02:465,<,250-XEXCH50,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,17,DAG member 01:57446,DAG member 02:465,<,250-XRDST,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,18,DAG member 01:57446,DAG member 02:465,<,250 XSHADOWREQUEST,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,19,DAG member 01:57446,DAG member 02:465,>,X-ANONYMOUSTLS,
    2015-01-26T18:02:47.163Z,Client Proxy Send Connector,08D2051B7AE3DA8F,20,DAG member 01:57446,DAG member 02:465,<,220 2.0.0 SMTP server ready,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,21,DAG member 01:57446,DAG member 02:465,*,,Received certificate
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,23,DAG member 01:57446,DAG member 02:465,*,,Proxy target certificate
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,24,DAG member 01:57446,DAG member 02:465,*,"CN=*.email.com, OU=IT, O=X, L=X, S=X, C=SE",Certificate subject
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,25,DAG member 01:57446,DAG member 02:465,*,"CN=DigiCert High Assurance CA-3, OU=www.digicert.com, O=DigiCert Inc, C=US",Certificate issuer name
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,28,DAG member 01:57446,DAG member 02:465,*,*.email.com;email.com,Certificate alternate names
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,29,DAG member 01:57446,DAG member 02:465,>,EHLO DAG member 01,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,30,DAG member 01:57446,DAG member 02:465,<,250-DAG member 02 Hello [DAG member 01],
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,31,DAG member 01:57446,DAG member 02:465,<,250-SIZE 36700160,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,32,DAG member 01:57446,DAG member 02:465,<,250-PIPELINING,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,33,DAG member 01:57446,DAG member 02:465,<,250-DSN,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,34,DAG member 01:57446,DAG member 02:465,<,250-ENHANCEDSTATUSCODES,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,35,DAG member 01:57446,DAG member 02:465,<,250-AUTH GSSAPI NTLM LOGIN,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,36,DAG member 01:57446,DAG member 02:465,<,250-X-EXPS EXCHANGEAUTH GSSAPI NTLM,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,37,DAG member 01:57446,DAG member 02:465,<,250-X-EXCHANGEAUTH SHA256,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,38,DAG member 01:57446,DAG member 02:465,<,250-8BITMIME,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,39,DAG member 01:57446,DAG member 02:465,<,250-BINARYMIME,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,40,DAG member 01:57446,DAG member 02:465,<,250-CHUNKING,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,41,DAG member 01:57446,DAG member 02:465,<,250-XEXCH50,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,42,DAG member 01:57446,DAG member 02:465,<,250-XRDST,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,43,DAG member 01:57446,DAG member 02:465,<,250-XSHADOWREQUEST,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,44,DAG member 01:57446,DAG member 02:465,<,250-XPROXY,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,45,DAG member 01:57446,DAG member 02:465,<,250-XPROXYFROM,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,46,DAG member 01:57446,DAG member 02:465,<,250-X-MESSAGECONTEXT ADRC-2.1.0.0 EPROP-1.2.0.0,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,47,DAG member 01:57446,DAG member 02:465,<,250 XSYSPROBE,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,48,DAG member 01:57446,DAG member 02:465,>,X-EXPS EXCHANGEAUTH SHA256 ,
    2015-01-26T18:02:47.257Z,Client Proxy Send Connector,08D2051B7AE3DA8F,49,DAG member 01:57446,DAG member 02:465,>,<Binary Data>,
    2015-01-26T18:02:47.272Z,Client Proxy Send Connector,08D2051B7AE3DA8F,50,DAG member 01:57446,DAG member 02:465,<,235 <authentication information>,
    2015-01-26T18:02:47.272Z,Client Proxy Send Connector,08D2051B7AE3DA8F,51,DAG member 01:57446,DAG member 02:465,>,XPROXY SID=08D2051B7AE3DA8E IP=Customer IP PORT=60262 DOMAIN=customerdomain.com CAPABILITIES=0 
    2015-01-26T18:02:47.272Z,Client Proxy Send Connector,08D2051B7AE3DA8F,52,DAG member 01:57446,DAG member 02:465,<,250 XProxy accepted and authenticated,
    2015-01-26T18:02:47.272Z,Client Proxy Send Connector,08D2051B7AE3DA8F,53,DAG member 01:57446,DAG member 02:465,*,,Proxy session successfully set up for [email protected]. Inbound session will now be blindly proxied
    2015-01-26T18:02:47.819Z,Client Proxy Send Connector,08D2051B7AE3DA8F,54,DAG member 01:57446,DAG member 02:465,-,,Remote
    Nothing after these logs indicating any type of issue with the receive connector. Tried to make the logs as anonymous as possible. Hope they still make sense.
    Note; Database was active on DAG member 02 but all incoming traffic on port 587 was directed to DAG member 01.

  • Send Welcome Email to New User using the Scripting Agent

    Hi
    I require some assistance please.  I have found a number of scripts online to send a Welcome Email to new users whereby they make use of the ScriptingAgent.xml file.
    I like the way the scripts have been configured and have mashed up one or two scripts together for my desired result however when testing in my lab (Exchange 2013) I have found tow problems.
    The problems are:
    1. When creating a new user and mailbox (New-Mailbox) via the ECP the script throws out an error which I will post later in this post. The mailbox is created fine but it does not send out a welcome email.  When a user is created in ADUC and then a mailbox
    is created (Enable-Mailbox) the welcome email is sent out correctly.
    2. In the script i have a section to check for NewUser00 in the HTML file and replace that with the Users Name and Surname, however this does not work correctly, I just come up blank:
    The Script:
    <?xml version="1.0" encoding="utf-8" ?>
    <Configuration version="1.0">
    <Feature Name="WelcomeEmail" Cmdlets="New-Mailbox,Enable-Mailbox">
    <ApiCall Name="OnComplete">
    if($succeeded) {
    # Waiting for synchronization after mailbox has been created.
    Set-ADServerSettings -ViewEntireForest $true
    Start-Sleep -s 10
    # New-Mailbox triggered. Taking SamAccountName parameter.
    if ($provisioningHandler.UserSpecifiedParameters.Contains("SamAccountName") -eq $true) {
    $UsrSamAccountName = $provisioningHandler.UserSpecifiedParameters["SamAccountName"]
    $USRdfirst = $provisioningHandler.UserSpecifiedParameters["FirstName"]
    $USRdlast = $provisioningHandler.UserSpecifiedParameters["LastName"]
    $UsrAlias = (Get-Mailbox -Filter {SamAccountName -eq $UsrSamAccountName}).Alias.ToString()
    $USRdname = $USRdfirst + " " + $USRdlast
    # Enable-Mailbox triggered. Taking Identity parameter, this is the only one avalaible in this case.
    if ($provisioningHandler.UserSpecifiedParameters.Contains("Identity") -eq $true) {
    $UsrIdentity = $provisioningHandler.UserSpecifiedParameters["Identity"].ToString()
    $USRdfirst=$provisioningHandler.UserSpecifiedParameters["FirstName"]
    $USRdlast=$provisioningHandler.UserSpecifiedParameters["LastName"]
    $UsrAlias = (Get-Mailbox -Identity $UsrIdentity).Alias.ToString()
    $USRdname= $USRdfirst + " " + $USRdlast
    # Defining variables.
    $UsrAddr = (Get-Mailbox -Filter {Alias -eq $UsrAlias}).PrimarySmtpAddress.ToString()
    $UsrOU = (Get-Mailbox -Filter {Alias -eq $UsrAlias}).OrganizationalUnit
    # Sending email notification to the user in specific OU.
    if ($UsrOU -match "Contoso.com") {
    # HR #
    $fromHR="[email protected]"
    $SubjectHR="'Welcome to Contoso'"
    $BodyHR = [string] (get-content ("c:\welcome\WelcomeMSG.htm"))
    $BodyHR = $BodyHR -replace "NewUser00",$USRdname
    $fileHR = "c:\welcome\WelcomeMSG.htm"
    $smtp="192.168.x.x"
    Send-MailMessage -From $fromHR -To $UsrAddr -Subject $SubjectHR -Body $BodyHR -BodyAsHtml -Encoding ([System.Text.Encoding]::UTF8) -SmtpServer $Smtp
    # Clearing variables. Each one in its own line in order to prevent error messages from being shown on EMC.
    if ($UsrAlias) { Remove-Variable UsrAlias }
    if ($UsrAddr) { Remove-Variable UsrAddr }
    if ($UsrOU) { Remove-Variable UsrOU }
    if ($UsrMsg) { Remove-Variable UsrMsg }
    if ($UsrIdentity) { Remove-Variable UsrIdentity }
    if ($UsrSamAccountName) { Remove-Variable UsrSamAccountName }
    </ApiCall>
    </Feature>
    </Configuration>
    The Error for issue 1:
    The cmdlet extension agent with the index 5 has thrown an exception in OnComplete().
    The exception is: Microsoft.Exchange.Provisioning.ProvisioningException: ScriptingAgent:
    Exception thrown while invoking scriptlet for OnComplete API: You cannot call a method on a
    null-valued expression.. ---> System.Management.Automation.RuntimeException:
    You cannot call a method on a null-valued expression. at CallSite.Target(Closure , CallSite , Object ) at
    System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) at
    System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame frame) at
    System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    --- End of inner exception stack trace --- at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentHandler.OnComplete(Boolean succeeded, Exception e)
    at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnCompleteImpl(Task task, Boolean succeeded, Exception exception)
    Any assistance in resolving these two issues will be really appreciated

    Ok I am gonna to answer my own question.
    I have persevered through the day and have resolved my two issues.  I hope this assist others within the community.
    Script:
    <?xml version="1.0" encoding="utf-8" ?>
    <Configuration version="1.0">
    <Feature Name="WelcomeEmail" Cmdlets="New-Mailbox,Enable-Mailbox">
    <ApiCall Name="OnComplete">
    if($succeeded) {
    # Waiting for synchronization after mailbox has been created.
    Start-Sleep -s 30
    Set-ADServerSettings -ViewEntireForest $true
    # New-Mailbox triggered. Taking SamAccountName parameter.
    if ($provisioningHandler.UserSpecifiedParameters.Contains("Name") -eq $true) {
    $UsrSamAccountName = $provisioningHandler.UserSpecifiedParameters["Name"]
    $Usrname = (Get-Mailbox -identity $UsrSamAccountName | Select Name | foreach { $_.Name})
    $UsrString = $Usrname | Out-String
    $UsrAlias = (Get-Mailbox -Filter {Name -eq $UsrSamAccountName}).Alias.ToString()
    # Enable-Mailbox triggered. Taking Identity parameter, this is the only one avalaible in this case.
    if ($provisioningHandler.UserSpecifiedParameters.Contains("Identity") -eq $true) {
    $UsrIdentity = $provisioningHandler.UserSpecifiedParameters["Identity"].ToString()
    $Usrname = (Get-Mailbox -identity $UsrIdentity | Select Name | foreach { $_.Name})
    $UsrString = $Usrname | Out-String
    $UsrAlias = (Get-Mailbox -Identity $UsrIdentity).Alias.ToString()
    # Defining variables.
    $UsrAddr = (Get-Mailbox -Filter {Alias -eq $UsrAlias}).PrimarySmtpAddress.ToString()
    $UsrOU = (Get-Mailbox -Filter {Alias -eq $UsrAlias}).OrganizationalUnit
    # Sending email notification to the user in specific OU.
    if ($UsrOU -match "contoso.com") {
    # HR #
    $fromHR="[email protected]"
    $SubjectHR="'Welcome to CONTOSO'"
    $BodyHR = [string] (get-content ("c:\welcome\WelcomeMSG.htm"))
    $BodyHR = $BodyHR -replace "NewUser00",$UsrString
    $fileHR = "c:\welcome\WelcomeMSG.htm"
    $smtp="x.x.x.x"
    Send-MailMessage -From $fromHR -To $UsrAddr -Subject $SubjectHR -Body $BodyHR -BodyAsHtml -Encoding ([System.Text.Encoding]::UTF8) -SmtpServer $Smtp
    # Clearing variables. Each one in its own line in order to prevent error messages from being shown on EMC.
    if ($UsrAlias) { Remove-Variable UsrAlias }
    if ($UsrAddr) { Remove-Variable UsrAddr }
    if ($UsrOU) { Remove-Variable UsrOU }
    if ($UsrMsg) { Remove-Variable UsrMsg }
    if ($UsrIdentity) { Remove-Variable UsrIdentity }
    if ($UsrSamAccountName) { Remove-Variable UsrSamAccountName }
    </ApiCall>
    </Feature>
    </Configuration>

  • Why apple doesn't send anymore emails after purchases?

    Hello everyone.
    I would like to know why apple has stopped sending me an email after my purchases to see how much I have spent, no matter if they were free apps or paid ones?
    And why the don't send me an email always to verify if the app was adquire by me or anyone else did the purchase?
    Thanks

    I would like to know why apple has stopped sending me an email after my purchases to see how much I have spent, no matter if they were free apps or paid ones?
    Give at least 24 to 48 hours before you see an email verification of purchases.
    And why the don't send me an email always to verify if the app was adquire by me or anyone else did the purchase?
    It's not Apple's policy to do so. It's up to you to check your Purchase History on your iTunes account. If you see any purchases you did not make follow the instructions for reporting here.

  • Sending an email after creation of new role

    Whenever new role is created in Transaction PFCG I need to email to all the users.
    There is no User-Exit in PFCG and we can't create any new Program for this.
    So how it will be done?
    If anyone worked on it please reply to this as soon as possible.

    hi Zahid Khan,
    as said i tried the same.
    i have created a button "send" action :submit.
    and also have created a process"send mail" with the folloing code
    DECLARE
    l_body CLOB;
    BEGIN
    l_body := 'Thank you for your interest in the APEX_MAIL package.'||utl_tcp.crlf||utl_tcp.crlf;
    l_body := l_body ||' Sincerely,'||utl_tcp.crlf;
    l_body := l_body ||' The APEX Dev Team'||utl_tcp.crlf;
    apex_mail.send(
    p_to => '[email protected]',
    p_from => '[email protected]',
    p_body => l_body,
    p_subj => 'APEX_MAIL Package - Plain Text message');
    APEX_MAIL.push_queue;
    END;
    and , Process Success Message as "done" and When Button Pressed (Process After Submit When this Button is Pressed): "SEND" WITH Process Point : "ON SUBMIT AFTER COMPUTATIONS AND VALIDATION"
    The process is running.., getting the """success message""" but unable to""" get the mail""".(tried different combinations of mail ids)
    any help !!!

  • Need to send an email (after the FTP adapter does the transfer)

    I have a simple ESB project. It uses FTP adapter to pick a file and encrypt it (by using a webservice) and then transfers that
    file to a different server. As mentioned FTP (SFTP) adapter is used to do this.
    After the file is transfered ( by using the PUT mode of the FTP adapter) , i
    need to send an email to a given address telling about the succes of the file
    transfer. But the problem is I can not link or attach a router to FTP adapter
    in PUT Mode. A FTP adapter in Get mode comes with a Router but a FTP adapter
    with PUT mode does not come with a router. How can I attach a router (or a web
    service to a FTP adapter which is in PUT mode)
    Prakash

    I'm fairly certain you'll have to use BPEL to accomplish this. I'd put the FTP Adapter inside a BPEL process then you can drop the email activity in after the ftp operation.

  • Can not send new emails after upgrading to firefox 13

    can not send new emails thru att.net (which is yahoo) since upgrading to firefox 13. Says "loading" and nothing happens. Can send new emails thru gmail

    Hi,
    Not sure about ATT but plain yahoo.com seems to be okay. Can you also please check this in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile]. If the new profile is okay, you can then [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] on the old (previous) profile via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.

  • I've just lost access to my MobileMe emails and account when trying to change my password - I don't want to lose everything on my account . Help

    I've tried to access my mobileme emails on icloud rather than the laptop, but password wasn't recognised, since changing it, I've lost all me emails from my laptop and can't recover my mobilie me account details.
    I don't want to set up a different email address via icloud.
    Help!
    Any ideas?
    I also cannot change settings on my email account..... (incoming server), so have suddenly lost all me email capabilty....

    Presumably you didn;t use it very often.
    June 2011:
    iWeb publishing, MobileMe Gallery, and iDisk will all disappear as the company sunsets its current online service in favor of iCloud.
    Other MobileMe services—including syncing of Mac Dashboard widgets, keychains, Dock items, and System Preferences—will not be part of iCloud, Apple says. Those syncing services will stop working as soon you migrate from MobileMe to iCloud. In addition, Apple says that while MobileMe members can no longer upgrade to a Family Pack or buy additional MobileMe storage, Family Pack members will be able to transition their accounts to iCloud individually, as long as it’s done before June 30, 2012.
    http://www.macworld.com/article/1160728/apple_mobile_me_transition_faq.html
    http://en.wikipedia.org/wiki/MobileMe
    August 2012:
    As of today, visitors to MobileMe.com are no longer given the option to convert their accounts to iCloud or to retrieve old photos and files, with Apple now simply pointing users to iCloud.
    http://www.macrumors.com/2012/08/01/apple-officially-ends-mobileme-transition-an d-shuts-down-iwork-com/
    And this discussion from February 2012:
    https://discussions.apple.com/message/17687380#17687380
    ENTERING iCLOUD MAIL SERVER SETTINGS IN SNOW LEOPARD OR LEOPARD
    http://www.wilmut.webspace.virginmedia.com/notes/icloudmail.html

  • I can't receive email after i resend reset my apple id password in my email

    Two way to reset apple id password,
    Email authentication: To access your information, we will send an email to the address(es) on file for you.
    Answer security questions: To access your information, you will need to answer the security question(s) provided when you originally created your Apple ID.
    So I forgot my security question, I reset apple id by
    Email authentication: To access your information, we will send an email to the address(es) on file for you.
    It successfull to reset, But I do not receive email from Apple. Please help my I phone can't active when I upgrade version.

    First, try the new password.  If you didn't sign out of iCloud prior to changing the primary email address of your Apple ID, this is what can cause this problem.
    Also, read this: If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support

  • I am unable to access my email. I can sign in with my password, then a message comes up that says "The plug-in for this page has been disabled. Click here to manage your plug-ins." All plug-ins listed are enabled. What am I missing?

    I am unable to access my email from Charter.net. I can sign in with my password, then a message comes up which says "The plug-in for this page has been disabled. Click here to manage your plug-ins." All of my plug-ins are enabled. What am I missing?

    After a great deal of searching I ran across the suggestion to disable all plug-ins and then, one by one, enable them until finally the problem was solved. I am not sure which plug-in was causing the problem, as I am satisfied to have the problem solved. I am going to leave the rest of the plug-in disabled.

  • Can't send email after updating to snow leopard with Mail

    I can still receive emails. SMTP settings were not changed.
    I can send with Entourage using the same settings.
    any help ?
    thanx in advance

    when I try to send I get the following message
    +Cannot send message using the server Skynet+
    +The sender address was rejected by the server relay.skynet.be.+
    +Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent.+
    I have the same server settings on Entourage and it works
    none of the network settings were changed or firewall settings
    the problem started after upgrading to snow leopard
    iMac8,1, Intel Core 2 Duo, 2,8 GHz

  • Cannot send Sky emails after password change

    Changed sky email password, now can receive emails but not send them. Message says user name or password for SMTP [email protected]@smtptools.sky.com is incorrect. Have deleted account and set up again and rebooted iPhone 4. Same prob on iPad. Please can you help.

    Someone else with the same issue! This has been driving me nuts - I changed my sky email password and ever since then haven't been able to send emails from iPhone, although I can from other devices and also from the Sky browser, so I know the password I'm using on the iPhone is correct
    I'm terms of the 2 step authentication change recommended above, can someone please explain step by step how to do this?
    Thanks

  • I get a invalid address from my webmail (roadrunner) when I send an email. don't have this problem with IE.

    I already uninstalled then reinstall Firefox it worked 1 time now it is doing the same thing.

    This can be caused by corrupted cookies or cookies that aren't send or otherwise blocked.
    *http://kb.mozillazine.org/Cookies
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • I've change my primary email address now im having trouble with my password

    i changed my primary email address because i had a new one. Now in my icloud security thing is still using my old one, everytime i type in my password it always say its wrong. But i check my app store apple id,, it says my new  apple id
    I tried to "delete account" on settings then icloud but my old apple id pops up and everytime it asks for password,, i type in my old password it says it was wrong, i typed in my  new one it says its wrong.
    WHAT SHOULD I DO??

    You need to go to apple id site and change it back, without verifying for just as long as it takes to delete icloud account on your phone. Once deleted - change it back and verify.

Maybe you are looking for

  • AMD GPU. Driver update problem. Windows 7, BootCamp 5

    Hey . First I describe my problems, then what I've tried and at the bottom are my computer specs. I have an old driver for my video card , I am reminded of this when I start modern games such as Battlefield 4 When I start Battlefield 4 a window opens

  • GL drilldown to INV

    i am trying to reconcile INV with GL with the below query....am i missing sthg in the query..i am not able to match the amounts b/w INV to GL. SELECT MTA.BASE_TRANSACTION_VALue from gl_je_headers GJH , gl_import_references GIR , gl_je_lines GJL , gl_

  • In Intercompany stock Transfer getting an error

    Hi, I am getting an error when i am doing PGI Purchase order doesn't contain data for intercompany stock transfer. Regards Harmeet

  • Software Update permissions problem

    Ok, I'm trying to do the latest software update, but it's telling me: The update... could not be verified and expanded correctly. Make sure you have permission to write to /tmp/501/TemporaryItems/com.apple.SoftwareUpdate, then try again. I've done al

  • JAVA could not start with NON - zero exit code after Config UME

    Dear Expert, I found some problem with JAVA. We have been success to install for JAVA. We can logon to that. But since we configuration for UME. We found the problem with startup JAVA. We can not startup for JAVA. It show for error. =================