mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Pipe Get-Process to see what's running
This commit is contained in:
parent
cd3edf1eba
commit
e5399b12b9
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue