This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[string]$MailServerName = "smtp.server01.org.com" | |
[string]$FromAddress = "Reports@example.com" | |
[string]$HTML = "Test Message" | |
[string]$MessageSubject = "Test Email" | |
[string[]]$ToAddress = "User1@example.com", "User2@example.com", "User3@example.com" | |
# Prepare email and attach file. | |
$FullEmail = @{ | |
To = @($ToAddress) | |
Body = "$HTML" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Checks that Windows Firewall rules exist for all users that currently have active sessions. | |
# | |
$ProgramPath = "appdata\local\bluejeans\current\bluejeans.exe" | |
Write-Verbose -Message "Getting all firewall rules that have exceptions for: $($ProgramPath)" | |
$CurrentRules = Get-NetFirewallApplicationFilter -Program "*$ProgramPath" -PolicyStore PersistentStore -ErrorAction Ignore | Get-NetFirewallRule -ErrorAction Ignore | |
Write-Verbose -Message "Getting all logged on users" | |
$LoggedOnUsers = @() |