Created
June 30, 2020 06:46
-
-
Save RobinBeismann/73aa171b5d8f4ded99212b3576c65429 to your computer and use it in GitHub Desktop.
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
$installFolder = "$env:ProgramFiles\BomgarJumpClient" | |
if( | |
(Test-Path -Path $installFolder) -and | |
(Test-Path -Path "$installFolder\bomgar-scc.exe") -and | |
(Test-Path -Path "$installFolder\server.lic") | |
){ | |
Get-ChildItem -Path $installFolder | Where-Object { $_.LastWriteTime -gt (Get-Date).AddDays(-7) } | ForEach-Object { | |
"Installed" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment