63% found this document useful (8 votes)
11K views3 pages

Powershell

The document provides information about various PowerShell commands and concepts. Some key points covered include: - PowerShell commands like Get-Process, Sort-Object, Select-Object, Format-Table and their usage. - PowerShell variables, data types, execution policy, modules, aliases etc. - Differences between Windows PowerShell and open source PowerShell. - .NET Framework requirements for different PowerShell versions. - Common administration tasks performed using PowerShell cmdlets. So in summary, the document discusses PowerShell fundamentals like commands, variables, modules and provides examples of commands for tasks like viewing processes, sorting output etc.

Uploaded by

Udit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
63% found this document useful (8 votes)
11K views3 pages

Powershell

The document provides information about various PowerShell commands and concepts. Some key points covered include: - PowerShell commands like Get-Process, Sort-Object, Select-Object, Format-Table and their usage. - PowerShell variables, data types, execution policy, modules, aliases etc. - Differences between Windows PowerShell and open source PowerShell. - .NET Framework requirements for different PowerShell versions. - Common administration tasks performed using PowerShell cmdlets. So in summary, the document discusses PowerShell fundamentals like commands, variables, modules and provides examples of commands for tasks like viewing processes, sorting output etc.

Uploaded by

Udit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

In the following command, "-as secured string" is used to ___________.

$ password=
-host "Enter Your Password" -assecured string
To enter the password securely

PowerShell command to view all the properties of a specific Process like "Notepad"
is Get-Process notepad | Select-Object -Property *.
True

Pssession is ________.
Created, Managed and closed by a user

PowerShell module can contain _______.


cmd lets, providers,fuctions, variables that can be imported as a single unit.

To get customized output _________ cmdlet is used ____________.


Format-table

Get-Process | Sort-Object -Property Handles | Select-Object -Last 5 The output of


the above command will be the
List of 5 Processes, having higher handles values

Alias name of the Format-table is _________.


FT

To run ".PS1" files, the execution policy must be set to __________.


Remote Signed

Command to find the PowerShell Version is _____________.


$PSVersiontable

Default version of PowerShell in Windows 10 is __________.


5.0

Write-host is used to ______.


Display messages in the PowerShell console

Customize the output format


Display host data

Package management module is available in


PowerShell 5.0

Open Source Version of PowerShell contains full set of commands.


False

Get-Variable cmdlet displays the list of


Both Pre-Defined and User-Defined Variables

Which of the version of .Net Frame work is required to install PowerShell version
4?
.Net Framework 4.5

PowerShell variables are used to store _______.


Strings and Number objects

PowerShell cmdlets performs system administration tasks such as managing


______________.
All the options mentioned
If $Name="User1" then the command $[Link]() provides the information
on___________?
Both the options mentioned

PowerShell cmdlets performs system administration tasks such as managing


All

Error Action Preference specifies the desired behavior for ___________ in


PowerShell
a non-terminating error

Sort-Object cmdlet is used to _______.


Sort

Shell is _______ that is used to pass commands to the OS.


cmd inter

PowerShell for Ubuntu can be downloaded _______________.


debian

Integrated scripting environment is ______ for PowerShell.


Host application

In the command below, how will the value of the variable "$name" be set?
$ name=user1
Write-host "$name"
Value is already defined in the command

Command to display process name and ID of all process is get-process ______.


Both Select-Object and FT can be used

Open source of PowerShell version is available from the year _______.


2016

PowerShell variables are used to store _______.


Strings and Number objects

Which is an equivalent PowerShell command for "ls"?


get-childitem

Variables starts with ____


$

The command Get-Process | Where-Object{$_.ProcessName -match "^p. *"} filters the


Processes by Process name and lists the Processes which
starts with Alphabet "P"

Command to display the examples of get-service _________


All the options mentioned

PowerShell commands are case sensitive.


False

ISE is available from _______.


2.0

Which of the following are Session Specific commands?


Both Shell Function and Alias Comman

Read-Host cmdlet is used to


Prompt the value of the variable interactively

When PowerShell 2.0 is updated with PowerShell 3.0, then ___________.


PowerShell 2.0 cannot be updated with PowerS

You might also like