Send-Mail.ps1 v3.2 [7 November 2008]

v3.0 6 August 2008     : Removed the GUI form the original script
v3.1 22 August 2008 : Updated to “autofind” a hub server if -server is not specified
v3.2 7 November 2008 : Some minor tweeks. Added event logging.Added Error Event logging

This script uses .net (System.Net.Mail.MailMessage) to send an email
 – Reports output to the Application EventLog with Event IDs of:
  18 Script Starting
 19 Script Finished
 1801 Details of sent message
 1802 Details of any errors


No Commandline ………. This help text
-? …………………. This help text
-server &nbsp; .. Default is localhost. <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you specify “AutoDiscover” a Hub Transport Server <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; will be randomly selected<BR>-from <EMAIL address>… From Email Address. Default is <A href=”mailto:nobody@send-mail.ps1″ mce_href=”mailto:nobody@send-mail.ps1″>nobody@send-mail.ps1</A><BR>-to <EMAIL address>….. TO email address<BR>-cc <EMAIL address>….. CC email address<BR>-bcc <EMAIL address>…. BCC email address<BR>-toCSV <CSV name file>.. CSV file with email address.<BR>-ccCSV <CSV name file>.. CSV file with email address.<BR>-bccCSV <CSV name file>. CSV file with email address.<BR>-subject <TEXT>……… Message Subject. <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Default value will be set if not specified<BR>-body <TEXT>………… Message Body. <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Default value will be set if not specified<BR>-attachment <PATH Filename and><BR>-msgcount <NUMBER>…… Number of messages to be sent.&nbsp; Default is 1<BR>-verbose ……………&nbsp; Turns on verbose mode</P> <P mce_keep=”true”>&nbsp;</P></FONT>

get-hotfix.ps1 v1.5 [7 November 2008]

Okay I have updates as follows:

v1.0 27 October 2008 : A Script is born
v1.1 28 October 2008 : Add ability to expose Server Model
v1.2 31 october 2008 : Added email and commandline
v1.3 4 November 2008 : Added option to check recent changes
v1.4   6 November 2008 : Days commandline added
v1.5   7 November 2008 : Added option to check exchange cluster nodes

This script will check all Exchange 2007 servers and enumerate the Exchange Patch information and list the windows updates installed on the server

list hotfixes for all exchange servers

list hotfixes for just the names server

list hotfixes for all exchange servers and include cluster nodes and localhost. Additionally colour in red fixes that happened in the last 10 days
.Get-Hotfixes.ps1 -localhost -cluster -days 10 

For emailing to work the script requires send-mail.ps1 in the same folder