Skip to content

Instantly share code, notes, and snippets.

View BustedSec's full-sized avatar

BustedSec BustedSec

View GitHub Profile
@BustedSec
BustedSec / ps1
Created November 3, 2015 14:34
Check for missing network shares
$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}
}
{
"logstash-2016.12.10": {
"aliases": {},
"mappings": {
"8": {
"properties": {
"@timestamp": {
"type": "date"
},
"@version": {

Keybase proof

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: