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?

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?

A.
Modify the PowerShell execution policy.

B.
Create a new PowerShell manifest file. Update the PowerShell 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
\WindowsPowerShell\v1.0 folder.

Explanation:
PSConsoleFile
Loads the specified Windows PowerShell console file. To create a console file, use the ExportConsole 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 0

Your email address will not be published. Required fields are marked *