Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

PowerShell Online Test

Topics Covered

  • CredSSP
  • Remoting
  • Find-Commands
  •  Changing states
  • Performing Networking Tasks
  • Scripting with Powershell

Useful for hiring

  • PowerShell Developer
  • PowerShell Engineer
  • BI Analyst- PowerShell

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruiters no longer rely only on the telephonic interviews. We shortlist candidates based on assessment reports. The detailed test reports provide skill wise analysis of each candidate. This has helped our clients reduce their time to hire by 60%."

Vipin Sharma, Mobile Programming,
General Manager HR & Recruitement
Question

You have a task to find all correct IP address in text log file with your PowerShell script. Which of the following regex expressions will help you?

Answer
    • '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}'
       

    • (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}
       

    • ^(([01]?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))\.){3}([01]?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))$
       

    • \d+[.]\d+[.]\d+[.]\d+
       

Question

You have written a script that gathers some file parameters with the following command:

Get-ChildItem –Path -Filter *.mkv -Recurse | Select-Object directoryname, basename, length

After that, you use Export-CSV. At the end of your script, you have to open your CSV file in Excel application. Which command should be used?

Answer
    • of file.csv

    • ii file.csv

    • sf file.csv

    • si file.csv

Question

You have a task to block domain users in OU Managers and subOU’s with last login older than 90 days. You are writing the first part of the script. What should you write after pipe?

$DaysInactive = 90
$InactiveDate = (Get-Date).Adddays(-($DaysInactive))
Get-ADUser -SearchBase "OU=Managers,DC=Domain,DC=com" -Filter * |

Answer
    • | &{ $_.LastLogonDate –lt $InactiveDate }
       

    • | &( $_.LastLogonDate –lt $InactiveDate )
       

    • | %{ $_.LastLogonDate –lt $InactiveDate }
       

    • | %( $_.LastLogonDate –lt $InactiveDate )
       

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO