Windows · PowerShell interview questions

63 Windows · PowerShell questions from the System Administration bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which command will list Windows services and their status?

Junior
  1. A.Get-ADUser -Filter *
  2. B.Get-Help Get-Service
  3. C.Select-Object -First 5
  4. D.Get-Service

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

4. What does Get-Process do?

Junior
  1. A.list Windows services and their status
  2. B.read the newest System event-log entries (legacy cmdlet)
  3. C.list running processes
  4. D.find cmdlets whose name matches a pattern

Answer + AI explanation with Pro

5. Which command will list running processes?

Junior
  1. A.Get-Help Get-Service
  2. B.Get-Process
  3. C.Select-Object -First 5
  4. D.Get-EventLog -LogName System -Newest 20

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

7. What does Get-ADUser -Filter * do?

Mid
  1. A.query Active Directory user accounts
  2. B.show help for a cmdlet
  3. C.write objects to a CSV file
  4. D.restart a named Windows service

Answer + AI explanation with Pro

8. Which command will query Active Directory user accounts?

Mid
  1. A.Sort-Object CPU -Descending
  2. B.Get-Process
  3. C.Test-Path C:\\temp
  4. D.Get-ADUser -Filter *

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which command will read entries from the Security event log?

Junior
  1. A.Test-Path C:\\temp
  2. B.Get-Help Get-Service
  3. C.Get-WinEvent -LogName Security
  4. D.Restart-Service Spooler

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

17. Which term means: "the current pipeline object inside a Where-Object/ForEach-Object block"?

Mid
  1. A.DSC
  2. B.JEA
  3. C.$_ (PSItem)
  4. D.pipeline

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

20. Which term means: "allow local scripts but require remote scripts to be signed"?

Mid
  1. A.JEA
  2. B.DSC
  3. C.comparison operators
  4. D.Set-ExecutionPolicy RemoteSigned

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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)

Answer + AI explanation with Pro

23. Which command will show help for a cmdlet?

Junior
  1. A.Export-Csv -NoTypeInformation
  2. B.New-PSSession -ComputerName X
  3. C.Get-Help Get-Service
  4. D.Get-Member

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

26. Which command will find cmdlets whose name matches a pattern?

Junior
  1. A.Restart-Service Spooler
  2. B.Test-Path C:\\temp
  3. C.Get-Command *service*
  4. D.Invoke-Command -ComputerName X -ScriptBlock {…}

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

28. What does Get-Member do?

Junior
  1. A.list the properties and methods of pipeline objects
  2. B.read the newest System event-log entries (legacy cmdlet)
  3. C.write objects to a CSV file
  4. D.restart a named Windows service

Answer + AI explanation with Pro

29. Which command will list the properties and methods of pipeline objects?

Junior
  1. A.New-PSSession -ComputerName X
  2. B.Get-ADUser -Filter *
  3. C.Get-Member
  4. D.Restart-Service Spooler

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Windows · PowerShell question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers