summaryrefslogtreecommitdiff
path: root/examples/scripts
diff options
context:
space:
mode:
authorDon Schenck <don.schenck@gmail.com>2014-06-19 12:07:20 -0500
committerMatt Martz <matt@sivel.net>2014-06-19 14:26:29 -0500
commite5399b12b9b83063159acff728bea970b609e48c (patch)
tree1ac8132e099f839e4b3c17ac1485723a7a85945c /examples/scripts
parentcd3edf1ebabe0bf841f7d7192e2707e73c91fb68 (diff)
downloadansible-e5399b12b9b83063159acff728bea970b609e48c.tar.gz
Pipe Get-Process to see what's running
Diffstat (limited to 'examples/scripts')
-rw-r--r--examples/scripts/upgrade_to_ps3.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/scripts/upgrade_to_ps3.ps1 b/examples/scripts/upgrade_to_ps3.ps1
index 1e36607f81..e83d7828a9 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"