exam questions

Exam MD-100 All Questions

View all questions & answers for the MD-100 exam

Exam MD-100 topic 4 question 2 discussion

Actual exam question from Microsoft's MD-100
Question #: 2
Topic #: 4
[All MD-100 Questions]

DRAG DROP -
You enable Windows PowerShell remoting on a computer that runs Windows 10.
You need to limit which PowerShell cmdlets can be used in a remote session.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://www.petri.com/powershell-remoting-restricting-user-commands

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
Jammer
Highly Voted 4 years, 7 months ago
New-PSSessionConfigurationfile Cmdlets Run the Register-PSSessionconfiguration cmdlets Rn the Enter-PSSession comdlets
upvoted 27 times
TrustMebro
3 years, 5 months ago
Dat is jammer
upvoted 1 times
rockhound
3 years, 5 months ago
Waarom?
upvoted 1 times
HvD
3 years, 1 month ago
Omdat alles in het Engels is. Stel dat Nederlands de wereldtaal was. Start RamenKrachtSchelp, Nieuwe-KrachtSessieConfiguratieBestand. Betreedt-KrachtSessie.
upvoted 2 times
JosB
3 years ago
ik heb een braadworst
upvoted 4 times
...
...
...
...
...
Anthony_2770
Highly Voted 4 years, 5 months ago
Notes : 1.Create a new configuration file. (New-PSSessionConfigurationfile) 2. Register the configuration. (Register-PSSessionconfiguration ) 3. Create a new session that uses the configuration.(Enter-PSSession)
upvoted 23 times
mikl
3 years, 4 months ago
Why Enter-PSSession instead of New-PSSession ?
upvoted 5 times
...
...
golijat
Most Recent 2 years, 1 month ago
Chat-GPT says Create a new session configuration file: Use the New-PSSessionConfigurationFile cmdlet to create a new session configuration file, which is a XML file that contains the settings for the session configuration. Edit the session configuration file to limit the cmdlets: Use a text editor to open the configuration file created in the previous step. In the <CmdletsToRestrict> section of the file, add the names of the cmdlets that you want to restrict in the remote session. Register the new session configuration: Use the Register-PSSessionConfiguration cmdlet to register the new session configuration on the remote computer. Specify the name of the new configuration file using the -FilePath parameter. Specify a name for the new session configuration using the -Name parameter. After performing these three actions, you can then use the new session configuration when creating new PowerShell remote sessions by specifying the -ConfigurationName parameter with the name you specified in step 3.
upvoted 1 times
...
Kock
2 years, 7 months ago
New-PSSessionConfiguration Register-PSSessionConfiguration - New-PSSession https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssessionconfigurationfile?view=powershell-7.2&viewFallbackFrom=powershell-7.1
upvoted 2 times
...
BaronW
3 years, 11 months ago
I don't think you need to run Enter-PSSession or New-PSSession, you would use Enter-PSSession from another PC to test the settings. New-PSSession is to create connections that can be used and reused an a script it's not relevant
upvoted 2 times
...
b3arb0yb1m
4 years, 1 month ago
Correct - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssessionconfigurationfile?view=powershell-7.1
upvoted 2 times
...
forummj
4 years, 7 months ago
I don't believe the last step is New-PSSession but Enter-PSSession https://petri.com/powershell-remoting-restricting-user-commands
upvoted 9 times
...
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago