1
Vraag
2
Reacties
3
Oplossing
Loretta89

Level 1
  • 2Posts
  • 0Oplossingen
  • 0Likes

Send mail after successfull powershell script execution

So I created the script below:

SCRIPT: $target = "c:\$(get-date -F 'yyyy-MM')"
if (!(Test-Path $target)) {md $target}
gci 'c:\test\' -Filter *.xml -recurse | ?{!$_.PSIsContainer -and $_.CreationTime -ge (get-date "01.$((get-date).Month)")} | copy-item -Destination $target -Force



Could somebody point me to the right direction of how to send a email to a krogerfeedback specific address after this script was successfully executed ?
Oplossing

Geaccepteerde oplossingen
Folkert
Community Testspecialist
Community Testspecialist
  • 7633Posts
  • 639Oplossingen
  • 4327Likes
Hi Loretta89,

I suggest that you join Stackoverflow.com and ask your question on this page.

Bekijk in context

2 Reacties 2
Meldingen
Aan Uit
Nick999

Level 17
  • 3918Posts
  • 225Oplossingen
  • 1082Likes
I don't think this is the right place to ask this specific question. You might have a better chance when you go to a forum about scripting and TOR.
Folkert
Community Testspecialist
Community Testspecialist
  • 7633Posts
  • 639Oplossingen
  • 4327Likes
Hi Loretta89,

I suggest that you join Stackoverflow.com and ask your question on this page.