adplus-dvertising
frame-decoration

Question

Which of the following code list all the log files in Window?

a.

snippet Clear-Host
$Directory = "C:\Windows\"`
-ErrorAction SilentlyContinue

b.

snippet Clear-Host
$Files = Get-Childitem $Directory -recurse -Include *.log `
-ErrorAction SilentlyContinue

c.

snippet Clear-Host
$Directory = "C:\Windows\"
$Files = Get-Childitem $Directory -recurse -Include *.log `
-ErrorAction SilentlyContinue

d.

All of the mentioned

Answer: (c).snippet Clear-Host
$Directory = "C:\Windows\"
$Files = Get-Childitem $Directory -recurse -Include *.log `
-ErrorAction SilentlyContinue

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following code list all the log files in Window?

Similar Questions

Discover Related MCQs

Q. Which of the following code snippet will return output as false?

Q. What is SQL Server 2008 R2 Hard Disk Space Requirement for database engine?

Q. Point out the correct statement.

Q. Which are the SQL Server 2008 R2 components require space more than 1.5 Gb?

Q. Which of the following is a feature of SQL Server 2008 R2 Datacenter?

Q. Point out the wrong statement.

Q. Which of the following is not a feature of SQL Server 2008 R2 Enterprise?

Q. Which of the following operating system is Supported by IA-64 Edition?

Q. What does the SQL Server setup program require?

Q. Which is the minimum processor speed for SQL Server 2008?

Q. The main memory requirements for SQL Server 2008 includes ___________

Q. What is SQL Server 2012 R2 Hard Disk Space Requirement for database engine?

Q. Point out the correct statement.

Q. Which components of SQL Server 2014 require 1182 Mb?

Q. Which of the following is a feature of SQL Server 2014?

Q. Point out the wrong statement related to SQL Server 2014.

Q. Which of the following is a feature of SQL Server 2012 R2 Enterprise?

Q. Which of the following operating system is supported by SQL Server 2014?

Q. Which of the following component is not installed by SQL Server setup 2012 required by the product?

Q. Which is the minimum processor speed for SQL Server 2012?