September 2017
Intermediate to advanced
314 pages
8h 5m
English
Let's say you need to know which Windows machines are in an Organizational Unit (OU) in AD:
Get-ADComputer -filter 'OperatingSystem -NotLike "*server*"' -SearchBase "CN=<OU name>,DC=Illuminati,DC=Services" | Select-Object -expand Name
If we wanted that in a file for, say, Excel consumption, just add an export command:
Get-ADComputer -filter 'OperatingSystem -NotLike "*server*"' -SearchBase "CN=<OU name>,DC=Illuminati,DC=Services" | Select-Object -expand Name | Export-CSV AllWindows.csv
But what if we need to do something other than query? Let's take the previous example. We are getting a list of all computers in a specific OU in AD. Great!
Let's find out if their hard drives are healthy. With solid state drives, ...
Read now
Unlock full access