存檔*.PS1 (最後面是數字1)
Send-MailMessage -Encoding ([System.Text.Encoding]::UTF8) -SmtpServer ‘10.1.1.1’ -From ‘CS0901 <CS0901@t3ex.com>’ -To ‘roger <roger@t3ex.com>’ -Subject WinSCP FTP連線成功’ -Body ‘這是信件內容’
存檔後透過批次擋呼叫方式:
完整路徑\powershell.exe -ExecutionPolicy Bypass -File 完整路徑\檔名.ps1
近期留言