The admin has been frequently working with a certain script block for administering systems in the network. It has become a tedious task to repeat the use of the script block in multiple systems. To reduce the typing of same code again and again you need to find alternate solution for the same. Which of the following can be the alternate solution for it?

Save the cmdlet block in text file, copy and paste same whenever it is required.

Create the function with the cmdlet block, call the function whenever required.

Create the Module and import the module whenever required.

Open a new PowerShell console and run the cmdlet block here, link it whenever required to the working PowerShell console.

Correct Option - c

To get all Infosys Certified L1 Junior Windows Admin Professional Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in