Q. Which of the following code list all the log files in Window?
β
Correct Answer: (C)
snippet Clear-Host $Directory = "C:\Windows\" $Files = Get-Childitem $Directory -recurse -Include *.log ` -ErrorAction SilentlyContinue