9 lines
223 B
PowerShell
9 lines
223 B
PowerShell
# Check if a specific file exists
|
|
$filePath = "C:\Company\Compliance\requiredfile.txt"
|
|
|
|
if (Test-Path $filePath) {
|
|
Write-Output "Compliance file is present."
|
|
} else {
|
|
Write-Output "Compliance file is missing."
|
|
}
|