PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the snap-in is automatically imported when you open a new PowerShell session

You download a Windows PowerShell snap-in.
You need to ensure that the snap-in is automatically imported when you open a new PowerShell session.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Modify the PowerShell execution policy.

B.
Create a new PowerShell manifest file. Update thePowerShell shortcut and specify the file option.

C.
Create a new PowerShell console file. Update the PowerShell shortcut and specify the psconsolefile option.

D.
Create a new PowerShell formatting and type file.Copy the file to the %SystemRoot%\system32\Windows
PowerShell\v1.0 folder.

Explanation:
10140 20153
PSConsoleFile
Loads the specified Windows PowerShell console file. To create a console file, use the Export-Console cmdlet
in Windows PowerShell.
Export-Console
The Export-Console cmdlet exports the names of the Windows PowerShell snap-ins in the current session to a
Windows PowerShell console file (.psc1). You can use this cmdlet to save the snap-ins for use in future
sessions.
To add the snap-ins in the .psc1 console file to a session, start Windows PowerShell (Powershell.exe) at the
command line by using Cmd.exe or another Windows PowerShell session, and then use the PSConsoleFile
parameter of Powershell.exe to specify the console file.


Leave a Reply