Commit e5399b12 by Don Schenck Committed by Matt Martz

Pipe Get-Process to see what's running

parent cd3edf1e
...@@ -28,6 +28,7 @@ $powershellpath = "C:\powershell" ...@@ -28,6 +28,7 @@ $powershellpath = "C:\powershell"
function download-file function download-file
{ {
Get-Process | Out-File c:\powershell\whatisrunningrightnow.txt
param ([string]$path, [string]$local) param ([string]$path, [string]$local)
$client = new-object system.net.WebClient $client = new-object system.net.WebClient
$client.Headers.Add("user-agent", "PowerShell") $client.Headers.Add("user-agent", "PowerShell")
...@@ -78,6 +79,5 @@ else ...@@ -78,6 +79,5 @@ else
$FileName = $DownLoadUrl.Split('/')[-1] $FileName = $DownLoadUrl.Split('/')[-1]
download-file $downloadurl "$powershellpath\$filename" download-file $downloadurl "$powershellpath\$filename"
write-host "Download successful"
exit
."$powershellpath\$filename" /quiet /log "C:\powershell\install.log" ."$powershellpath\$filename" /quiet /log "C:\powershell\install.log"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment