$ErrorActionPreference='Continue' $r=Invoke-WebRequest -Uri 'http://127.0.0.1:8180/jeecgboot/sys/randomImage/seedcheck1' -UseBasicParsing -TimeoutSec 15 "randomImage status=$($r.StatusCode) len=$($r.RawContentLength)" try { $login=Invoke-RestMethod -Method Post -Uri 'http://127.0.0.1:8180/jeecgboot/sys/login' -ContentType 'application/json' -Body '{"username":"admin","password":"123456","captcha":"xxxx","checkKey":"seedcheck1"}' -TimeoutSec 20 $login | ConvertTo-Json -Compress } catch { "login_err=" + $_.Exception.Message if($_.ErrorDetails){ $_.ErrorDetails.Message } } # process args Get-CimInstance Win32_Process -Filter "Name='java.exe'" | ForEach-Object { if($_.CommandLine -like '*inquiry-new*'){ $_.CommandLine.Substring(0,[Math]::Min(500,$_.CommandLine.Length)) } }