0% found this document useful (0 votes)
17 views9 pages

PS IAM Study Material.-1

Uploaded by

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

PS IAM Study Material.-1

Uploaded by

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

1. How to get the version of windows powershell?

o getversion
o get-version
o $psversiontable
o view-version

2. What is the command to access the application log container?


o get-eventsubscriber -logname application
o get-event -logname application
o get-eventviewer -logname application
o get-eventlog -logname application

3. You are using blob storage. Which of the following is true? Select one
o The cool access tier is for frequent access of objects in the storage account
o The hot access tier is for storing large amounts of the data that is infrequently
o The performance tier you selected does not affect pricing
o You can switch between hot and cool performance tiers at any time

4. How to handle Non-Terminating Error?


o TRY_CATCH
o ErrorAction

5. Every Powershell command is in …………..structure?


o alpha-beta
o noun-verb
o verb-noun
o beta-gamma

6. What is the meaning of { } in the Help SYNTAX?


o Optional Parameter
o Required Parameter
o Validate Set
o Switch

7. The Init in the FOR loop will work during every iteration.
o true
o false

8. Which looping statement runs atleast once.


o While Loop
o Do_While Loop
9. Which of the following is a Variable in Powershell?
o $Number1
o &Number1
o @Number1
o !Number1

10. What does the @{} represent in Powershell?


o Variables
o Hash tables
o Classes
o Inheritance

11. What is Powershell ISE?


o Integrated Scripts Encapsulation
o Integrated Scripting Environment
o Informative Scripting Environment
o Individual Scripting Environment

12. What is the command to see all the list of commands in the Powershell?
o getcommand
o get-cmd
o get-command
o getcmd

13. You manage a large datacenter that is running out of space. You propose extending the datacenter
to Azure using a Multi-Protocol Label Switching virtual private network. Which connectivity option
would you select? Select one.
o Point-to-Site
o VPN peering
o Multi-site
o Site-to-Site
o ExpressRoute

14. What are two important components of FOREACH?


o For variable and Test Variable
o Export variable and Collection Variable
o Data variable and Import Variable
o Item variable and Collection Variable
15. Which command will help in getting only selected properties of a command?
o format-table
o write-property
o select-property
o format-property

16. Which command appends the data in a file by default?


o import-csv
o set-content
o add-content
o out-file

17. Your company is preparing to implement persistent connectivity to Microsoft Azure. The company
has a single site, headquarters, which has an on-premises datacenter. The company establishes the
following requirement for the connectivity :
Connectivity must be persistent.
Connectivity must provide for the entire on-premises site.
You need to implement a connectivity solution to meet the requirements.
What should you do? Select one
o Implement a Site-to-Site VPN
o Implement a virtual private cloud (VPC)
o Implement a virtual private gateway(VGW)
o Implement a VNet-to-VNet VPN
o Implement a Point-to-site VPN

18. Which WMI class contains the drive details independently for each drive?
o Win32_LogicalDisk
o Win32_DiskDrive
o CIM_ DiskDrive
o CIM_ DiskPartition

19. Which one of the following is a comparison operator?


o -and
o -in
o -or
o -xor

20. Which one of the following is a Logical operator?


o -not
o -eq
o -contains
o -match
1.Which WMI class contains the Last reboot time?

Win32 Openingsystem

2.Which one of the folowing is a logical Operator?

-eq

3. How to get all the aliases in Powershell?

Get-alias

4.Registry that contains currently logged on user information.

.HKCU

5.Which among these ones is a Deployment tool

SCCM

6.ALLUSERS-1 specifies the below

Per Machine Installation

7. Powershell is built on ……….Platform?

.Net Framework

8. Applications that cannot be virtualized.

Driver applications

Applications that has boot time services

Applications that has dynamic com data

Server/client database applications

9.Every Powershell command is in… structure?

Verb-noun

10.REBOOT=Really Suppress is a

() Public property

Private property

None of the above

All of the above

11.What are the Three types of Vanable?

12.How to get the Version of Windows Powershell?

$PSVersionTable
13. What is Powershel ISE?

