From e5399b12b9b83063159acff728bea970b609e48c Mon Sep 17 00:00:00 2001 From: Don Schenck Date: Thu, 19 Jun 2014 12:07:20 -0500 Subject: [PATCH] Pipe Get-Process to see what's running --- examples/scripts/upgrade_to_ps3.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/scripts/upgrade_to_ps3.ps1 b/examples/scripts/upgrade_to_ps3.ps1 index 1e36607f81f..e83d7828a9b 100644 --- a/examples/scripts/upgrade_to_ps3.ps1 +++ b/examples/scripts/upgrade_to_ps3.ps1 @@ -28,6 +28,7 @@ $powershellpath = "C:\powershell" function download-file { + Get-Process | Out-File c:\powershell\whatisrunningrightnow.txt param ([string]$path, [string]$local) $client = new-object system.net.WebClient $client.Headers.Add("user-agent", "PowerShell") @@ -78,6 +79,5 @@ else $FileName = $DownLoadUrl.Split('/')[-1] download-file $downloadurl "$powershellpath\$filename" -write-host "Download successful" -exit + ."$powershellpath\$filename" /quiet /log "C:\powershell\install.log"