PrepAway - Latest Free Exam Questions & Answers

You need to identify which servers were restarted during the last two days

Your network contains an Active Directory domain named adatum.com. The domain contains several
thousand member servers that run Windows Server 2012 R2.All of the computer accounts for the
member servers are in an organizational unit (OU) named ServersAccounts.
Servers are restarted only occasionally.
You need to identify which servers were restarted during the last two days.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Run dsquery computer and specify the –staiepwd parameter.

B.
Run Get-ADComputer and specify the SearchScope parameter.

C.
Run Get-ADComputer and specify the IastLogon property.

D.
Run dsquery server and specify the –o parameter

7 Comments on “You need to identify which servers were restarted during the last two days

  1. Nadezhda says:

    $date_with_offset= (Get-Date).AddDays(-2)
    Get-ADComputer -Properties LastLogonDate -Filter {LastLogonDate -lt $date_with_offset } | Sort LastLogonDate | FT Name, LastLogonDate -Autosize




    0



    0
  2. Gary Trembath says:

    Not last logon date, but “last boot date”

    Get-ADComputer -Filter * -SearchBase “OU=Domain Controllers,DC=Contoso,DC=com” | select Name | ForEach-Object {Get-WmiObject win32_OperatingSystem -Computer $comp | Select csname,@{Label=”LastBootUpTime”;Expression={$_.ConverttoDateTime($_.lastbootuptime)}}}




    0



    0

Leave a Reply