exam questions

Exam 70-680 All Questions

View all questions & answers for the 70-680 exam

Exam 70-680 topic 3 question 36 discussion

Actual exam question from Microsoft's 70-680
Question #: 36
Topic #: 3
[All 70-680 Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
PSConsoleFileloads 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.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...