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?
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
Correct! Get-ADComputer -Filter * -Properties * | FT Name, LastLogonDate -Autosize
Im not sure about C as lastlogon will only inform you of lastlogon to server and we need to know last restart
I think if you use answer B and define the ServersAccounts OU in the search scope then pipe it to a command that uses Get-CimInstance cmdlet you would have more success
Im not a powershell guru so if anyone out there is and can comment or verify this it would be appreciated