
This C# tool sprays for admin access over the entire domain
A C# utility that enumerates domain computers and tests administrative access to them, including connectivity checks, admin privileges verification, and C$ share writability testing.
FindAdminAccess.exe [options]
Test all computers in the current domain (synchronous):
FindAdminAccess.exe
Test all computers asynchronously (faster but resources heavy):
FindAdminAccess.exe --async
Specify domain and domain controller:
FindAdminAccess.exe --domain contoso.com --dc dc01.contoso.com
Test a specific computer:
FindAdminAccess.exe --computer SERVER01 --async
The tool displays results in a table format:
Computer Name Online Admin Handle C$ Writable
---------------------------------------------------------------------------
SERVER01.contoso.com Yes Yes Yes
WORKSTATION02.contoso.com Yes No N/A
OFFLINE-PC.contoso.com No N/A N/A
PrincipalContext and ComputerPrincipal to retrieve all computer objectsSC_MANAGER_ALL_ACCESS rights via P/Invokecsc /out:FindAdminAccess.exe Program.cs
Or with .NET CLI:
dotnet build
If you encounter domain connection errors, try these steps:
--dc without --domain parameterLsecqt
| Option | Description |
|---|
--async | Process computers asynchronously for faster execution |
--domain <name> | Specify domain name (e.g., contoso.com) |
--dc <server> | Specify domain controller to query |
--computer <name> | Test a specific computer only |
--help, -h, /? | Show help message |