Skip to content

Commit 2d87636

Browse files
committed
Add workflow to find agentd on Windows
1 parent 7cdadaf commit 2d87636

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Find Windows agentd
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
find-agentd:
8+
runs-on: depot-windows-latest
9+
steps:
10+
- name: Search for agentd.exe
11+
shell: powershell
12+
run: |
13+
Write-Host "=== Searching for agentd.exe on Windows Depot Runner ==="
14+
Write-Host "Hostname: $env:COMPUTERNAME"
15+
Write-Host ""
16+
17+
Write-Host "--- Searching common locations ---"
18+
$locations = @(
19+
"C:\",
20+
"C:\Program Files",
21+
"C:\Program Files (x86)",
22+
"C:\ProgramData",
23+
"C:\Windows",
24+
"C:\Users"
25+
)
26+
27+
foreach ($location in $locations) {
28+
Write-Host "`nSearching in $location..."
29+
try {
30+
Get-ChildItem -Path $location -Filter "agentd.exe" -Recurse -ErrorAction SilentlyContinue |
31+
Select-Object -First 5 |
32+
ForEach-Object { Write-Host "FOUND: $($_.FullName)" }
33+
} catch {
34+
# Ignore access denied errors
35+
}
36+
}
37+
38+
Write-Host "`n--- Checking running processes ---"
39+
Get-Process | Where-Object {$_.ProcessName -like "*agent*"} | Format-Table Name, Path
40+
41+
Write-Host "`n--- Checking services ---"
42+
Get-Service | Where-Object {$_.Name -like "*agent*" -or $_.DisplayName -like "*agent*"} | Format-Table Name, DisplayName, Status
43+
44+
Write-Host "`n--- Environment variables ---"
45+
Get-ChildItem Env: | Where-Object {$_.Name -like "*DEPOT*" -or $_.Name -like "*AGENT*"} | Format-Table Name, Value
46+
47+
Write-Host "`n--- Quick filesystem search ---"
48+
# Use where.exe for faster searching
49+
Write-Host "Using where.exe to search PATH:"
50+
where.exe agentd.exe 2>$null
51+
52+
Write-Host "`n--- Checking specific paths ---"
53+
$checkPaths = @(
54+
"C:\usr\local\bin\agentd.exe",
55+
"C:\opt\agentd\agentd.exe",
56+
"C:\agentd\agentd.exe",
57+
"D:\agentd\agentd.exe",
58+
"$env:ProgramFiles\agentd\agentd.exe",
59+
"$env:ProgramFiles\Depot\agentd.exe",
60+
"$env:ProgramData\agentd\agentd.exe",
61+
"$env:ProgramData\Depot\agentd.exe"
62+
)
63+
64+
foreach ($path in $checkPaths) {
65+
if (Test-Path $path) {
66+
Write-Host "✓ FOUND: $path"
67+
Get-Item $path | Format-List
68+
}
69+
}

0 commit comments

Comments
 (0)