Integrated Scripting Environment

14.Driver applications would increment the below fies

Inf files

15.What is the Input statement in Powershell?

Read-host

16.Which one of the following is a Variable in Powershell?

$num1

17.What does the @represent in Powershell?

Hash Tables

18.Is the below command correct or not? Get-service/?($ Status-eq “running/ft Status, DisplayName,
StartType/sort DisplayName.

Correct

19. .What is the command to see all the list of commands in the Powershell?

Get-command

1.Which Execution policy will NOT allow the Downloaded scripts to Execute?

RemoteSigned

2.How many keypaths can a component have

One

3.What does the @{} represent in Powershell?

Hash Tables (needs to check)

4.ALLUSERS-1 specifies the below

5.What is the command to see all the list of commands in the Powershell?

Get-Command.
6.How to get all the aliases in Powershell?

Get-alias.

7.which one of the following is logical Operator in powershell?

Logical -AND or Logical -OR.

8.how to see all the properties of a command get process in powershell

To view all of the properties, pipe the results of a Get-Process command to the Get-Member cmdlet
Get-Process | Get-Member. (Needs to check )

If it’s not Get-Member then Format-list.

9.which command will open a dialog box asking for username and password in powershell

Get-Credential

10.how to handle a non terminating error in powershell

$ErrorActionPreference.

11.inlt in the for loop will work during every iteration

True (needs to check ).

12.which one of the following is comparison operator in powershell

-eq, -ne, -gt, -lt, -le, -ge. (-in)

13.Which of the following is assignment operator in powershell

14.What is a command to get all the windows updates?

Get-HotFix

15.what are two important components of foreach in powershell

Variable and collection to iterate. Or item Variable & collection variable

16. which command appends the data in a file by default in powershell

Add-Content
17.What is the command to access the remote computer (server01) service in powershell

Get-service – Computer name Service 01. Or (New-PSSession) Needs to check

18.How to declare the parameter $value as required parameter

Parameter(Mandatory=$true)

19.which command can help in viewing the file data in powershell

Get-Content

20.which command will show the details of the parameter called logname from the command get-
eventlog

Get-eventlog parameter logname

21.Which execution policy will not allow the downloaded scripts to execute?

RemoteSigned or restricted ( Needs to check )

22.which command will help in getting only selected properties of a command in powershell

Select-Object

23.which two commands used to filter only selected properties

Where-Object and Select-Object. Or it and select ( needs to check)


1.How to get the Version of Windows Powershell?

A. $PSVersionTable

2.How to see all the properties of a Command get-process?

A.Format-List *

3.Which Execution policy will NOT allow the Downloaded scripts to Execute?

A.RemoteSigned

4.What are two important components of FOREACH?

A. Item variable and Collection Variat

5.Which WMI class contains the Windows Manufacturer details?

A. Win32_ComputerSystem

6.Which WMI Class contains the Drive Details independently for each drive?

A. Win32_DiskDrive

7.How to declare the Parameter $Value as Required Parameter?

A . Mandatory=$true

8. Which variable stores the Global profile in Powershell?

A.$PROFILE

9.What is the command to see all the list of commands in the Powershell?

A. Get-Command

10.Which one of the following is a Variable in Powershell?

A. $Number1

11.Which one of the following is an Assignment Operator?

A. +=

12.Is the below command correct or not? Get-service |? ($_ Status -eq “running”) ft Status,
DisplayName, StartType | sort DisplayName?

A. Correct

13.Which command appends the data in a file by default ?

A. Add-Content

14.How to get all the aliases in Powershell?

A.Get-Alias
15.what does the @0 represent in powershell?

A.

16.Which looping statement runs atleast once?

A.do while loop

17.What is Powershell ISE?

A.Integrated Scripting Environment

18.which command will show the details of the Parameter called Logname from the command get-
eventlog?

A. get-help get-ever dog-parameter tognam

19.What is the command to get all the Windows updates?

A.Get-Hotfix

20.Which variable cannot be modified by the Administrator?

A.User Created variable

You might also like