|  | @@ -1,6 +1,7 @@
 | 
	
		
			
				|  |  |  param(
 | 
	
		
			
				|  |  |      $ComputerName,
 | 
	
		
			
				|  |  | -    $ProgramName
 | 
	
		
			
				|  |  | +    $ProgramName,
 | 
	
		
			
				|  |  | +    $LogFile="runtime/uninstall-package.log"
 | 
	
		
			
				|  |  |  )
 | 
	
		
			
				|  |  |  $ComputerName | Out-Host
 | 
	
		
			
				|  |  |  # $psremoteremote = Resolve-Path "$PSScriptRoot\..\localadmin\psremote-remote.ps1"
 | 
	
	
		
			
				|  | @@ -8,8 +9,9 @@ $ComputerName | Out-Host
 | 
	
		
			
				|  |  |  # &$psremoteremote -ComputerName $ComputerName
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  # "NetPhone Client"
 | 
	
		
			
				|  |  | -Invoke-Command -ComputerName $ComputerName -ScriptBlock { 
 | 
	
		
			
				|  |  | +Invoke-Command -ComputerName $ComputerName -ScriptBlock {
 | 
	
		
			
				|  |  | +    hostname
 | 
	
		
			
				|  |  |      Get-Package |
 | 
	
		
			
				|  |  |      Where-Object {$_.Name -eq $ProgramName} |
 | 
	
		
			
				|  |  |      Uninstall-Package -Force
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +} *>&1 | Tee-Object -Append $LogFile
 |