Skip to content

Instantly share code, notes, and snippets.

View dreznicek's full-sized avatar

Daniel Reznicek dreznicek

View GitHub Profile
$logFile = "C:\temp\powershell\vpndnscheck.log"
$Global:alarm = "begin"
function WriteLog {
Param([string]$LogString)
$stamp = (Get-Date).toString("yyyy/MM/dd HH:mm:ss")
$logMessage = "$stamp $LogString"
Add-content $LogFile -value $logMessage
}