The code for history.txt is: Id Duration CommandLine -- -------- ----------- 1 7.066 read-host "Enter a computer name" 2 3.481 set 3 7.408 $computername = read-host "Enter a computer name" 4 0.009 $computername 5 0.026 write-host "COLORFUL!" -Foreground yellow -BackgroundColor magenta 6 0.012 write-host "COLORFUL!" -Foreground yellow -BackgroundColor darkred 7 0.013 write-host "COLORFUL!" -Foreground yellow -BackgroundColor black 8 0.053 write-output "Hello" | where-object { $_.length -gt 10 } 9 0.018 Write-Output "Hello World!" | Where-Object { $_.length -gt 10 } 10 0.014 Write-Host "Hello" | where-object { $_.length -gt 10 } 11 0.020 Write-Warning "Hello" 12 0.186 Write-Error "Hello" 13 0.018 Write-Information "Hello" 14 0.017 $InformationPreference = 'Continue' 15 0.007 Write-Information "Hello" 16 0.029 Write-Output 100*10 17 0.010 Write-Output (100*10) 18 0.007 Write-Host 100*10 19 0.011 Write-Host (100*10) 20 0.883 new-pssession -computername DESKTOP-46AVB2C 21 1:58.817 new-pssession -hostname DESKTOP-46AVB2C 22 0.047 get-pssession | remove-pssession 23 0.007 get-pssession 24 0.297 new-pssession -computername DESKTOP-46AVB2C 25 0.008 get-pssession 26 0.015 get-pssession | remove-pssession 27 1.378 new-pssession -computername DESKTOP-46AVB2C,localhost 28 0.017 get-pssession 29 0.060 get-pssession | remove-pssession 30 0.511 $sessions = new-pssession -computername DESKTOP-46AVB2C,localhost 31 0.019 get-pssession 32 0.022 $sessions 33 0.054 Enter-PSSession -Session $session 34 0.007 $session 35 0.047 Enter-PSSession -Session $sessions 36 0.008 $sessions 37 0.478 $session01,$session02 = new-pssession -computername DESKTOP-46AVB2C,localhost 38 0.413 Enter-PSSession -Session $session01 39 0.213 Enter-PSSession -Session $session02 40 0.222 Enter-PSSession -Session $sessions[0] 41 0.042 Enter-PSSession -Session $sessions | Where-Object { $_.computername -eq 'localhost'} 42 0.230 Enter-PSSession -Session ($sessions | Where-Object { $_.computername -eq 'localhost'}) 43 0.011 cd .\Documents\ 44 0.042 ls 45 0.010 cd .\CST1861\ 46 0.014 ls 47 0.010 cd .\Week\ 48 0.073 mkdir 12 49 0.031 md 12 50 0.017 cd 12 51 0.450 Get-CimInstance -class Win32_LogicalDisk -computername localhost `… 52 0.021 ls 53 0.095 s1.ps1 54 0.120 .\s1.ps1 55 0.011 "C:\Users\Jim Martinson\Documents\CST1861\Week\12\s1.ps1" 56 0.045 .\s1.ps1 57 0.001 "C:\Users\Jim Martinson\Documents\CST1861\Week\12\s1.ps1" 58 0.037 C:\Users\Jim Martinson\Documents\CST1861\Week\12\s1.ps1 59 0.017 'C:\Users\Jim Martinson\Documents\CST1861\Week\12\s1.ps1' 60 0.014 "C:\\Users\\Jim Martinson\\Documents\\CST1861\\Week\\12\\s1.ps1" 61 0.029 `C:\Users\Jim Martinson\Documents\CST1861\Week\12\s1.ps1` 62 0.132 & 'C:\Users\Jim Martinson\Documents\CST1861\Week\12\s1.ps1' 63 0.001 'C:\Users\Jim Martinson\Documents\CST1861\Week\12\s1.ps1' 64 0.041 & 'C:\Users\Jim Martinson\Documents\CST1861\Week\12\s1.ps1' 65 0.139 .\s1.ps1 66 0.020 ls 67 0.106 .s2 68 0.187 .\s2 69 0.135 .\s2.ps1 70 0.117 .\s3.ps1 71 0.110 .\s3.ps1 72 0.048 .\s3.ps1 localhost 73 0.059 .\s3.ps1 DESKTOP-46AVB2C 74 0.066 .\s3.ps1 75 0.034 .\s3.ps1 DESKTOP-46AVB2C 76 0.065 .\s3.ps1 -c DESKTOP-46AVB2C 77 0.041 .\s3.ps1 -comp DESKTOP-46AVB2C 78 0.129 .\s3.ps1 -comp DESKTOP-46AVB2C 79 0.024 .\s3.ps1 80 0.060 .\s3.ps1 localhost 81 0.127 .\s3.ps1 82 0.030 .\s3.ps1 83 0.099 .\Get-DiskInventory.ps1 84 0.081 .\Get-DiskInventory.ps1 85 0.084 .\Get-DiskInventory.ps1 86 0.071 .\Get-DiskInventory.ps1 87 16.310 help .\Get-DiskInventory.ps1 88 0.056 help .\s3.ps1 89 0.055 help .\s2.ps1 90 0.254 Get-Process 91 0.027 Get-UpTime 92 0.121 .\s4.txt 93 0.244 .\s4.ps1 94 0.019 Get-Uptime 95 0.013 Get-Uptime | Format-Table 96 0.238 .\s4.ps1 97 0.283 .\s4.ps1 98 0.320 .\s4.ps1 99 0.005 $x 100 0.013 $x = 'booga' 101 0.248 .\s4.ps1 102 0.002 $x 103 0.234 .\s4.ps1 104 0.001 $x 105 0.154 .\Get-DiskInventory2.ps1 106 0.048 .\Get-DiskInventory2.ps1 | Format-Table 107 0.053 .\Get-DiskInventory2.ps1 | Export-Csv disks.csv 108 7.061 .\Get-DiskInventory3.ps1 109 0.051 .\Get-DiskInventory3.ps1 localhost 110 1.437 .\Get-DiskInventory3.ps1 111 11.105 .\Get-DiskInventory3.ps1 112 4:06.084 .\Get-DiskInventory3.ps1 113 0.088 .\Get-DiskInventory3.ps1 -computername = localhost 114 0.050 .\Get-DiskInventory3.ps1 -computername localhost 115 0.040 .\Get-DiskInventory3.ps1 -host localhost 116 0.197 .\Get-DiskInventory2.ps1 117 0.102 .\Get-DiskInventory3.ps1 localhost 6 118 0.049 .\Get-DiskInventory3.ps1 localhost 3 119 0.047 .\Get-DiskInventory3.ps1 localhost 5 120 0.032 .\Get-DiskInventory3.ps1 localhost 2 121 5.685 .\Get-DiskInventory4.ps1 122 0.043 .\Get-DiskInventory4.ps1 localhost 3 123 0.052 .\Get-DiskInventory4.ps1 localhost 3 -Verbose 124 0.114 query user /server:DESKTOP-46AVB2C