Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

existing credential #2

Open
GalacticMaster opened this issue Jan 12, 2018 · 5 comments
Open

existing credential #2

GalacticMaster opened this issue Jan 12, 2018 · 5 comments

Comments

@GalacticMaster
Copy link

Hey,

it is asking me for credentials, why can it uses existing credentials.

@prashant3535
Copy link
Contributor

prashant3535 commented Jan 12, 2018

Hi, can you provide the command used and the output ?

ADRecon will ask for credentials in the following conditions: (excluding RUNAS)

  • When executed from a standalone workstation / server
  • When executed as a local user from a domain member

In these conditions, a PSCredential object is expected (-Credential parameter) and the Domain Controller FQDN/IP Address (-DomainController parameter).

Example: (Domain Controller IP address is 192.168.9.1)

$creds = Get-Credential
.\ADRecon.ps1 -DomainController 192.168.9.1 -Credential $creds

@pxss
Copy link

pxss commented Nov 27, 2018

I use the machine in the domain, then log in with the domain user, which also needs credentials after execution.

@prashant3535
Copy link
Contributor

Hi @pxss,

Could you please share the exact command you are using and the output?

@pxss
Copy link

pxss commented Dec 3, 2018

@pxss

你能否分享你正在使用的确切命令和输出?

.\ADRecon.ps1 -DomainController 192.168.9.1 -Credential test.com\testuser

@prashant3535
Copy link
Contributor

prashant3535 commented Dec 3, 2018

If you are using from a machine in the domain and logged in with the domain user, you dont need to specify the -DomainController and -Credential parameters.

.\ADRecon.ps1

Should work fine.

If you specify the -DomainController or -Credential parameter, you will be prompted for the credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants