Skip to content

RECON_IR add first/title of users  #8

Description

@freeload101

not working ..

echo '-------------------------';
echo "[+] INFO: Atempting to fetch domain details for c:\Users* "
echo '-------------------------';

(Get-ChildItem -Path "C:\Users*").name |ForEach-Object {
Start-Process -FilePath "net" -ArgumentList " user $_ /domain " -NoNewWindow -Wait -RedirectStandardOutput "$Env:temp\users.txt"
Get-Content -Path "$Env:temp\users.txt" | Select-String -Pattern "Full Name|Comment" -CaseSensitive
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions