| https://ol.baker.edu/webapps/assessment/take/launch.jsp?course assessment id Q
ID: 3875342 • Letter: #
Question
| https://ol.baker.edu/webapps/assessment/take/launch.jsp?course assessment id Question 5 The write-host command (Select All That Apply) Provides detailed information about the memory that Windows provides. Writes output back to the PowerShell window Can change the color of the text output in PowerShell None of the above. Question 6 The PowerShell execution policy (Select All That Apply) Prevents unauthorized scripts from running by default Can be changed by using the set-executionpolicy command C. Can only be changed by an administrative user None of the aboveExplanation / Answer
If you post more than 1 question, as per chegg guidelines I ahve to solve only 1 question.
5. (b) and (c)
We can write messages to the Windows PowerShell console using write-host command.
So, option (b) is correct.
We can also change the color of text using -foregroundcolor and -backgroundcolor.
So, option (c) is correct.
In the above command we give an output
to console. Also, the color of foreground is yellow and that of background is red.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.