• POWERSHELL Script

    Author
    Topic
    #507292

    Hi all,

    I am new to powershell and I am stuck for code which should process the following:

    If time is 5:00 PM
    {
    send Email
    }

    I am sorry, but, I just can not do that.

    Viewing 1 reply thread
    Author
    Replies
    • #1581758

      --Joe

    • #1581944

      Don’t quite understand what you are attempting to do. Are you wanting:
      a) the script to wait until 5PM and then send an email?
      b) if the script is running, and it is 5PM, send an email
      c) run the script at 5PM; the script send an email (this is best handled via the Windows scheduler)
      My guess is (a), but each one requires slightly different coding, which makes it difficult to answer (and I’m too lazy to provide you with all three answers…)

    Viewing 1 reply thread
    Reply To: POWERSHELL Script

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: