I hereby claim:
- I am bustedsec on github.
- I am bustedsec (https://keybase.io/bustedsec) on keybase.
- I have a public key ASDrvgHBH3N3YpfGTY02uMCGFrs91Qlm-mfv4Ic7e1CEmwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| { | |
| "logstash-2016.12.10": { | |
| "aliases": {}, | |
| "mappings": { | |
| "8": { | |
| "properties": { | |
| "@timestamp": { | |
| "type": "date" | |
| }, | |
| "@version": { |
| $bod = "Please investigate" | |
| $Computers = Get-Content 'e:\scripts\servers.txt' | |
| Foreach ($PCname in $Computers) | |
| { | |
| if (test-path $pcname) | |
| {$Pcname} | |
| else | |
| {Send-MailMessage -SmtpServer autodiscover.ecinfosystems.com -From my@email.com -To emailaddress@emailplace.com -Subject "$PCname missing network shares" -Body $bod} | |
| } |