1.

Which of the following command is used to get child items in powershell?(a) Get-Child(b) Set-Alias(c) Get-Command(d) Get-ChildItemThe question was posed to me in an interview.My query is from Powershell in section Laying the Foundation of SQL Server

Answer»

The CORRECT answer is (d) Get-ChildItem

To explain I WOULD say: Get-ChildItem is USED to get the contents of a folder or REGISTRY KEY.



Discussion

No Comment Found

Related InterviewSolutions