16 lines
734 B
PowerShell
16 lines
734 B
PowerShell
# 远程探测脚本(不改现网)
|
|
Write-Output "HOST=$env:COMPUTERNAME"
|
|
Write-Output "--- nginx conf ---"
|
|
Get-ChildItem "C:\nginx-1.18.0\conf\*.conf" -ErrorAction SilentlyContinue | ForEach-Object { $_.FullName }
|
|
Write-Output "--- yutongda ---"
|
|
Get-ChildItem "C:\yutongda" -ErrorAction SilentlyContinue | ForEach-Object { $_.Name }
|
|
Write-Output "--- ytd-test ---"
|
|
Test-Path "C:\ytd-test"
|
|
Write-Output "--- tools ---"
|
|
@("python","java","node","nginx") | ForEach-Object {
|
|
$c = Get-Command $_ -ErrorAction SilentlyContinue
|
|
if ($c) { Write-Output "$_=$($c.Source)" } else { Write-Output "$_=MISSING" }
|
|
}
|
|
Write-Output "--- listen ---"
|
|
netstat -ano | findstr "LISTENING" | findstr ":8080 :8809 :8810 :8811 :8813 :8180 :8910 :8913"
|