Microsoft Word – Mail Merge Separate Documents and Save File Name as Mail Merge Variable

Setup your Microsoft Word mail merge by selecting your data source and the recipients. Don’t actually complete the mail merge. Create two Macro’s, one called “StartMailMerge” and the other called “DoWork”.   StartMailMerge – Code Sub Start() For i = 1 To ActiveDocument.MailMerge.DataSource.RecordCount DoWork Next i End Sub DoWork – Code Sub DoWork() Dim DokName […]

Configuring alarms on all VMware alarm definitions automatically using PowerShell

  My example contains alarm actions to send an email, but you can configure this for SNMP or any other actions. You can copy and paste this into a “.ps1” file to create a PowerShell scripts. # This command will remove any alarms actions that are configured currently. Get-AlarmDefinition | Get-AlarmAction | Remove-AlarmAction -confirm:$false   […]