Windows · PowerShell interview questions

63 real Windows · PowerShell questions from the System Administration bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What does Get-Service do?

Junior
  1. A.run a command on a remote computer via PSRemoting
  2. B.read the newest System event-log entries (legacy cmdlet)
  3. C.list Windows services and their status
  4. D.read entries from the Security event log
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Get-Service — read entries from the Security event log
  2. B.Get-Service — list running processes
  3. C.Get-Service — list Windows services and their status
  4. D.Get-Service — list the properties and methods of pipeline objects
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Get-Process — take the first five objects from the pipeline
  2. B.Get-Process — run a command on a remote computer via PSRemoting
  3. C.Get-Process — write objects to a CSV file
  4. D.Get-Process — list running processes
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Get-ADUser -Filter * — query Active Directory user accounts
  2. B.Get-ADUser -Filter * — open a persistent remoting session to a host
  3. C.Get-ADUser -Filter * — restart a named Windows service
  4. D.Get-ADUser -Filter * — find cmdlets whose name matches a pattern
Reveal the answer + AI explanation — free account

10. What does Invoke-Command -ComputerName X -ScriptBlock {…} do?

Mid
  1. A.show help for a cmdlet
  2. B.run a command on a remote computer via PSRemoting
  3. C.check whether a file or folder path exists
  4. D.read entries from the Security event log
Reveal the answer + AI explanation — free account

11. Which command will run a command on a remote computer via PSRemoting?

Mid
  1. A.Sort-Object CPU -Descending
  2. B.New-PSSession -ComputerName X
  3. C.Invoke-Command -ComputerName X -ScriptBlock {…}
  4. D.Export-Csv -NoTypeInformation
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Invoke-Command -ComputerName X -ScriptBlock {…} — run a command on a remote computer via PSRemoting
  2. B.Invoke-Command -ComputerName X -ScriptBlock {…} — open a persistent remoting session to a host
  3. C.Invoke-Command -ComputerName X -ScriptBlock {…} — list Windows services and their status
  4. D.Invoke-Command -ComputerName X -ScriptBlock {…} — sort pipeline objects by a property descending
Reveal the answer + AI explanation — free account

13. What does Get-WinEvent -LogName Security do?

Junior
  1. A.check whether a file or folder path exists
  2. B.read the newest System event-log entries (legacy cmdlet)
  3. C.read entries from the Security event log
  4. D.list the properties and methods of pipeline objects
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.Get-WinEvent -LogName Security — open a persistent remoting session to a host
  2. B.Get-WinEvent -LogName Security — list Windows services and their status
  3. C.Get-WinEvent -LogName Security — check whether a file or folder path exists
  4. D.Get-WinEvent -LogName Security — read entries from the Security event log
Reveal the answer + AI explanation — free account

16. What is $_ (PSItem)?

Mid
  1. A.the current pipeline object inside a Where-Object/ForEach-Object block
  2. B.Desired State Configuration — declarative config management in PowerShell
  3. C.allow local scripts but require remote scripts to be signed
  4. D.-eq, -ne, -gt, -lt, -like, -match used in filters
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.$_ (PSItem) — Just Enough Administration — constrained delegated PowerShell endpoints
  2. B.$_ (PSItem) — Desired State Configuration — declarative config management in PowerShell
  3. C.$_ (PSItem) — allow local scripts but require remote scripts to be signed
  4. D.$_ (PSItem) — the current pipeline object inside a Where-Object/ForEach-Object block
Reveal the answer + AI explanation — free account

19. What is Set-ExecutionPolicy RemoteSigned?

Mid
  1. A.the current pipeline object inside a Where-Object/ForEach-Object block
  2. B.allow local scripts but require remote scripts to be signed
  3. C.passing objects (not text) from one cmdlet to the next
  4. D.Desired State Configuration — declarative config management in PowerShell
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.Set-ExecutionPolicy RemoteSigned — passing objects (not text) from one cmdlet to the next
  2. B.Set-ExecutionPolicy RemoteSigned — allow local scripts but require remote scripts to be signed
  3. C.Set-ExecutionPolicy RemoteSigned — the current pipeline object inside a Where-Object/ForEach-Object block
  4. D.Set-ExecutionPolicy RemoteSigned — -eq, -ne, -gt, -lt, -like, -match used in filters
Reveal the answer + AI explanation — free account

22. What does Get-Help Get-Service do?

Junior
  1. A.show help for a cmdlet
  2. B.query Active Directory user accounts
  3. C.open a persistent remoting session to a host
  4. D.read the newest System event-log entries (legacy cmdlet)
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Junior
  1. A.Get-Help Get-Service — sort pipeline objects by a property descending
  2. B.Get-Help Get-Service — query Active Directory user accounts
  3. C.Get-Help Get-Service — show help for a cmdlet
  4. D.Get-Help Get-Service — find cmdlets whose name matches a pattern
Reveal the answer + AI explanation — free account

25. What does Get-Command *service* do?

Junior
  1. A.read entries from the Security event log
  2. B.run a command on a remote computer via PSRemoting
  3. C.restart a named Windows service
  4. D.find cmdlets whose name matches a pattern
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Junior
  1. A.Get-Command *service* — open a persistent remoting session to a host
  2. B.Get-Command *service* — find cmdlets whose name matches a pattern
  3. C.Get-Command *service* — list the properties and methods of pipeline objects
  4. D.Get-Command *service* — read entries from the Security event log
Reveal the answer + AI explanation — free account

30. Which statement is correct?

Junior
  1. A.Get-Member — check whether a file or folder path exists
  2. B.Get-Member — list the properties and methods of pipeline objects
  3. C.Get-Member — read the newest System event-log entries (legacy cmdlet)
  4. D.Get-Member — open a persistent remoting session to a host
Reveal the answer + AI explanation — free account

Showing 30 of 63 Windows · PowerShell questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Windows · PowerShell free