Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
if (Test-Path -LiteralPath $filePath -PathType Leaf) {
Get-Content -LiteralPath $filePath -ReadCount 0
} else {
Write-Warning -Message 'Work Log file has not been created'
} # end if/else
} # end PROCESS block
You can’t perform that action at this time.