none
Password Expiry Email Notification RRS feed

  • Question

  • I downloaded the script from here

    https://gallery.technet.microsoft.com/scriptcenter/Password-Expiry-Email-177c3e27

    It fails as a scheduled task, but runs perfect when ran manually

    Running on a DC server 2016

    I am a domain administrator

    I do have run as batch job permissions

    For the program script I have this in Task Scheduler I have

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

    Under arguments I have

    C:\Scripts\PSC.ps1 -smtpServer 10.*.**.** -expireInDays 11 -from "IT Support <helpdesk@********.org>" -Logging -LogPath "c:\logFiles" -reportTo buchananm@********.org -interval 1,10

    Start in is blank

    Last Run result 0x1

    • Moved by Bill_Stewart Monday, March 12, 2018 9:42 PM This is not a support forum for gallery scripts
    Friday, January 19, 2018 1:39 PM

All replies