exam questions

Exam MD-100 All Questions

View all questions & answers for the MD-100 exam

Exam MD-100 topic 3 question 46 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a computer that runs Windows 10. The computer contains a folder named D:\Scripts. D:\Scripts contains several PowerShell scripts.
You need to ensure that you can run the PowerShell scripts without specifying the full path to the scripts. The solution must persist between PowerShell sessions.
Solution: From a command prompt, you run set.exe PATHEXT=d:\scripts.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
forummj
Highly Voted 4 years, 7 months ago
If, like me, you were wondering about this one, then this answer may help. https://superuser.com/questions/1334129/setting-an-environment-variable-in-windows-10-gpodder It's noted that any CMD variable set is only available while the CMD prompt window is open. After that point it is removed.
upvoted 13 times
jsblah
4 years, 6 months ago
Thank you for posting that - I *was* wondering ;-)
upvoted 5 times
...
...
Buruguduystunstugudunstuy
Most Recent 2 years, 1 month ago
Selected Answer: B
The command "set.exe PATHEXT=d:\scripts" only sets the value of the PATHEXT environment variable to include the D:\Scripts folder. The correct answer is B. No. See related question 45 with the answer, explanation, and how-to.
upvoted 1 times
...
williamlamata
2 years, 2 months ago
B. No. The command "set.exe PATHEXT=d:\scripts" will set the value of the PATHEXT environment variable to "d:\scripts", but this is not the correct environment variable to modify for adding a directory to the system path. The PATHEXT environment variable is used to specify the file extensions that the command processor considers to be executable files.
upvoted 1 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