function Test-JavaVersion { [cmdletbinding()] Param( [Parameter(ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $true)] [ValidateNotNullOrEmpty()] [Alias('PC','hostname','name')] [System.String]$ComputerName = 'localhost' ) Begin{ if(Test-Path 'c:\temp\JavaVersions.csv')...
However, it doesn’t actually install a program or service, so it’s hard to know if it’s already been set up. (Thanks to Jake Paternoster for confirming that in a comment on this post.) I decided to write a RunProgramOnce PowerShell script that would record the execution of the ...