exam questions

Exam 70-742 All Questions

View all questions & answers for the 70-742 exam

Exam 70-742 topic 1 question 235 discussion

Actual exam question from Microsoft's 70-742
Question #: 235
Topic #: 1
[All 70-742 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a server named Web1 that runs Windows Server 2016.
You need to list all the SSL certificates on Web1 that will expire during the next 60 days.
Solution: You run the following command.
Get-ChildItem Cert:\LocalMachine\Trust |? { $_.NotAfter -It (Get-Date).AddDays( 60 ) }
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
xziomal9
Highly Voted 5 years, 5 months ago
Only: Get-ChildItem Cert:\LocalMachine\My |? { $_.NotAfter -lt (Get-Date).AddDays(60)} Another answers are "NO".
upvoted 10 times
...
Kamikazekiller
Highly Voted 4 years, 10 months ago
Correct: Get-ChildItem Cert:\LocalMachine\My |? { $_.NotAfter -lt (Get-Date).AddDays(60)} Wrong: Get-ChildItem Cert:\LocalMachine\Trust |? { $_.NotAfter It (Get-Date).AddDays( 60 ) } It should be in Cert:\LocalMachine\My and not "Trust" Correct answer is NO
upvoted 10 times
...
lofzee
Most Recent 4 years, 4 months ago
answer is no, you need the localmachine\my bit
upvoted 1 times
...
GoldenFox
4 years, 4 months ago
Q.62 run command: Get-ChildItem Cert:\LocalMachine\My | ? {_.NotAfter -lt (Get-Date).AddDays(60) }  Yes Q.80 run command: Get-ChildItem Cert:\LocalMachine\Trust | ? {_.NotAfter -lt (Get-Date).AddDays(60)}  No
upvoted 1 times
...
coolkey
4 years, 12 months ago
Cert:\LocalMachine\Trust is the trust cert, correct store should be Cert:\LocalMachine\MY\
upvoted 3 times
...
Gary
5 years, 7 months ago
Why? Don’t understand
upvoted 3 times
coleman
5 years, 5 months ago
NO is the correct answer. https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.security/providers/get-childitem-for-certificate.aspx https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.security/providers/certificate-provider.aspx Cert:\LocalMachine\Trust
upvoted 3 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 ...