exam questions

Exam PT0-001 All Questions

View all questions & answers for the PT0-001 exam

Exam PT0-001 topic 1 question 64 discussion

Actual exam question from CompTIA's PT0-001
Question #: 64
Topic #: 1
[All PT0-001 Questions]

A penetration tester has a full shell to a domain controller and wants to discover any user account that has not authenticated to the domain in 21 days. Which of the following commands would BEST accomplish this?

  • A. dsrm -users ג€DN=company.com; OU=hq CN=usersג€
  • B. dsuser -name -account -limit 3
  • C. dsquery user -inactive 3
  • D. dsquery -o -rdn -limit 21
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zgwy
Highly Voted 5 years, 7 months ago
Wrong...C...try it yourself...21 days = 3 weeks
upvoted 8 times
...
D1960
Highly Voted 5 years, 2 months ago
C is the correct answer. Ref: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc725702%28v%3dws.11%29 -inactive <NumberOfWeeks> Searches for users who have been inactive (stale) for at least the number of weeks that you specify.
upvoted 5 times
...
kloug
Most Recent 2 years, 2 months ago
cccccccccccc
upvoted 1 times
...
miabe
2 years, 9 months ago
Selected Answer: C
looks good to me
upvoted 1 times
...
Cock
3 years, 2 months ago
It was on the exam
upvoted 1 times
...
runagerj
3 years, 6 months ago
Is it coincidence that all answers on this page appear to be C?
upvoted 1 times
...
cvMikazuki
3 years, 6 months ago
C gile. Cohort 1-2021
upvoted 1 times
...
varo82
3 years, 10 months ago
D command not work! C is correct
upvoted 2 times
...
mr_robot
5 years ago
C. - https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc725702%28v%3dws.11%29 -inactive <NumberOfWeeks> --> Searches for users who have been inactive (stale) for at least the number of weeks that you specify.
upvoted 3 times
...
jon34thna
5 years, 1 month ago
C. dsquery user -inactive 3
upvoted 4 times
...
amankry
5 years, 4 months ago
C is right answer
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago