Difference between revisions of "Script Extracts and Examples (PowerCLI)"

Jump to navigation Jump to search
m
(Added NoIndex tag and depreciated note)
m (→‎VM's Recently Created: Typo correction)
Line 356: Line 356:
$VC_List = "ESX-Check.csv"
$VC_List = "ESX-Check.csv"
$EmailTo = "you@domain.com"
$EmailTo = "you@domain.com"
$MailServer = "mail.domain.com"
$days = 2
$days = 2
$NotFoundText = "Not found/gone?"
$NotFoundText = "Not found/gone?"
Line 527: Line 528:


# Send email
# Send email
$smtp = New-Object Net.Mail.SmtpClient -arg "mailrelay.uk.michaelpage.local"
$smtp = New-Object Net.Mail.SmtpClient -arg $MailServer
$msg = New-Object Net.Mail.MailMessage
$msg = New-Object Net.Mail.MailMessage
          
          

Navigation menu