├── Disk Alert Thresholds with Custom EDFs
├── Get-AutomateDiskAlerts.ps1
└── README.txt
├── Find-MicrosoftSecurityScannerViolations.ps1
├── InstallerDetection.ps1
├── LICENSE
├── Ninja-MusicalLock.ps1
├── Probe - Clear Local Detection Templates
└── Clear detection templates from local agent on Probe.ps1
├── README.md
├── Remote Monitor - Powershell CPU Performance Degraded Test
└── Check CPU Performance Report top 5 processes and percentage.ps1
├── Run Script from Github.ps1
├── Running as a user in an Automate Script
├── Example - Running as User.xml
└── Example - Running as User.zip
├── SQL Snippets
└── Active Directory Plugin
│ ├── Delete Individual Company from Multiple Plugin_AD Tables.sql
│ └── README.md
├── Security-Tests-Windows.ps1
├── Spectre and Meltdown Solution
├── Automate Reports
│ └── Spectre Meltdown Report.zip
├── Automate Scripts
│ ├── Meltdown and Spectre - Detection ConnectWise Automate Script.xml
│ ├── Meltdown and Spectre - Enable Hyper-V Mitigations for VMs.xml
│ ├── Meltdown and Spectre - Enable Local Mitigations.xml
│ └── Meltdown and Spectre - Set Allow Reg Key for Update.xml
├── DATAVIEW - Spectre and Meltdown Assessment.sql
├── README.md
└── Underlying Powershell
│ └── Meltdown and Spectre Detection.ps1
├── SymantecRemoval.ps1
├── Test.txt
├── TreeSize - Interactive HTML Reports for Disk Space Distribution
├── README.md
├── TreeSize - HTML Report to E-mail for Customer Facing Size Guide.xml
└── Visible Script To Show Changes - Do Not Use.txt
├── Update-ManageContactOnConfiguration.ps1
└── Uptime Statistics Solution
├── README.md
├── Retrieve-Server-Uptime-Statistics.ps1
├── Screenshots
└── UptimeStatistics.png
└── Uptime Statistics to EDF.xml
/Disk Alert Thresholds with Custom EDFs/Get-AutomateDiskAlerts.ps1:
--------------------------------------------------------------------------------
1 | #Get-ThresholdPassOrFail -diskfreepercent 12 -diskfreegb 10 -testmethod 15pctfree
2 | function Get-ThresholdPassOrFail {
3 | param (
4 | [Parameter(Mandatory=$true)]
5 | [string]$testmethod,
6 |
7 | [Parameter(Mandatory=$true)]
8 | [single]$diskfreepercent,
9 |
10 | [Parameter(Mandatory=$true)]
11 | [single]$diskfreegb
12 | )
13 |
14 | switch ($testmethod) {
15 | 'NA' {$Result = "PASS"}
16 | '1 Percent Free' { If($diskfreepercent -le 5){$Result = "FAIL"}Else{$Result = "PASS"}}
17 | '2 Percent Free' { If($diskfreepercent -le 5){$Result = "FAIL"}Else{$Result = "PASS"}}
18 | '3 Percent Free' { If($diskfreepercent -le 5){$Result = "FAIL"}Else{$Result = "PASS"}}
19 | '4 Percent Free' { If($diskfreepercent -le 5){$Result = "FAIL"}Else{$Result = "PASS"}}
20 | '5 Percent Free' { If($diskfreepercent -le 5){$Result = "FAIL"}Else{$Result = "PASS"}}
21 | '10 Percent Free' { If($diskfreepercent -le 10){$Result = "FAIL"}Else{$Result = "PASS"}}
22 | '15 Percent Free' { If($diskfreepercent -le 15){$Result = "FAIL"}Else{$Result = "PASS"}}
23 | '20 Percent Free' { If($diskfreepercent -le 20){$Result = "FAIL"}Else{$Result = "PASS"}}
24 | '30 Percent Free' { If($diskfreepercent -le 30){$Result = "FAIL"}Else{$Result = "PASS"}}
25 | '40 Percent Free' { If($diskfreepercent -le 40){$Result = "FAIL"}Else{$Result = "PASS"}}
26 | '50 Percent Free' { If($diskfreepercent -le 50){$Result = "FAIL"}Else{$Result = "PASS"}}
27 | '60 Percent Free' { If($diskfreepercent -le 60){$Result = "FAIL"}Else{$Result = "PASS"}}
28 | '70 Percent Free' { If($diskfreepercent -le 70){$Result = "FAIL"}Else{$Result = "PASS"}}
29 | '80 Percent Free' { If($diskfreepercent -le 80){$Result = "FAIL"}Else{$Result = "PASS"}}
30 | '90 Percent Free' { If($diskfreepercent -le 90){$Result = "FAIL"}Else{$Result = "PASS"}}
31 | '1 GB Free' { If($diskfreegb -le 1){$Result = "FAIL"}Else{$Result = "PASS"}}
32 | '2 GB Free' { If($diskfreegb -le 2){$Result = "FAIL"}Else{$Result = "PASS"}}
33 | '3 GB Free' { If($diskfreegb -le 3){$Result = "FAIL"}Else{$Result = "PASS"}}
34 | '5 GB Free' { If($diskfreegb -le 4){$Result = "FAIL"}Else{$Result = "PASS"}}
35 | '10 GB Free' { If($diskfreegb -le 10){$Result = "FAIL"}Else{$Result = "PASS"}}
36 | '20 GB Free' { If($diskfreegb -le 20){$Result = "FAIL"}Else{$Result = "PASS"}}
37 | '30 GB Free' { If($diskfreegb -le 30){$Result = "FAIL"}Else{$Result = "PASS"}}
38 | '40 GB Free' { If($diskfreegb -le 40){$Result = "FAIL"}Else{$Result = "PASS"}}
39 | '50 GB Free' { If($diskfreegb -le 50){$Result = "FAIL"}Else{$Result = "PASS"}}
40 | '100 GB Free' { If($diskfreegb -le 100){$Result = "FAIL"}Else{$Result = "PASS"}}
41 | '200 GB Free' { If($diskfreegb -le 200){$Result = "FAIL"}Else{$Result = "PASS"}}
42 | '300 GB Free' { If($diskfreegb -le 300){$Result = "FAIL"}Else{$Result = "PASS"}}
43 | '400 GB Free' { If($diskfreegb -le 400){$Result = "FAIL"}Else{$Result = "PASS"}}
44 | '500 GB Free' { If($diskfreegb -le 500){$Result = "FAIL"}Else{$Result = "PASS"}}
45 | '800 GB Free' { If($diskfreegb -le 800){$Result = "FAIL"}Else{$Result = "PASS"}}
46 | '1000 GB Free' { If($diskfreegb -le 1000){$Result = "FAIL"}Else{$Result = "PASS"}}
47 | '1500 GB Free' { If($diskfreegb -le 1500){$Result = "FAIL"}Else{$Result = "PASS"}}
48 | '2000 GB Free' { If($diskfreegb -le 2000){$Result = "FAIL"}Else{$Result = "PASS"}}
49 | default { 'PASS' }
50 | }
51 |
52 | return $result
53 |
54 | }
55 |
56 | Function Get-DiskHistoryLog
57 | {
58 | param(
59 | $IndividualDisk
60 | )
61 | $FileExists = ""
62 |
63 | $path = "C:\Windows\LTSVC\DiskHistoryLogs"
64 | If (!(test-path $path)) {
65 | New-Item -ItemType Directory -Force -Path $path | Out-Null
66 | }
67 |
68 | $TempLetterVar = $($disk.DeviceID).Replace(":","")
69 | $DiskSizeInMegabytes = $([math]::Round($Disk.size / 1024 / 1024))
70 |
71 | $PathToIndividualGrowthLog = "C:\Windows\LTSVC\DiskHistoryLogs\$TempLetterVar-$DiskSizeInMegabytes.txt"
72 | $CurrentDateTimeCorrectFormat = Get-Date -Format "MM-dd-yyyy"
73 | $FreeSpaceToAdd = $([math]::Round($IndividualDisk.FreeSpace / 1024 / 1024 / 1024))
74 |
75 | If(Test-Path $PathToIndividualGrowthLog )
76 | {
77 | $FileExists = $true
78 | }
79 | else {
80 | $FileExists = $false
81 | }
82 |
83 | $DiskArray = @()
84 | if ($FileExists) {
85 | Add-Content -Path $PathToIndividualGrowthLog -Value "$CurrentDateTimeCorrectFormat,$FreeSpaceToAdd"
86 | }
87 |
88 | if (!$FileExists) {
89 | New-Item -Path $PathToIndividualGrowthLog -ItemType File | Out-Null
90 | Add-Content -Path $PathToIndividualGrowthLog -Value "$CurrentDateTimeCorrectFormat,$FreeSpaceToAdd"
91 | }
92 |
93 | $DiskHistoryLogContent = Get-Content $PathToIndividualGrowthLog
94 |
95 | $NumberOfEntries = $DiskHistoryLogContent | Measure-Object | Select-Object -ExpandProperty Count
96 |
97 | #We need another in here to actually make some progress
98 | if ($NumberOfEntries -gt 30) {
99 | if ($NumberOfEntries -lt 2100) {
100 | foreach ($Line in $DiskHistoryLogContent) {
101 | $LineData = $Line -split(',')
102 | $Date = $LineData[0]
103 | $DateConverted =[datetime]::ParseExact($Date, "MM-dd-yyyy", $null)
104 | $FreeInGigabytes = $LineData[1]
105 |
106 | $myHashtable = @{
107 | Date = $Date
108 | FreeInGigabytes = $FreeInGigabytes
109 | DaysSince = $(New-TimeSpan -Start $DateConverted -End $(Get-Date).Date).Days
110 | }
111 | $myObject = New-Object -TypeName PSObject -Property $myHashtable
112 | $DiskArray += $myObject
113 | }
114 | }
115 | else {
116 | $FirstLine = $DiskHistoryLogContent | Select -First 1
117 | $LastLine = $DiskHistoryLogContent | Select -Last 1
118 |
119 | $FirstLineData = $FirstLine -split(',')
120 | $LastLineData = $LastLine -split(',')
121 |
122 | $FirstDate = $FirstLineData[0]
123 | $LastDate = $LastLineData[0]
124 |
125 | $FirstDateConverted =[datetime]::ParseExact($FirstDate, "MM-dd-yyyy", $null)
126 | $LastDateConverted =[datetime]::ParseExact($LastDate, "MM-dd-yyyy", $null)
127 |
128 | $FirstFreeInGigabytes = $FirstLineData[1]
129 | $LastFreeInGigabytes = $LastLineData[1]
130 |
131 | $myHashtable = @{
132 | Date = $FirstDate
133 | FreeInGigabytes = $FirstFreeInGigabytes
134 | DaysSince = $(New-TimeSpan -Start $FirstDateConverted -End $(Get-Date).Date).Days
135 | }
136 | $myObject = New-Object -TypeName PSObject -Property $myHashtable
137 | $DiskArray += $myObject
138 |
139 | $myObject = ""
140 | $myHashtable = ""
141 |
142 | $myHashtable = @{
143 | Date = $LastDate
144 | FreeInGigabytes = $LastFreeInGigabytes
145 | DaysSince = $(New-TimeSpan -Start $LastDateConverted -End $(Get-Date).Date).Days
146 | }
147 | $FreeInGigabytes = $LastFreeInGigabytes
148 |
149 | $myObject = New-Object -TypeName PSObject -Property $myHashtable
150 | $DiskArray += $myObject
151 | }
152 |
153 |
154 |
155 | #Get Maximum Days Value and try calculate a date
156 | $MaxDayDifference = ($DiskArray | measure-object -Property DaysSince -maximum).maximum
157 | $MinDayDifference = ($DiskArray | measure-object -Property DaysSince -Minimum).Minimum
158 | $TotalDayDifference = ($MaxDayDifference-$MinDayDifference)
159 | $FreeSpaceAtOldestDate = $DiskArray | Where-Object {$_.DaysSince -eq $MaxDayDifference} | Select-Object -first 1 -ExpandProperty FreeInGigabytes
160 | $FreeSpaceAtNewestDate = $DiskArray | Where-Object {$_.DaysSince -eq $MinDayDifference} | Select-Object -first 1 -ExpandProperty FreeInGigabytes
161 | $TotalFreeDifference = ($FreeSpaceAtOldestDate-$FreeSpaceAtNewestDate)
162 | $DailyRateOfChangeInGB = $TotalFreeDifference / $TotalDayDifference
163 | $NumberOfDaysUntilPancaked = [math]::Round($FreeInGigabytes / $DailyRateOfChangeInGB)
164 |
165 | if (($NumberOfDaysUntilPancaked -lt 1) -or ($NumberOfDaysUntilPancaked -eq [System.Double]::PositiveInfinity) -or ($NumberOfDaysUntilPancaked -eq 'NaN') ) {
166 | Return "$($TempLetterVar): Negative or No Growth"
167 | }
168 | else {
169 | try {
170 | $DateOfPancake = (Get-Date).AddDays($NumberOfDaysUntilPancaked)
171 | Return "$($TempLetterVar): Date Full: $DateOfPancake"
172 | }
173 | catch {
174 | Return "$($TempLetterVar): Unknown date when full"
175 | }
176 |
177 | }
178 | }
179 | else {
180 | Return "$($TempLetterVar): Not Enough Data Points Yet"
181 | }
182 |
183 | }
184 |
185 | Function Get-DiskAlerts
186 | {
187 | param(
188 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
189 | [AllowEmptyString()]
190 | [string]$diska,
191 |
192 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
193 | [AllowEmptyString()]
194 | [string]$diskb,
195 |
196 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
197 | [AllowEmptyString()]
198 | [string]$diskc,
199 |
200 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
201 | [AllowEmptyString()]
202 | [string]$diskd,
203 |
204 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
205 | [AllowEmptyString()]
206 | [string]$diske,
207 |
208 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
209 | [AllowEmptyString()]
210 | [string]$diskf,
211 |
212 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
213 | [AllowEmptyString()]
214 | [string]$diskg,
215 |
216 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
217 | [AllowEmptyString()]
218 | [string]$diskh,
219 |
220 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
221 | [AllowEmptyString()]
222 | [string]$diski,
223 |
224 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
225 | [AllowEmptyString()]
226 | [string]$diskj,
227 |
228 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
229 | [AllowEmptyString()]
230 | [string]$diskk,
231 |
232 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
233 | [AllowEmptyString()]
234 | [string]$diskl,
235 |
236 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
237 | [AllowEmptyString()]
238 | [string]$diskm,
239 |
240 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
241 | [AllowEmptyString()]
242 | [string]$diskn,
243 |
244 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
245 | [AllowEmptyString()]
246 | [string]$disko,
247 |
248 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
249 | [AllowEmptyString()]
250 | [string]$diskp,
251 |
252 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
253 | [AllowEmptyString()]
254 | [string]$diskq,
255 |
256 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
257 | [AllowEmptyString()]
258 | [string]$diskr,
259 |
260 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
261 | [AllowEmptyString()]
262 | [string]$disks,
263 |
264 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
265 | [AllowEmptyString()]
266 | [string]$diskt,
267 |
268 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
269 | [AllowEmptyString()]
270 | [string]$disku,
271 |
272 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
273 | [AllowEmptyString()]
274 | [string]$diskv,
275 |
276 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
277 | [AllowEmptyString()]
278 | [string]$diskw,
279 |
280 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
281 | [AllowEmptyString()]
282 | [string]$diskx,
283 |
284 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
285 | [AllowEmptyString()]
286 | [string]$disky,
287 |
288 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
289 | [AllowEmptyString()]
290 | [string]$diskz,
291 |
292 | [Parameter(Mandatory=$false,ValueFromPipelineByPropertyName=$true)]
293 | [AllowEmptyString()]
294 | [string]$IgnoreRemovable,
295 |
296 | [Parameter(Mandatory=$false,ValueFromPipelineByPropertyName=$true)]
297 | [AllowEmptyString()]
298 | [string]$IgnoreNetworkDrive,
299 |
300 | [Parameter(Mandatory=$false,ValueFromPipelineByPropertyName=$true)]
301 | [AllowEmptyString()]
302 | [string]$IgnoreCD,
303 |
304 | [Parameter(Mandatory=$false,ValueFromPipelineByPropertyName=$true)]
305 | [AllowEmptyString()]
306 | [string]$IgnoreFixedDisks
307 | )
308 |
309 | # Give us a way to exclude certain drive types
310 | $DrivesToMonitorArray = @()
311 |
312 | if ($IgnoreRemovable -eq "Yes") {
313 | $DrivesToMonitorArray += 2
314 | }
315 |
316 | if ($IgnoreNetworkDrive -eq "Yes") {
317 | $DrivesToMonitorArray += 4
318 | }
319 |
320 | if ($IgnoreCD -eq "Yes") {
321 | $DrivesToMonitorArray += 5
322 | }
323 |
324 | if ($IgnoreFixedDisks -eq "Yes") {
325 | $DrivesToMonitorArray += 3
326 | }
327 |
328 | $DisksWMI = get-WmiObject win32_logicaldisk | Where-Object {$DrivesToMonitorArray -notcontains $_.DriveType}
329 |
330 | if (($DisksWMI | Measure-Object | Select-Object -ExpandProperty Count) -eq 0) {
331 | Write-Output "No disks found to monitor"
332 | }
333 |
334 | $ResultArray = @()
335 | $HistoryLogArray = @()
336 |
337 | foreach ($disk in $diskswmi)
338 | {
339 | $DiskPercentageFree = ""
340 | $DiskFreeGB = ""
341 | $DiskUsedActual = ""
342 | $TempLetterVar = ""
343 | $TestFinal = ""
344 | $ErrorToDisplay = ""
345 |
346 | $DiskUsedActual = $disk.size - $disk.FreeSpace
347 |
348 | if ($Disk.FreeSpace -gt 0) {
349 | $DiskPercentageFree = [math]::Round(($Disk.FreeSpace / $disk.size) * 100)
350 | }
351 | else {
352 | $DiskPercentageFree = 0.1
353 | }
354 |
355 | $DiskFreeGB = $([math]::Round($Disk.FreeSpace / 1024 / 1024 / 1024))
356 | $TempLetterVar = $($disk.DeviceID).Replace(":","")
357 | $ToUse = Get-Variable "disk$TempLetterVar" -ValueOnly
358 |
359 | $TestFinal = Get-ThresholdPassOrFail -testmethod $ToUse -diskfreepercent $DiskPercentageFree -diskfreegb $DiskFreeGB
360 |
361 | $HistoryLogReturn = Get-DiskHistoryLog -IndividualDisk $disk
362 | $HistoryLogArray += $HistoryLogReturn
363 |
364 | if ($TestFinal -eq 'PASS') {
365 | $ResultArray += "$($Disk.DeviceID) - $TestFinal"
366 | }
367 | else {
368 | if ($ToUse -match 'gb') {
369 | $ErrorToDisplay = "Disk Free Space $DiskFreeGB GB"
370 | }
371 | else {
372 | $ErrorToDisplay = "Disk Free Percentage $DiskPercentageFree"
373 | }
374 |
375 | $ResultArray += "$($Disk.DeviceID) - $TestFinal - EDF Threshold Is $ToUse - $ErrorToDisplay"
376 | }
377 | }
378 |
379 | #Build Final Result
380 | $ResultArrayFinal = ($ResultArray) -join ","
381 | $HistoryLogFinal = ($HistoryLogArray) -join ","
382 | Return "$ResultArrayFinal ||| $HistoryLogFinal"
383 |
384 | }
385 |
386 | # Test Command
387 | #Get-DiskAlerts -diska "a" -diskb "b" -diskc "100 GB Free" -diskd "d" -diske "e" -diskf "f" -diskg "g" -diskh "h" -diski "i" -diskj "j" -diskk "k" -diskl "l" -diskm "m" -diskn "n" -disko "o" -diskp "p" -diskq "q" -diskr "r" -disks "s" -diskt "t" -disku "u" -diskv "v" -diskw "w" -diskx "x" -disky "y" -diskz "z"
--------------------------------------------------------------------------------
/Disk Alert Thresholds with Custom EDFs/README.txt:
--------------------------------------------------------------------------------
1 | DO NOT USE! STILL BEING DEVELOPED!
--------------------------------------------------------------------------------
/Find-MicrosoftSecurityScannerViolations.ps1:
--------------------------------------------------------------------------------
1 | [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
2 |
3 | $EXEPath = "$Env:Temp\MSERT.exe"
4 |
5 | function Get-MSERTExecutable {
6 | if (Test-Path $EXEPath) {
7 | # Delete the previous executable if it exists
8 | try {
9 | Write-Debug "Attempting to delete $EXEPath"
10 | Remove-Item $EXEPath -Force -ErrorAction Stop
11 | }
12 | catch {
13 | Write-Output "ERROR: Unable to delete $EXEPath, script terminating with error $($_.Exception.Message)"
14 | throw
15 | }
16 |
17 | }
18 | else {
19 | Write-Debug "EXE does not exist in $EXEPath - continuing"
20 | }
21 |
22 | # Get the download
23 | Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/?LinkId=212732' -OutFile $EXEPath
24 | }
25 |
26 | function Remove-MSERTDebugLog {
27 | if (Test-Path 'C:\Windows\Debug\msert.log') {
28 | try {
29 | Write-Debug "Attempting to delete C:\Windows\Debug\msert.log"
30 | Remove-Item 'C:\Windows\Debug\msert.log' -Force -ErrorAction Stop
31 | }
32 | catch {
33 | Write-Output "ERROR: Unable to delete the msert.log file, scripting terminating with error $($_.Exception.Message)"
34 | throw
35 | }
36 | }
37 | }
38 |
39 | function Remove-MSERTExecutable {
40 | if (Test-Path $EXEPath) {
41 | try {
42 | Write-Debug "Attempting to delete $EXEPath"
43 | Remove-Item $EXEPath -Force -ErrorAction Stop
44 | }
45 | catch {
46 | Write-Output "ERROR: Unable to delete $EXEPath, script terminating with error $($_.Exception.Message)"
47 | throw
48 | }
49 |
50 | }
51 | }
52 |
53 | function Start-MSERTScanner {
54 | $Arguments = "/Q /N"
55 | $proc = Start-Process $EXEPath $Arguments -PassThru
56 | try {
57 | $proc | Wait-Process -Timeout 1800 -ErrorAction Stop
58 | }
59 | catch [TimeoutException] {
60 | Write-Error -Message "WARNING: Microsoft security scanner took longer than 30 minutes so script terminated: $($_.Exception.Message)" -Exception $_.Exception
61 | throw
62 | }
63 | Write-Debug "MSERT Scanner has finished"
64 | }
65 |
66 | function Test-MSERTLog {
67 | $LogFile = Get-Content 'C:\Windows\debug\msert.log'
68 |
69 | if ($LogFile -like '*No Infection found.*') {
70 | $ScriptNoInfectionsFound = $true
71 | }
72 | else {
73 | $ScriptNoInfectionsFound = $false
74 | }
75 |
76 | if ($ScriptNoInfectionsFound) {
77 | return "SUCCESS: No infection found $($LogFile)"
78 | }
79 | else {
80 | return "CRITICAL: Potential Infections found. $($LogFile)"
81 | }
82 | }
83 |
84 | Get-MSERTExecutable
85 | Remove-MSERTDebugLog
86 | Start-MSERTScanner
87 | Test-MSERTLog
88 | Remove-MSERTExecutable
89 |
--------------------------------------------------------------------------------
/InstallerDetection.ps1:
--------------------------------------------------------------------------------
1 | <#
2 | .SYNOPSIS
3 | WPF Application to analyze an installer and determine its packaging technology and subsequently its silent switches.
4 |
5 | .DESCRIPTION
6 | This script creates a WPF GUI application that lets the user select an executable or MSI file.
7 | It then analyzes the file to detect the installer type and displays the result along with
8 | the silent install switches for that installer type.
9 |
10 | .NOTES
11 | Author: Gavin Stone + OpenAI's ChatGPT
12 | Date: 7th October 2024
13 | #>
14 |
15 | Add-Type -AssemblyName PresentationFramework
16 |
17 | # XAML UI Definition
18 | $XAML = @"
19 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | "@
42 |
43 | # Load the XAML
44 | [xml]$XAMLReader = $XAML
45 | $reader = New-Object System.Xml.XmlNodeReader $XAMLReader
46 | $Window = [Windows.Markup.XamlReader]::Load($reader)
47 |
48 | # Access UI Elements
49 | $txtFilePath = $Window.FindName("txtFilePath")
50 | $btnBrowse = $Window.FindName("btnBrowse")
51 | $txtResult = $Window.FindName("txtResult")
52 | $btnAnalyze = $Window.FindName("btnAnalyze")
53 |
54 | # Browse Button Click Event
55 | $btnBrowse.Add_Click({
56 | $dialog = New-Object Microsoft.Win32.OpenFileDialog
57 | $dialog.Filter = "Installer Files (*.exe;*.msi)|*.exe;*.msi|All Files (*.*)|*.*"
58 | $dialog.Title = "Select an Installer File"
59 | if ($dialog.ShowDialog()) {
60 | $txtFilePath.Text = $dialog.FileName
61 | $txtResult.Text = ""
62 | }
63 | })
64 |
65 | # Analyze Button Click Event
66 | $btnAnalyze.Add_Click({
67 | $FilePath = $txtFilePath.Text
68 | if (-not (Test-Path -Path $FilePath)) {
69 | [System.Windows.MessageBox]::Show("Please select a valid installer file.", "File Not Found", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
70 | return
71 | }
72 |
73 | # Initialize findings and silent switches using lists
74 | $findings = [System.Collections.Generic.List[string]]::new()
75 | $silentSwitches = [System.Collections.Generic.List[string]]::new()
76 |
77 | # Get file extension
78 | $fileExtension = [System.IO.Path]::GetExtension($FilePath).ToLower()
79 |
80 | # Silent install switches for installers
81 | $silentSwitchesDict = @{
82 | "Inno Setup" = "Silent Install Switches: /SILENT or /VERYSILENT"
83 | "NSIS" = "Silent Install Switch: /S"
84 | "InstallShield" = "Silent Install Switch: /S or /SILENT"
85 | "WiX" = "Silent Install Switches: /quiet or /qn"
86 | "WiX Standard Bootstrapper" = "Silent Install Switches: /quiet or /passive"
87 | "7-Zip SFX" = "May not support silent install switches."
88 | "Advanced Installer" = "Silent Install Switch: /exenoui /qn"
89 | "Wise Installer" = "Silent Install Switch: /S"
90 | "SFXCAB" = "May not support silent install switches."
91 | "MSI Installer" = "Silent Install Switches: /quiet or /qn"
92 | }
93 |
94 | $installerDetected = $false
95 |
96 | if ($fileExtension -eq ".msi") {
97 | # MSI File Detected
98 | $findings.Add("MSI Installer package detected based on file extension.")
99 | if ($silentSwitchesDict.ContainsKey("MSI Installer")) {
100 | $silentSwitches.Add($silentSwitchesDict["MSI Installer"])
101 | }
102 | $installerDetected = $true
103 | } else {
104 | # Process executable files
105 | # Get file version info
106 | try {
107 | $versionInfo = (Get-Item -Path $FilePath).VersionInfo
108 | } catch {
109 | # Ignore errors
110 | }
111 |
112 | # Check version info for clues
113 | if ($versionInfo) {
114 | if ($versionInfo.ProductName -match "Inno Setup") {
115 | $findings.Add("Inno Setup installer detected via ProductName.")
116 | if ($silentSwitchesDict.ContainsKey("Inno Setup")) {
117 | $silentSwitches.Add($silentSwitchesDict["Inno Setup"])
118 | }
119 | $installerDetected = $true
120 | }
121 | if ($versionInfo.CompanyName -match "Nullsoft") {
122 | $findings.Add("NSIS installer detected via CompanyName.")
123 | if ($silentSwitchesDict.ContainsKey("NSIS")) {
124 | $silentSwitches.Add($silentSwitchesDict["NSIS"])
125 | }
126 | $installerDetected = $true
127 | }
128 | if ($versionInfo.ProductName -match "InstallShield") {
129 | $findings.Add("InstallShield installer detected via ProductName.")
130 | if ($silentSwitchesDict.ContainsKey("InstallShield")) {
131 | $silentSwitches.Add($silentSwitchesDict["InstallShield"])
132 | }
133 | $installerDetected = $true
134 | }
135 | if ($versionInfo.ProductName -match "WiX Toolset") {
136 | $findings.Add("WiX installer detected via ProductName.")
137 | if ($silentSwitchesDict.ContainsKey("WiX")) {
138 | $silentSwitches.Add($silentSwitchesDict["WiX"])
139 | }
140 | $installerDetected = $true
141 | }
142 | if ($versionInfo.InternalName -match "\.msi") {
143 | $findings.Add("MSI Installer package detected via InternalName.")
144 | if ($silentSwitchesDict.ContainsKey("MSI Installer")) {
145 | $silentSwitches.Add($silentSwitchesDict["MSI Installer"])
146 | }
147 | $installerDetected = $true
148 | }
149 | }
150 |
151 | # Define patterns to search for in the binary content
152 | $patterns = @{
153 | "Inno Setup" = "Inno Setup"
154 | "NSIS" = "Nullsoft Install System"
155 | "InstallShield" = "InstallShield"
156 | "WiX" = "BootstrapperCore"
157 | "WiX Standard Bootstrapper" = "WixToolset"
158 | "7-Zip SFX" = "7-Zip SFX"
159 | "Advanced Installer" = "Advanced Installer"
160 | "Wise Installer" = "Wise Installation System"
161 | "SFXCAB" = "MakeCab"
162 | "MSI Installer" = "MSIEXEC"
163 | }
164 |
165 | # Read up to 10 MB of the file
166 | $maxBytesToRead = 10MB
167 | try {
168 | $fileStream = [System.IO.File]::OpenRead($FilePath)
169 | $bufferSize = [Math]::Min($maxBytesToRead, $fileStream.Length)
170 | $buffer = New-Object byte[] $bufferSize
171 | $bytesRead = $fileStream.Read($buffer, 0, $bufferSize)
172 | $fileStream.Close()
173 | } catch {
174 | [System.Windows.MessageBox]::Show("Error reading file: $_", "Error", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
175 | return
176 | }
177 |
178 | # Convert bytes to ASCII
179 | $contentAscii = [System.Text.Encoding]::ASCII.GetString($buffer, 0, $bytesRead)
180 |
181 | # Search for patterns
182 | foreach ($key in $patterns.Keys) {
183 | $pattern = [regex]::Escape($patterns[$key])
184 | if ($contentAscii -match $pattern) {
185 | $findings.Add("$key installer detected via binary pattern.")
186 | if ($silentSwitchesDict.ContainsKey($key)) {
187 | $silentSwitches.Add($silentSwitchesDict[$key])
188 | }
189 | $installerDetected = $true
190 | }
191 | }
192 |
193 | # Enhanced MSI detection
194 | # Check for MSI file signature (OLE Compound File)
195 | $msiSignature = [byte[]](0xD0,0xCF,0x11,0xE0,0xA1,0xB1,0x1A,0xE1)
196 | if ($buffer[0..7] -eq $msiSignature) {
197 | $findings.Add("MSI Installer package detected via file signature.")
198 | if ($silentSwitchesDict.ContainsKey("MSI Installer")) {
199 | $silentSwitches.Add($silentSwitchesDict["MSI Installer"])
200 | }
201 | $installerDetected = $true
202 | } else {
203 | # Check if the executable contains an embedded MSI
204 | $msiPattern = [System.Text.Encoding]::ASCII.GetBytes("MSI")
205 | $msiIndex = [Array]::IndexOf($buffer, $msiPattern[0])
206 | while ($msiIndex -ge 0 -and $msiIndex -lt ($buffer.Length - 2)) {
207 | if ($buffer[$msiIndex..($msiIndex+2)] -eq $msiPattern) {
208 | $findings.Add("Embedded MSI Installer package detected within the executable.")
209 | if ($silentSwitchesDict.ContainsKey("MSI Installer")) {
210 | $silentSwitches.Add($silentSwitchesDict["MSI Installer"])
211 | }
212 | $installerDetected = $true
213 | break
214 | }
215 | $msiIndex = [Array]::IndexOf($buffer, $msiPattern[0], $msiIndex + 1)
216 | }
217 | }
218 | }
219 |
220 | # Prepare result text
221 | $resultText = "Analyzed File:`n$FilePath`n`n"
222 | if ($findings.Count -gt 0) {
223 | $resultText += "Analysis Results:`n"
224 | foreach ($finding in $findings | Select-Object -Unique) {
225 | $resultText += "- $finding`n"
226 | }
227 | if ($silentSwitches.Count -gt 0) {
228 | $resultText += "`nSilent Install Switches:`n"
229 | foreach ($switch in ($silentSwitches | Select-Object -Unique)) {
230 | $resultText += "- $switch`n"
231 | }
232 | }
233 | } else {
234 | $resultText += "No known installer signatures detected in the file."
235 | }
236 |
237 | # Display the result
238 | $txtResult.Text = $resultText
239 | })
240 |
241 | # Show the Window
242 | $Window.ShowDialog() | Out-Null
243 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/Ninja-MusicalLock.ps1:
--------------------------------------------------------------------------------
1 | # Author: Gavin Stone (NinjaOne)
2 | # Date: 6th March 2025
3 | # Description: Sarcasm is prevalent. This script creates a simple piano UI in PowerShell. You can play notes and submit a song to see if you played it correctly. Spoiler: you probably didn't.
4 |
5 | # Oh joy, let's load those "essential" assemblies because PowerShell just can't live without them.
6 | Add-Type -AssemblyName System.Windows.Forms
7 | Add-Type -AssemblyName System.Drawing
8 |
9 | # Global ArrayList to record your oh-so-masterful note presses.
10 | $global:songNotes = New-Object System.Collections.ArrayList
11 |
12 | # Creating the form because apparently our musical genius needs a stage.
13 | $form = New-Object System.Windows.Forms.Form
14 | $form.Text = "PowerShell UI Piano from Hell"
15 |
16 | # Calculating form width: 7 white keys at 60 pixels each plus a "generous" 40 pixel margin—because why not?
17 | $width = (7 * 60) + 40
18 |
19 | # Pumping up the form height to squeeze in that Submit button
20 | $form.Size = New-Object System.Drawing.Size($width, 300)
21 | $form.StartPosition = "CenterScreen" # Obviously, the center is where all the magic happens.
22 |
23 | # Defining the white keys (C, D, E, F, G, A, B) with frequencies—because you can't play piano without them.
24 | $whiteKeys = @(
25 | @{ Name = "C"; Frequency = 262 },
26 | @{ Name = "D"; Frequency = 294 },
27 | @{ Name = "E"; Frequency = 330 },
28 | @{ Name = "F"; Frequency = 349 },
29 | @{ Name = "G"; Frequency = 392 },
30 | @{ Name = "A"; Frequency = 440 },
31 | @{ Name = "B"; Frequency = 494 }
32 | )
33 |
34 | # Defining the black keys (C#, D#, F#, G#, A#) with frequencies.
35 | # The 'Left' property gives them their oh-so-important horizontal placement on the form.
36 | $blackKeys = @(
37 | @{ Name = "C#"; Frequency = 277; Left = 40 },
38 | @{ Name = "D#"; Frequency = 311; Left = 100 },
39 | # Because apparently, there’s no black key between E and F—nature's cruel joke.
40 | @{ Name = "F#"; Frequency = 370; Left = 220 },
41 | @{ Name = "G#"; Frequency = 415; Left = 280 },
42 | @{ Name = "A#"; Frequency = 466; Left = 340 }
43 | )
44 |
45 | # Function to play a note and record it—yes, it both sounds off and remembers your "talent."
46 | function Play-Note {
47 | param($button)
48 | $noteName = $button.Text
49 | $frequency = $button.Tag
50 | Write-Host "Playing note: $noteName"
51 | # Recording the note because memory is everything—sorry, not sorry.
52 | $global:songNotes.Add($noteName) | Out-Null
53 | # Making sure the frequency is valid before we subject your ears to the beep.
54 | if ($frequency -and $frequency -ge 37 -and $frequency -le 32767) {
55 | [console]::Beep([int]$frequency, 500)
56 | }
57 | }
58 |
59 | # Creating and adding the white key buttons—because buttons are the new black (or white, in this case).
60 | for ($i = 0; $i -lt $whiteKeys.Count; $i++) {
61 | $key = $whiteKeys[$i]
62 | $btn = New-Object System.Windows.Forms.Button
63 | $btn.Text = $key.Name
64 | $btn.Tag = $key.Frequency
65 | $btn.Width = 60
66 | $btn.Height = 200
67 | $posX = $i * 60 # Pre-calculating X position because we’re too advanced for magic numbers.
68 | $btn.Location = New-Object System.Drawing.Point($posX, 0)
69 | $btn.BackColor = [System.Drawing.Color]::White
70 | $btn.ForeColor = [System.Drawing.Color]::Black
71 | $btn.FlatStyle = 'Flat'
72 | $btn.Add_Click({ param($sender, $args) Play-Note $sender })
73 | $form.Controls.Add($btn)
74 | }
75 |
76 | # Creating and adding the black key buttons—these divas need to be in front, obviously.
77 | foreach ($key in $blackKeys) {
78 | $btn = New-Object System.Windows.Forms.Button
79 | $btn.Text = $key.Name
80 | $btn.Tag = $key.Frequency
81 | $btn.Width = 40
82 | $btn.Height = 120
83 | $btn.Location = New-Object System.Drawing.Point($key.Left, 0)
84 | $btn.BackColor = [System.Drawing.Color]::Black
85 | $btn.ForeColor = [System.Drawing.Color]::White
86 | $btn.FlatStyle = 'Flat'
87 | $form.Controls.Add($btn)
88 | $btn.BringToFront() # Because these keys think they're the star of the show.
89 | $btn.Add_Click({ param($sender, $args) Play-Note $sender })
90 | }
91 |
92 | # Creating and adding the "Submit Song" button—time to judge your performance!
93 | $submitBtn = New-Object System.Windows.Forms.Button
94 | $submitBtn.Text = "Submit Song"
95 | $submitBtn.Width = 100
96 | $submitBtn.Height = 30
97 |
98 | # Placing the button centered at the bottom (beneath the keys) because symmetry is everything.
99 | $submitBtn.Location = New-Object System.Drawing.Point(([math]::Round(($width - 100) / 2)), 210)
100 |
101 | $submitBtn.Add_Click({
102 | # Defining the correct song sequence, as if there’s any room for creative interpretation.
103 | $correctSong = @("D", "C#", "D", "C#", "D", "D", "C#", "D", "E", "F#", "G", "A", "G#", "A", "G#", "A")
104 | # Comparing your recorded song with the "perfect" sequence.
105 | if (($global:songNotes -join ",") -eq ($correctSong -join ",")) {
106 | [System.Windows.Forms.MessageBox]::Show("Access Granted", "Result")
107 | Write-Host "Congratulations! You played the correct musical tune. Access Granted"
108 | } else {
109 | [System.Windows.Forms.MessageBox]::Show("Access Denied", "Result")
110 | Write-Host "ACCESS DENIED!!!!"
111 | }
112 | $form.Close()
113 | })
114 | $form.Controls.Add($submitBtn)
115 |
116 | # Activating and running the form because apparently, we have nothing better to do.
117 | $form.Add_Shown({ $form.Activate() })
118 | [System.Windows.Forms.Application]::Run($form)
119 |
--------------------------------------------------------------------------------
/Probe - Clear Local Detection Templates/Clear detection templates from local agent on Probe.ps1:
--------------------------------------------------------------------------------
1 | # "%windir%\system32\WindowsPowerShell\v1.0\powershell.exe" "(new-object Net.WebClient).DownloadString('http://bit.ly/2qAOG0V') | iex;
2 |
3 | # Stop the services
4 | Stop-Service -Name "LTSvcMon" -Force
5 | Stop-Service -Name "LTService" -Force
6 |
7 | # Remove registry keys
8 | Remove-Item -Path "HKLM:\Software\LabTech\ProbeService\CollectionTemplates" -Recurse
9 | Remove-Item -Path "HKLM:\Software\LabTech\ProbeService\DeviceLibrary" -Recurse
10 | Remove-Item -Path "HKLM:\Software\LabTech\ProbeService\DetectionTemplates" -Recurse
11 | Remove-Item -Path "HKLM:\Software\LabTech\Service\CollectionTemplates" -Recurse
12 | Remove-Item -Path "HKLM:\Software\LabTech\Service\DeviceLibrary" -Recurse
13 | Remove-Item -Path "HKLM:\Software\LabTech\Service\DetectionTemplates" -Recurse
14 |
15 | # Remove local files
16 | Remove-Item -Path "C:\Windows\LTSVC\Configs.gz" -Force
17 | Remove-Item -Path "C:\Windows\LTSVC\databases\Datacollectors.db" -Force
18 |
19 | # Start Services
20 | Start-Service -Name "LTSvcMon"
21 | Start-Service -Name "LTService"
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Gavsto-Public-Scripts
2 | A collection of all public scripts created by Gavsto
3 |
--------------------------------------------------------------------------------
/Remote Monitor - Powershell CPU Performance Degraded Test/Check CPU Performance Report top 5 processes and percentage.ps1:
--------------------------------------------------------------------------------
1 | "%windir%\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -command "& {$CPUTotalErrorThreshold=70;[int]$hour = get-date -format HH;If($hour -lt 8 -or $hour -gt 17){$InBusinessHours = $false}Else{$InBusinessHours = $true};$CpuCores = (Get-WMIObject Win32_ComputerSystem).NumberOfLogicalProcessors;$CPUValues = (Get-Counter \"\Process(*)\% Processor Time\" -ErrorAction SilentlyContinue).CounterSamples | Select InstanceName, @{Name=\"CPU\";Expression={[Decimal]::Round(($_.CookedValue / $CpuCores), 2)}} | where-object {($_.InstanceName -ne '_total') -and ($_.InstanceName -ne 'idle')} | sort cpu -Descending | select -First 5;$Total = ($CPUValues | Measure-Object 'CPU' -Sum).Sum;$ErrorNames = ($CPUValues | Select -ExpandProperty InstanceName) -join ',';$ErrorValues = ($CPUValues | Select -ExpandProperty CPU) -join ',';if (($total -gt $CPUTotalErrorThreshold) -and ($InBusinessHours)){Write-Output \"Error Top Processes Are $ErrorNames that uses $ErrorValues % respectively\"}Else{Write-Output \"$Total % - CPU Healthy\"}; }"
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Run Script from Github.ps1:
--------------------------------------------------------------------------------
1 | # Create a new instance of the WebClient class for handling HTTP requests
2 | $webClient = New-Object System.Net.WebClient
3 |
4 | # Add the required headers for authentication and content type
5 | $authToken = 'token NotGettingMeLuckyCharms' # Replace with your actual token
6 | $webClient.Headers.Add('Authorization', $authToken)
7 | $webClient.Headers.Add('Accept', 'application/vnd.github.v3.raw')
8 |
9 | # Define the URL of the PowerShell script to be downloaded and executed
10 | $scriptUrl = 'https://raw.githubusercontent.com/yourps1.ps1'
11 |
12 | # Download the script content from the specified URL
13 | $scriptContent = $webClient.DownloadString($scriptUrl)
14 |
15 | # Execute the downloaded script content
16 | Invoke-Expression $scriptContent
17 |
--------------------------------------------------------------------------------
/Running as a user in an Automate Script/Example - Running as User.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 | 6285
9 | 192
10 | Example - Running as User
11 | Example - Running as User
12 | 0,
13 | 0,
14 | 1
15 | 0
16 | 0
17 | 0
18 | H4sIAAAAAAAEAFWPQQrCMBRE94J3yAEa+n9sqi2fgKgIohst7tMmQjZpSRuwt5cWhboaZoY3MHR1jfW9PepBK6rGziqkdFa6R39oox9sUEDpwtHp3bkwMVZV0fZGjwm7aB91GBnmCROAO4YliDIDtr9RugDo0QTXDU8betf6afk/+Pbn6IySGchabBr+0rLgiHbLdQ2CA6CUJpdYgPnxM0Dp8s969QHXqj7L3wAAAA==
19 | H4sIAAAAAAAEAOVbXW/bNhR9H7D/wBXIPoA6tuQ4XbLAQ5sobjA3NuxkXQEDBS1fy0IkUiOpqMaw/75LSnId1zGS1oomJy/xJSlaOiTPPYeUT4au8CN1RhVtf/8dISdpLE2AofNJCaprz30IJpLU84o+FTQEBWKprBPwMQ2WCtLO/sRGPmdt66R+t+BOq07sT9qtg0ZrbDfd2pS2jmqWBa9qdNywa42G1WpNDlvWUWOS92IuMPdcX77prLuhgmjxFK9dld1A9ikrP4+ZiS8mum4pWn5Ia+Wh7ZW4uRIfrMStJTy4UO0G3q/+n5WdcqZ8FoMuX3zO6nqy64e+uST/mNVcsAkwRc3DYO1yuAzJZxQ2wGJvgqV5dD8w7Q4oSSi5pcKn4wCIS4MAJmTP5UzyAFgcjkHskRrxp0TNgMQSBPElCbjnYTvOTupZT88XYKv18JnXPr5GBC9k1+DXy+Gzvwkuq1Jw2ZvmY6OQ+WRvGyC7tAW7fv5sF65mpebTRrgueUISTWtMUxc5TWmNTLP2yH0e9ZlUhtxWWK8QbA92B9vag/5Oe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Q75O2uJaC/NspCAJ2Yo69Yacf+9g/nw8fT68HAubz6qMUfqZkm+jhUm2gBXpEG2q6U/bNebdIfX0A50k8geED6lEEwMpvip1NvlL43aMK+2XcdmX8+yKckmGfgG7+YvKuecQCeL5WYp44x3X39Kt9oP1vfOHzbe0/eOcPh606Z2672DhnHPo/iCP1gCFJSD8xm3BNsxTUrZQXtDe+Rts32shbBOYY/PCGzNp+dR7xI941QsQ37SAtl8kBzh/xhzgPp/g/5OwZpjks4Wzoeka4AYOYQRJ+iTwEm+gDdnKKnGk63leb2TCv9ZmfAPd/VhyTZzipxQSiKLtFXEGqWQRepHzn/KsokipViBqxSttGyNvnGM37nFagIBCrukISIrAJGmQuE8eT3b+Gi9vEZf/e5v68SK81KecuNb8Dr97uJO+NSI6vIhC+DXcx83botLJTdS/j9QHPrnq7EHxCsW21bhqtaRuyBqxHp7ykWY7VsVxmLsYy3NvM4+5nlf/EtppF1OQAA
20 | 1
21 | 5405b23c-fa59-11e7-ab02-00155d65190d
22 | 0
23 |
24 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/Spectre and Meltdown Solution/DATAVIEW - Spectre and Meltdown Assessment.sql:
--------------------------------------------------------------------------------
1 | DELETE FROM Dataviews WHERE name='Spectre and Meltdown Assessment' OR GUID='5d8e9f93-dfbf-4baa-bd28-e1244a0f62b0';
2 | INSERT IGNORE INTO Dataviews SET name='Spectre and Meltdown Assessment',
3 | fieldlist='CONVERT(IF(Computers.OS like \'%darwin%\'\;\;\'True\'\;\;\'False\') using utf8) as \`Agent Apple\`, Computers.AssetDate as \`Agent Asset Date\`, Computers.AssetTag as \`Agent Asset Tag\`, Computers.BiosFlash as \`Agent Bios\`, computers.Comment as \`Agent Comment\`, computers.\`name\` as \`Agent Computer Name\`, Computers.CPUUsage as \`Agent CPU Usage\`, CONVERT(IF((Computers.Flags & 1)=1\;\;\'True\'\;\;\'False\') using utf8) as \`Agent FasTalk\`, v_extradatacomputers.\`friendlyname\` as \`Agent Friendly Name\`, Computers.DateAdded as \`Agent Install Date\`, Computers.LocalAddress as \`Agent IP Address\`, CONVERT(IF(Computers.BiosFlash like \'%portable%\'\;\;\'True\'\;\;\'False\') using utf8) as \`Agent Laptop\`, Computers.LastContact as \`Agent Last Contact Date\`, Computers.LastInventory as \`Agent Last Inventory Date\`, Computers.MAC as \`Agent MAC\`, Computers.BiosName as \`Agent Mainboard\`, Computers.BiosMFG as \`Agent Manufacturer\`, Computers.MemoryAvail as \`Agent Memory Avail\`, Computers.TotalMemory as \`Agent Memory Total\`, CONVERT(IF(Computers.OS like \'%windows ce%\'\;\;\'True\'\;\;\'False\') using utf8) as \`Agent Mobile\`, Computers.OS as \`Agent OS\`, Computers.Version as \`Agent OS Version\`, Computers.RouterAddress as \`Agent Router Address\`, Computers.BiosVer as \`Agent Serial Number\`, CONVERT(IF(Computers.LastContact>DATE_ADD(NOW()\;\;interval -7 Minute)\;\;\'Online\'\;\;\'Offline\') using utf8) as \`Agent Status\`, CONVERT(IF(Clients.SupportMins>0\;\;Clients.SupportMins\;\;IF(Clients.SupportMins=0\;\;\'None\'\;\;\'Unlimited\')) using UTF8) as \`Client SupportMins\`, Convert(IF(Computers.OS like \'%server%\'\;\;\'Server\'\;\;IF(Computers.BiosFlash like \'%portable%\'\;\;\'Laptop\'\;\;\'WorkStation\')) using utf8) as \`Agent Type\`, CONVERT(IF(Computers.OS like \'%nix%\'\;\;\'True\'\;\;\'False\') using utf8) as \`Agent Unix\`, Computers.Uptime as \`Agent Uptime\`, Convert(IF(INSTR(Computers.Username\;\;\'\;\;\')>0\;\;LEFT(Computers.Username\;\;Instr(Computers.UserName\;\;\'\;\;\')-1)\;\;Computers.Username) using utf8) as \`Agent User\`, Computers.ServiceVersion as \`Agent Version\`, Computers.Windir as \`Agent Windows Directory\`, Computers.Domain as \`Agent Windows Domain\`, Computers.WindowsUpdate as \`Agent Windows Update\`, Clients.Name as \`Client\`, CONCAT(Clients.Name\;\;\'/\'\;\;Locations.Name) as \`Client Location\`, Clients.Address1 as \`Client Address\`, Clients.Address2 as \`Client Address2\`, Clients.City as \`Client City\`, Clients.State as \`Client State\`, Clients.Zip as \`Client Zipcode\`, Clients.ClientID as \`ClientID\`, Clients.Country as \`Clients Country\`, Clients.Fax as \`Clients Fax\`, Clients.Phone as \`Clients Phone\`, CONCAT(Contacts.FirstName\;\;\' \'\;\;Contacts.LastName) as \`Contact\`, Contacts.Address1 as \`Contact Address1\`, Contacts.Address2 as \`Contact Address2\`, Contacts.AIM as \`Contact AIM\`, Contacts.Cell as \`Contact Cell\`, Contacts.City as \`Contact City\`, Contacts.Email as \`Contact Email\`, Contacts.Fax as \`Contact Fax\`, Contacts.ICQ as \`Contact ICQ\`, Contacts.MSN as \`Contact MSN\`, Contacts.NetBiosName as \`Contact Netbios\`, Contacts.Pager as \`Contact Pager\`, Contacts.Phone as \`Contact Phone\`, Contacts.State as \`Contact State\`, Contacts.Zip as \`Contact Zipcode\`, Contacts.ContactID as \`ContactID\`, CONVERT(IF((Computers.Flags & 128)=128\;\;\'True\'\;\;\'False\') using utf8) as \`Is Probe\`, CONVERT(IF((Computers.Flags & 16)=16\;\;\'True\'\;\;\'False\') using utf8) as \`Is Master\`, Locations.Address as \`Location Address\`, Locations.City as \`Location City\`, Locations.Country as \`Location Country\`, Locations.Fax as \`Location Fax\`, Locations.Name as \`Location\`, Locations.Phone as \`Location Phone\`, Locations.Router as \`Location Router\`, Locations.RouterPort as \`Location Router Port\`, Locations.State as \`Location State\`, Locations.Zip as \`Location Zipcode\`, Locations.LocationID as \`LocationID\`, v_processors.\`cpu\` as \`Processor\`, v_processors.\`bits\` as \`Processor Bits\`,v_processors.\`clockspeed\` as \`Processor Clockspeed\`, v_processors.\`cores\` as \`Processor Cores\`, v_processors.\`manufacturer\` as \`Processor Manufacturer\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`av key set so updates can occur\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - AVCompatibilityFlagSet\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`windows support for bti disabled by system policy\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - BTIDisabledByPolicy\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`windows support for bti disabled by no hardware\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - BTIDisabledByUnsupportedHardware\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`hardware support for bti mitigation is present\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - BTIHardwarePresent\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`windows os support for bti mitigation is enabled\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - BTIOSSupportEnabled\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`windows os support for bti mitigation is present\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - BTIOSSupportPresent\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`windows os support for kernel vashadow is enabled\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - KVAShadowOSSupportEnabled\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`windows os support for kernel vashadow is present\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - KVAShadowOSSupportPresent\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`windows support for pcid optimization is enabled\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - KVAShadowPCIDEnabled\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`hardware requires kernel va shadowing\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - KVAShadowRequired\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;v_extradatacomputers.\`date of last run\`) as \`SM - Last Scan Date\`, IF(v_extradatacomputers.\`date of last run\` NOT REGEXP \'[0-9:\\.\\\\\\/]{4\;\;}\'\;\;\'Untested\'\;\;CONVERT(IF(v_extradatacomputers.\`is the machine secure?\`=1\;\;\'True\'\;\;\'False\') using utf8)) as \`SM - Machine Secure\`, CONVERT(REPLACE(REPLACE(v_extradatacomputers.\`suggested actions\`\;\;\'\\r\'\;\;\'\')\;\;\'\\n\'\;\;\'\;\;\') using utf8) as \`SM - Suggested Actions\`',
4 | columnlist='Client,Location,Agent Computer Name,Agent OS,Agent Manufacturer,Processor Manufacturer,SM - Machine Secure,SM - Last Scan Date,SM - AVCompatibilityFlagSet,SM - BTIHardwarePresent,SM - BTIOSSupportPresent,SM - BTIOSSupportEnabled,SM - BTIDisabledByPolicy,SM - BTIDisabledByUnsupportedHardware,SM - KVAShadowRequired,SM - KVAShadowOSSupportPresent,SM - KVAShadowOSSupportEnabled,SM - KVAShadowPCIDEnabled,SM - Suggested Actions',
5 | hiddenlist='',
6 | sqlbody='FROM (((((computers JOIN locations ON computers.locationid=locations.locationid) JOIN clients ON computers.clientid=clients.clientid) LEFT JOIN contacts ON computers.contactid=contacts.contactid) LEFT JOIN v_extradatacomputers ON computers.computerid=v_extradatacomputers.computerid) LEFT JOIN v_processors ON computers.computerid=v_processors.computerid)',
7 | idColumn='Computers.ComputerID',
8 | sqlwhere='',
9 | FolderID=(SELECT IFNULL(MAX(FolderID),0) FROM dataviewfolders WHERE `Name` LIKE 'Status%'),
10 | ClientLink='Computers.ClientID',
11 | ComputerLink='Computers.ComputerID',
12 | sortField='',
13 | groupField='Client',
14 | sortOrder='0',
15 | filterControl='Agent Apple,0,0,,1|Agent Mobile,0,0,,1|Agent Unix,0,0,,1|Agent Laptop,0,0,,1|Agent FasTalk,0,0,,1|',
16 | formatControl='Agent CPU Usage,A,,,2,,0,,%,3,90,1,FF0000,,1|Agent Memory Total,A,,,1,,0,,mb|Agent Memory Avail,A,,,1,,0,,mb|Agent Uptime,A,,,1,,0,, mins|Agent MAC,A,,,2,,0,,|SM - Machine Secure,A,,,0,,0,,,1,False,A,FF0000,,1,1,True,A,00FF00,,1|SM - KVAShadowRequired,A,,,0,,0,,|SM - BTIHardwarePresent,A,,,0,,0,,,1,True,A,00FF00,,1,1,False,A,FF0000,,1|SM - BTIOSSupportEnabled,A,,,0,,0,,,1,True,A,00FF00,,1,1,False,A,FF0000,,1|SM - BTIOSSupportPresent,A,,,0,,0,,,1,True,A,00FF00,,1,1,False,A,FF0000,,1|SM - KVAShadowOSSupportEnabled,A,,,0,,0,,,1,True,A,00FF00,,1,1,False,A,FF0000,,1|SM - KVAShadowOSSupportPresent,A,,,0,,0,,,1,True,A,00FF00,,1,1,False,A,FF0000,,1|SM - BTIDisabledByUnsupportedHardware,A,,,0,,0,,,1,True,A,FF0000,,1,1,False,A,00FF00,,1|SM - BTIDisabledByPolicy,A,,,0,,0,,,1,True,A,FF0000,,1,1,False,A,00FF00,,1|SM - KVAShadowPCIDEnabled,A,,,0,,0,,,1,True,A,00FF00,,1,1,False,A,FF0000,,1|SM - AVCompatibilityFlagSet,A,,,0,,0,,,1,True,A,00FF00,,1,1,False,A,FF0000,,1|',
17 | LocationLink='Computers.LocationID',
18 | iconControl='14|',
19 | SystemPermission='0',
20 | UserClassName='',
21 | GUID='5d8e9f93-dfbf-4baa-bd28-e1244a0f62b0',
22 | SystemPermissionHigh='0';
23 | CALL v_extradata(1,'Computers');
24 |
--------------------------------------------------------------------------------
/Spectre and Meltdown Solution/README.md:
--------------------------------------------------------------------------------
1 | # ConnectWise-Automate-Meltdown-and-Spectre-Detection-Scripts
2 |
3 | - Adapted Powershell Script to extract fields into EDFs within ConnectWise Automate. If you have problems generating the EDFs then import the XML twice.
4 | - Three registry add scripts thanks to @snix
5 | - Dataview contributed by @DarrenWhite99, with appreciation to #labtech-security in LabTechGeek Slack
6 | - Only the .XML is needed - this has the .PS1 included here attached within it.
7 | - This should work on any Machine with Powershell 2 or above.
8 | - Thank you to @kgrube and @Matthew for their significant input into this ReadMe
9 |
10 | ## Usage
11 |
12 | 1) Download the latest release from [here](https://github.com/gavsto/ConnectWise-Automate-Meltdown-and-Spectre-Detection-Scripts/releases/latest).
13 | 2) Import XML Scripts (Meltdown and Spectre - Detection ConnectWise Automate Script.xml)
14 | - Twice; if you're still having problems reload the system cache and try again
15 | 3) Import the SQL Dataview file (DATAVIEW - Spectre and Meltdown Assessment.sql).
16 | - This will also trigger a rebuild of the computer EDF table which should help make EDF's available.
17 | 4) Reload System Cache, then verify EDFs have been created by opening an Agent, going to EDFs, going to the Meltdown and Spectre Detection Section. Make sure EDFs are all there.
18 | 5) Run the script (by default, this imports into Scripts > Meltdown and Spectre Detection), against an agent, which will populate the EDFs
19 |
20 | As per the attached license, THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. This exploit/bug is complex and multi-layered.
21 |
22 | ## Scripts
23 |
24 | | Script | Description |
25 | | --- | --- |
26 | | Meltdown and Spectre - Detection ConnectWise Automate Script | Powershell script runner, populates EDFs |
27 | | Meltdown and Spectre - Enable Hyper-V Mitigations for VMs | Enable [Hyper-V Host mitigation](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/CVE-2017-5715-and-hyper-v-vms) |
28 | | Meltdown and Spectre - Enable Local Mitigations | Enable [Local mitigation](https://support.microsoft.com/sq-al/help/4072698/windows-server-guidance-to-protect-against-the-speculative-execution) |
29 | | Meltdown and Spectre - Set Allow Reg Key for Update | Set [ALLOW REGKEY](https://support.microsoft.com/en-us/help/4056891) to allow patch to install |
30 |
31 |
32 | ## Extra Data Fields
33 |
34 | | Field | Description |
35 | | --- | --- |
36 | | Is The Machine Secure? | Will only tick when all other conditions are met and the machine is deemed secure |
37 | | Suggested Actions | Output from powershell suggesting next actions |
38 | | Date of Last Run | Date the detection in the script last ran |
39 | | AV Key Set so Updates Can Occur | The registry key allowing for the MS updates to be detected is set so updates should detect when next scanned |
40 | | Hardware requires kernel VA Shadowing | This will be True for all CPU architecture vulnerable to Meltdown i.e. Intel. It will show as False if not, i.e. on an AMD based system |
41 | | Hardware Support for BTI Mitigation is Present | This indicates if the required firmware/bios update has occurred to expose the new MSR’s into OS. Without the firmware, no Spectre mitigations can be enabled. |
42 | | Windows OS Support for BTI Mitigation is Enabled | Simple indicates if mitigation is active (True) or inactive (False). This will depend on the other settings and is not a configurable. |
43 | | Windows OS Support for BTI Mitigation is Present | If true, the relevant security patch has been deployed. If false, the patch is missing or reboot has not taken place |
44 | | Windows OS Support for Kernal VAShadow is Enabled | Will be True if the relevant registry keys have been “enabled” (post reboot), if not will show False. |
45 | | Windows OS Support for Kernal VAShadow is Present | Will be True if the relevant Microsoft Windows patch has been installed (post reboot). If patch has not been installed, it will be False. |
46 | | Windows Support for BTI Disabled by No Hardware | Will be True if no microcode update has been performed on the system. Microcode (firmware/bios) is required to add the relevant values relative to Meltdown |
47 | | Windows Support for BTI Disabled by System Policy | Will be True if the mitigation registry keys have been set to disable, otherwise should read false. |
48 | | Windows support for PCID optimization is enabled | Will only show once machine has been patched. PCID is not required in order for mitigations to work, but when present and active can help by reducing performance deg, though this is workload dependent. |
49 |
50 | ## Patches
51 |
52 | | Patch | Description | OS |
53 | | --- | --- | --- |
54 | | [KB4056897](https://support.microsoft.com/en-us/help/4056897/windows-7-update-kb4056897) | Security Only | Win7, Server 2008 R2 |
55 | | [KB4056894](https://support.microsoft.com/en-us/help/4056894) | Rollup | Win7, Server 2008 R2 |
56 | | [KB4056898](https://support.microsoft.com/en-us/help/4056898/windows-81-update-kb4056898) | Security Only | Win8.1, Server 2012 R2 |
57 | | [KB4056895](https://support.microsoft.com/en-us/help/4056895/windows-81-update-kb4056895) | Rollup | Win8.1, Server 2012 R2 |
58 | | [KB4056892](https://support.microsoft.com/en-us/help/4056892/windows-10-update-kb4056892) | Rollup | Win10 v1709 |
59 | | [KB4056891](https://support.microsoft.com/en-us/help/4056891) | Rollup | Win10 v1703 |
60 | | [KB4056890](https://support.microsoft.com/en-us/help/4056890/windows-10-update-kb4056890) | Rollup | Win10 v1607, Server 2016 |
61 | | [KB4056893](https://support.microsoft.com/en-us/help/4056893/windows-10-update-kb4056893) | Rollup | Win10 v1507 |
62 | | TBA | | Server 2012 |
63 | | TBA | | Server 2008 |
64 |
65 | ## Further Reading
66 |
67 | - [CPU Vulnerability - Spectre / Meltdown Detection Solution](https://www.labtechgeek.com/topic/3984-cpu-vulnerability-spectre-meltdown-detection-solution/)
68 | - [ADV180002 | Guidance to mitigate speculative execution side-channel vulnerabilities](https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/ADV180002)
69 | - [Windows Server guidance to protect against speculative execution side-channel vulnerabilities](https://support.microsoft.com/en-us/help/4072698/windows-server-guidance-to-protect-against-the-speculative-execution)
70 | - [Windows Client Guidance for IT Pros to protect against speculative execution side-channel vulnerabilities](https://support.microsoft.com/en-us/help/4073119/protect-against-speculative-execution-side-channel-vulnerabilities-in)
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Spectre and Meltdown Solution/Underlying Powershell/Meltdown and Spectre Detection.ps1:
--------------------------------------------------------------------------------
1 | function Get-SpeculationControlSettings {
2 | <#
3 |
4 | .SYNOPSIS
5 | This function queries the speculation control settings for the system.
6 |
7 | .DESCRIPTION
8 | This function queries the speculation control settings for the system.
9 |
10 | .PARAMETERS
11 | Add -automateoutput to Output a pipe delimited output suitable for use within a ConnectWise Automate Script
12 |
13 | .AUTHOR
14 | Original Author - Microsoft Security Response Center https://www.powershellgallery.com/packages/SpeculationControl/1.0.0
15 | ConnectWise Automate Integration Modifications: Gavin Stone https://www.gavsto.com
16 |
17 | Version 1.3.1
18 |
19 | #>
20 |
21 | [CmdletBinding()]
22 | param (
23 | [switch]$automateOutput
24 | )
25 |
26 | process {
27 |
28 | $NtQSIDefinition = @'
29 | [DllImport("ntdll.dll")]
30 | public static extern int NtQuerySystemInformation(uint systemInformationClass, IntPtr systemInformation, uint systemInformationLength, IntPtr returnLength);
31 | '@
32 |
33 | $ntdll = Add-Type -MemberDefinition $NtQSIDefinition -Name 'ntdll' -Namespace 'Win32' -PassThru
34 |
35 |
36 | [System.IntPtr]$systemInformationPtr = [System.Runtime.InteropServices.Marshal]::AllocHGlobal(4)
37 | [System.IntPtr]$returnLengthPtr = [System.Runtime.InteropServices.Marshal]::AllocHGlobal(4)
38 |
39 | $object = New-Object -TypeName PSObject
40 |
41 | try {
42 |
43 | #
44 | # Query branch target injection information.
45 | #
46 |
47 | # Create an empty hashtable to start holding the Automate Output
48 | $automateFinalOutput = @{}
49 |
50 | if (!$automateOutput)
51 | {
52 | Write-Host "Speculation control settings for CVE-2017-5715 [branch target injection]" -ForegroundColor Cyan
53 | Write-Host
54 | }
55 |
56 |
57 | $btiHardwarePresent = $false
58 | $automateFinalOutput.btiHardwarePresent = $false
59 | $btiWindowsSupportPresent = $false
60 | $automateFinalOutput.btiWindowsSupportPresent = $false
61 | $btiWindowsSupportEnabled = $false
62 | $automateFinalOutput.btiWindowsSupportEnabled = $false
63 | $btiDisabledBySystemPolicy = $false
64 | $automateFinalOutput.btiDisabledBySystemPolicy = $false
65 | $btiDisabledByNoHardwareSupport = $false
66 | $automateFinalOutput.btiDisabledByNoHardwareSupport = $false
67 | $automateFinalOutput.securefinal = $False
68 |
69 | [System.UInt32]$systemInformationClass = 201
70 | [System.UInt32]$systemInformationLength = 4
71 |
72 | $retval = $ntdll::NtQuerySystemInformation($systemInformationClass, $systemInformationPtr, $systemInformationLength, $returnLengthPtr)
73 |
74 | if ($retval -eq 0xc0000003 -or $retval -eq 0xc0000002) {
75 | # fallthrough
76 | }
77 | elseif ($retval -ne 0) {
78 | throw (("Querying branch target injection information failed with error {0:X8}" -f $retval))
79 | }
80 | else {
81 |
82 | [System.UInt32]$scfBpbEnabled = 0x01
83 | [System.UInt32]$scfBpbDisabledSystemPolicy = 0x02
84 | [System.UInt32]$scfBpbDisabledNoHardwareSupport = 0x04
85 | [System.UInt32]$scfHwReg1Enumerated = 0x08
86 | [System.UInt32]$scfHwReg2Enumerated = 0x10
87 | [System.UInt32]$scfHwMode1Present = 0x20
88 | [System.UInt32]$scfHwMode2Present = 0x40
89 | [System.UInt32]$scfSmepPresent = 0x80
90 |
91 | [System.UInt32]$flags = [System.UInt32][System.Runtime.InteropServices.Marshal]::ReadInt32($systemInformationPtr)
92 |
93 | $btiHardwarePresent = ((($flags -band $scfHwReg1Enumerated) -ne 0) -or (($flags -band $scfHwReg2Enumerated)))
94 | $btiWindowsSupportPresent = $true
95 | $automateFinalOutput.btiWindowsSupportPresent = $true
96 | $btiWindowsSupportEnabled = (($flags -band $scfBpbEnabled) -ne 0)
97 |
98 | if ($btiWindowsSupportEnabled -eq $false) {
99 | $btiDisabledBySystemPolicy = (($flags -band $scfBpbDisabledSystemPolicy) -ne 0)
100 | $btiDisabledByNoHardwareSupport = (($flags -band $scfBpbDisabledNoHardwareSupport) -ne 0)
101 | }
102 |
103 | if ($PSBoundParameters['Verbose']) {
104 | Write-Host "BpbEnabled :" (($flags -band $scfBpbEnabled) -ne 0)
105 | Write-Host "BpbDisabledSystemPolicy :" (($flags -band $scfBpbDisabledSystemPolicy) -ne 0)
106 | Write-Host "BpbDisabledNoHardwareSupport :" (($flags -band $scfBpbDisabledNoHardwareSupport) -ne 0)
107 | Write-Host "HwReg1Enumerated :" (($flags -band $scfHwReg1Enumerated) -ne 0)
108 | Write-Host "HwReg2Enumerated :" (($flags -band $scfHwReg2Enumerated) -ne 0)
109 | Write-Host "HwMode1Present :" (($flags -band $scfHwMode1Present) -ne 0)
110 | Write-Host "HwMode2Present :" (($flags -band $scfHwMode2Present) -ne 0)
111 | Write-Host "SmepPresent :" (($flags -band $scfSmepPresent) -ne 0)
112 | }
113 | }
114 |
115 | if (!$automateOutput)
116 | {
117 | Write-Host "Hardware support for branch target injection mitigation is present:"($btiHardwarePresent) -ForegroundColor $(If ($btiHardwarePresent) { [System.ConsoleColor]::Green } Else { [System.ConsoleColor]::Red })
118 | Write-Host "Windows OS support for branch target injection mitigation is present:"($btiWindowsSupportPresent) -ForegroundColor $(If ($btiWindowsSupportPresent) { [System.ConsoleColor]::Green } Else { [System.ConsoleColor]::Red })
119 | Write-Host "Windows OS support for branch target injection mitigation is enabled:"($btiWindowsSupportEnabled) -ForegroundColor $(If ($btiWindowsSupportEnabled) { [System.ConsoleColor]::Green } Else { [System.ConsoleColor]::Red })
120 | }
121 |
122 | if ($automateOutput)
123 | {
124 | $automateFinalOutput.btiHardwarePresent = $btiHardwarePresent
125 | $automateFinalOutput.btiWindowsSupportPresent = $btiWindowsSupportPresent
126 | $automateFinalOutput.btiWindowsSupportEnabled = $btiWindowsSupportEnabled
127 | }
128 |
129 | if(!$automateOutput)
130 | {
131 | if ($btiWindowsSupportPresent -eq $true -and $btiWindowsSupportEnabled -eq $false) {
132 | Write-Host -ForegroundColor Red "Windows OS support for branch target injection mitigation is disabled by system policy:"($btiDisabledBySystemPolicy)
133 | Write-Host -ForegroundColor Red "Windows OS support for branch target injection mitigation is disabled by absence of hardware support:"($btiDisabledByNoHardwareSupport)
134 | }
135 | }
136 |
137 | if ($automateOutput)
138 | {
139 | $automateFinalOutput.btiDisabledBySystemPolicy = $btiDisabledBySystemPolicy
140 | $automateFinalOutput.btiDisabledByNoHardwareSupport = $btiDisabledByNoHardwareSupport
141 | }
142 |
143 | $object | Add-Member -MemberType NoteProperty -Name BTIHardwarePresent -Value $btiHardwarePresent
144 | $object | Add-Member -MemberType NoteProperty -Name BTIWindowsSupportPresent -Value $btiWindowsSupportPresent
145 | $object | Add-Member -MemberType NoteProperty -Name BTIWindowsSupportEnabled -Value $btiWindowsSupportEnabled
146 | $object | Add-Member -MemberType NoteProperty -Name BTIDisabledBySystemPolicy -Value $btiDisabledBySystemPolicy
147 | $object | Add-Member -MemberType NoteProperty -Name BTIDisabledByNoHardwareSupport -Value $btiDisabledByNoHardwareSupport
148 |
149 | #
150 | # Query kernel VA shadow information.
151 | #
152 |
153 | if(!$automateOutput)
154 | {
155 | Write-Host
156 | Write-Host "Speculation control settings for CVE-2017-5754 [rogue data cache load]" -ForegroundColor Cyan
157 | Write-Host
158 | }
159 |
160 | $kvaShadowRequired = $true
161 | $automateFinalOutput.kvaShadowRequired = $true
162 | $kvaShadowPresent = $false
163 | $automateFinalOutput.kvaShadowPresent = $false
164 | $kvaShadowEnabled = $false
165 | $automateFinalOutput.kvaShadowEnabled = $false
166 | $kvaShadowPcidEnabled = $false
167 | $automateFinalOutput.kvaspcide = $false
168 |
169 | $cpu = Get-WmiObject Win32_Processor
170 |
171 | if ($cpu.Manufacturer -eq "AuthenticAMD") {
172 | $kvaShadowRequired = $false
173 | }
174 | elseif ($cpu.Manufacturer -eq "GenuineIntel") {
175 | $regex = [regex]'Family (\d+) Model (\d+) Stepping (\d+)'
176 | $result = $regex.Match($cpu.Description)
177 |
178 | if ($result.Success) {
179 | $family = [System.UInt32]$result.Groups[1].Value
180 | $model = [System.UInt32]$result.Groups[2].Value
181 | $stepping = [System.UInt32]$result.Groups[3].Value
182 |
183 | if (($family -eq 0x6) -and
184 | (($model -eq 0x1c) -or
185 | ($model -eq 0x26) -or
186 | ($model -eq 0x27) -or
187 | ($model -eq 0x36) -or
188 | ($model -eq 0x35))) {
189 |
190 | $kvaShadowRequired = $false
191 | $automateFinalOutput.kvaShadowRequired = $false
192 | }
193 | }
194 | }
195 | else {
196 | throw ("Unsupported processor manufacturer: {0}" -f $cpu.Manufacturer)
197 | }
198 |
199 | [System.UInt32]$systemInformationClass = 196
200 | [System.UInt32]$systemInformationLength = 4
201 |
202 | $retval = $ntdll::NtQuerySystemInformation($systemInformationClass, $systemInformationPtr, $systemInformationLength, $returnLengthPtr)
203 |
204 | if ($retval -eq 0xc0000003 -or $retval -eq 0xc0000002) {
205 | }
206 | elseif ($retval -ne 0) {
207 | throw (("Querying kernel VA shadow information failed with error {0:X8}" -f $retval))
208 | }
209 | else {
210 |
211 | [System.UInt32]$kvaShadowEnabledFlag = 0x01
212 | [System.UInt32]$kvaShadowUserGlobalFlag = 0x02
213 | [System.UInt32]$kvaShadowPcidFlag = 0x04
214 | [System.UInt32]$kvaShadowInvpcidFlag = 0x08
215 |
216 | [System.UInt32]$flags = [System.UInt32][System.Runtime.InteropServices.Marshal]::ReadInt32($systemInformationPtr)
217 |
218 | $kvaShadowPresent = $true
219 | $automateFinalOutput.kvaShadowPresent = $true
220 | $kvaShadowEnabled = (($flags -band $kvaShadowEnabledFlag) -ne 0)
221 | $kvaShadowPcidEnabled = ((($flags -band $kvaShadowPcidFlag) -ne 0) -and (($flags -band $kvaShadowInvpcidFlag) -ne 0))
222 |
223 | if ($PSBoundParameters['Verbose']) {
224 | Write-Host "KvaShadowEnabled :" (($flags -band $kvaShadowEnabledFlag) -ne 0)
225 | Write-Host "KvaShadowUserGlobal :" (($flags -band $kvaShadowUserGlobalFlag) -ne 0)
226 | Write-Host "KvaShadowPcid :" (($flags -band $kvaShadowPcidFlag) -ne 0)
227 | Write-Host "KvaShadowInvpcid :" (($flags -band $kvaShadowInvpcidFlag) -ne 0)
228 | }
229 | }
230 |
231 | if(!$automateOutput){
232 | Write-Host "Hardware requires kernel VA shadowing:"$kvaShadowRequired}
233 |
234 | if($automateOutput){
235 | $automateFinalOutput.kvaShadowRequired = $kvaShadowRequired
236 | }
237 |
238 |
239 | if ($kvaShadowRequired) {
240 | if(!$automateOutput)
241 | {
242 | Write-Host "Windows OS support for kernel VA shadow is present:"$kvaShadowPresent -ForegroundColor $(If ($kvaShadowPresent) { [System.ConsoleColor]::Green } Else { [System.ConsoleColor]::Red })
243 | Write-Host "Windows OS support for kernel VA shadow is enabled:"$kvaShadowEnabled -ForegroundColor $(If ($kvaShadowEnabled) { [System.ConsoleColor]::Green } Else { [System.ConsoleColor]::Red })
244 | }
245 |
246 | if($automateOutput)
247 | {
248 | $automateFinalOutput.kvaShadowPresent = $kvaShadowPresent
249 | $automateFinalOutput.kvaShadowEnabled = $kvaShadowEnabled
250 | }
251 |
252 |
253 |
254 | if ($kvaShadowEnabled) {
255 | if(!$automateOutput)
256 | {
257 | Write-Host "Windows OS support for PCID optimization is enabled:"$kvaShadowPcidEnabled -ForegroundColor $(If ($kvaShadowPcidEnabled) { [System.ConsoleColor]::Green } Else { [System.ConsoleColor]::Red })
258 | }
259 |
260 | if ($automateOutput)
261 | {
262 | $automateFinalOutput.kvaspcide = $kvaShadowPcidEnabled
263 | }
264 | }
265 | else
266 | {
267 | if ($automateOutput)
268 | {
269 | $automateFinalOutput.kvaspcide = $kvaShadowPcidEnabled
270 | }
271 | }
272 | }
273 |
274 |
275 | $object | Add-Member -MemberType NoteProperty -Name KVAShadowRequired -Value $kvaShadowRequired
276 | $object | Add-Member -MemberType NoteProperty -Name KVAShadowWindowsSupportPresent -Value $kvaShadowPresent
277 | $object | Add-Member -MemberType NoteProperty -Name KVAShadowWindowsSupportEnabled -Value $kvaShadowEnabled
278 | $object | Add-Member -MemberType NoteProperty -Name KVAShadowPcidEnabled -Value $kvaShadowPcidEnabled
279 |
280 | #
281 | # Provide guidance as appropriate.
282 | #
283 |
284 | $actions = @()
285 |
286 | if ($btiHardwarePresent -eq $false) {
287 | $actions += "Install BIOS/firmware update provided by your device OEM that enables hardware support for the branch target injection mitigation."
288 | }
289 |
290 | if ($btiWindowsSupportPresent -eq $false -or $kvaShadowPresent -eq $false) {
291 | $actions += "Install the latest available updates for Windows with support for speculation control mitigations."
292 | }
293 |
294 | if ($btiWindowsSupportEnabled -eq $false -or ($kvaShadowRequired -eq $true -and $kvaShadowEnabled -eq $false)) {
295 | $actions += "Follow the guidance for enabling Windows support for speculation control mitigations are described in https://support.microsoft.com/help/4072698"
296 | }
297 |
298 | if ($actions.Length -gt 0) {
299 |
300 | if (!$automateOutput)
301 | {
302 | Write-Host
303 | Write-Host "Suggested actions" -ForegroundColor Cyan
304 | Write-Host
305 |
306 | foreach ($action in $actions) {
307 | Write-Host " *" $action }
308 |
309 | Write-Host "VULNERABLE" -ForegroundColor Red
310 | }
311 |
312 | if ($automateOutput)
313 | {
314 |
315 | foreach ($action in $actions) {
316 | $automateFinalOutput.Action += $action
317 | }
318 |
319 | $automateFinalOutput.securefinal = $False
320 |
321 | }
322 | }
323 |
324 | if ($actions.Length -eq 0) {
325 |
326 | if (!$automateOutput)
327 | {
328 | Write-Host "SECURE" -ForegroundColor Green
329 | }
330 |
331 | if ($automateOutput)
332 | {
333 | $automateFinalOutput.Action = "None - Secure"
334 | $automateFinalOutput.securefinal = $True
335 | }
336 | }
337 |
338 |
339 |
340 | if($automateOutput)
341 | {
342 | $finalOutput = [string]::Join("|",($automateFinalOutput.GetEnumerator() | %{$_.Name + "=" + $_.Value}))
343 | $finalOutput = $finalOutput.Replace("True","1")
344 | $finalOutput = $finalOutput.Replace("False","0")
345 | Write-Host $finalOutput
346 | }
347 |
348 | if(!$automateOutput)
349 | {
350 | return $object
351 | }
352 |
353 |
354 | }
355 | finally
356 | {
357 | if ($systemInformationPtr -ne [System.IntPtr]::Zero) {
358 | [System.Runtime.InteropServices.Marshal]::FreeHGlobal($systemInformationPtr)
359 | }
360 |
361 | if ($returnLengthPtr -ne [System.IntPtr]::Zero) {
362 | [System.Runtime.InteropServices.Marshal]::FreeHGlobal($returnLengthPtr)
363 | }
364 | }
365 | }
366 | }
--------------------------------------------------------------------------------
/SymantecRemoval.ps1:
--------------------------------------------------------------------------------
1 | $wshell = New-Object -ComObject wscript.shell
2 | Start-Process -FilePath "C:\Windows\ltsvc\SymantecRemoval\SEPprep64.exe"
3 | Sleep 15
4 | $wshell.AppActivate('Symantec Endpoint Protection Cloud')
5 | Sleep 5
6 | $wshell.SendKeys('{TAB}')
7 | Sleep 0.5
8 | $wshell.SendKeys('{TAB}')
9 | Sleep 0.5
10 | $wshell.SendKeys('{ENTER}')
11 | Sleep 360
12 | get-process inststub | Foreach-Object { $_.CloseMainWindow() | Out-Null } | stop-process -force
13 |
--------------------------------------------------------------------------------
/Test.txt:
--------------------------------------------------------------------------------
1 | Test
2 |
--------------------------------------------------------------------------------
/TreeSize - Interactive HTML Reports for Disk Space Distribution/README.md:
--------------------------------------------------------------------------------
1 | THIS SCRIPT IS CURRENTLY IN ALPHA!!!! USE WITH CAUTION!!!!
2 |
3 | AUTHOR: Gavin Stone https://www.gavsto.com gavin@gavsto.com
4 |
5 | CONTRIBUTORS: Ctaylor - http://labtechconsulting.com/
6 |
7 | CONTRIBUTIOS: - Jaykul - https://github.com/Jaykul
8 |
9 | USAGE:
10 |
11 | Modify Line 1 to input your own logo: https://www.base64-image.de/
12 |
13 | Parameters:
14 | Paths: Can take multiple paths in either local format or UNC format
15 |
16 | TrytorunaslocationAdmin: Performs the treesize as a location administrator
17 |
18 | Displayunits: Either B,KB,MB,GB or TB
19 |
20 | Global Variables:
21 | folderSizeFilterMinSize - Used in conjunction with folderSizeFilterDepthThreshold to excludes from the report sections of the tree that are smaller than a particular size.
22 |
23 | folderSizeFilterDepthThreshold: Enables a folder size filter which, in conjunction with folderSizeFilterMinSize, excludes from the report sections of the tree that are smaller than a particular size.
24 | folderSizeFilterDepthThreshold
25 |
26 | Setting this parameter filters the number of files shown at each level.
27 |
28 | topFilesCountPerFolder: For example, setting it to 10 will mean that at each folder level, only the largest 10 files will be displayed in the report.
29 | The count and sum total size of all other files will be shown as one item.
--------------------------------------------------------------------------------
/TreeSize - Interactive HTML Reports for Disk Space Distribution/TreeSize - HTML Report to E-mail for Customer Facing Size Guide.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 | 6334
9 | 260
10 | TreeSize - HTML Report to E-mail for Customer Facing Size Guide
11 | AUTHOR: Gavin Stone https://www.gavsto.com gavin@gavsto.com
12 | CONTRIBUTORS: Ctaylor - http://labtechconsulting.com/
13 | CONTRIBUTIOS: - Jaykul - https://github.com/Jaykul
14 |
15 | USAGE:
16 |
17 | Modify Line 1 to input your own logo: https://www.base64-image.de/
18 |
19 | Parameters:
20 | Paths: Can take multiple paths in either local format or UNC format
21 | TrytorunaslocationAdmin: Performs the treesize as a location administrator
22 | Displayunits: Either B,KB,MB,GB or TB
23 |
24 | Global Variables:
25 | folderSizeFilterMinSize - Used in conjunction with folderSizeFilterDepthThreshold to excludes from the report sections of the tree that are smaller than a particular size.
26 |
27 | folderSizeFilterDepthThreshold: Enables a folder size filter which, in conjunction with folderSizeFilterMinSize, excludes from the report sections of the tree that are smaller than a particular size.
28 | folderSizeFilterDepthThreshold
29 |
30 | Setting this parameter filters the number of files shown at each level.
31 |
32 | topFilesCountPerFolder: For example, setting it to 10 will mean that at each folder level, only the largest 10 files will be displayed in the report.
33 | The count and sum total size of all other files will be shown as one item.
34 | 0,
35 | 0,
36 | 1
37 | 0
38 | 0
39 | 0
40 | H4sIAAAAAAAEAFWPwQqDMBBE74X+Qz7AkGysEmXJpS29VCit9K5moblEiQbq3xelBXsaZmfewuDVdeRHOjVTY7CeBzKAYlW8R3/so58oGIli4/D8HlxYGDL1K4bRNnPCqmZmMk2YkqAZqFLlpdLsVqHY1PHRBTdMTwqj6/3y9//wzS/RWUOQUlvYlh/ISg5AmmvZdlxKyDKbZ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0
45 | paths,trytorunaslocationadmin,displayunits
46 |
47 |
48 |
49 |
50 |
51 | 6106
52 | 286
53 | FUNCTION - Email Results to Technician*
54 | Emails technician that scheduled the script of it's completion.
55 | Should be passed the following variables:
56 | @ScriptRunResult@ = Script status summary included in the email subject.
57 | @AddInfo@ = Additional Script Status information included in the email body.
58 | Automatically identifies @RunByUser@ and @ScriptName@.
59 | Both can be overridden if they are passed.
60 | @EmailAttachments@=File path or list of file attachment IDs.
61 |
62 |
63 | Darren White - Ray Morgan Company - 20170503
64 |
65 |
66 | 1
67 | 0
68 | 1
69 | 1
70 | H4sIAAAAAAAEAFWPQQrCMBRE94J3yAEa0oTUmvLJRsWNglhxH5tfzMI2pAnY20uLQl0NM8MbGDi5BrsB9yYaDbfRo+bAZoVr6nZ96iIGnQNbODi8vQsTg/r2TGGwZsxIjT7i64GBiCIjIueSlJXcVqIglzOwBQN1E5yPdwyD67tp/D/49sfkrBaqtI3Y5JTLwlDOsaTGKkFzYVupCmVNy3/8DABbXlqvPkAPKUXiAAAA
71 | H4sIAAAAAAAEAOWa3VPiMBDA3525/yEvyN3McdACIipcEaoyh3oDfjzexDZIb0rLtOl4zvjHX/NBKZVUwPClD46bTZo2v+4mu11OeoZnjXALYlj/sgfACWv7tBE29X/Yg6T3zEK26YP8uOM39OAQYeTFdOe2+wDtmIJNdhcOslynrpzkpxVTo84Dy6yr1YppqAeFnFIqw5yioEoOmlU1V1DNfqlarpqwH81CL6DPnI8/NJ+uh9EoWkXDwPwBuMT1Z4FD222T9MVa8UUqiUWriXYx0S4l2uUYD9fD9UL4vOQ/1zVdB1tOgIg+knnftd+xhha9ZCzynrZjIgdDupiwN96MI5lQSMGipmEpVsVg6kc95Jj6EFr2SZ6rPi2pSiEFVDdwTp9vfeSlwCImyKVUaNG4Uio8RTY8ZavhHc6GV9e4vrgURHWXIKppEBVFAK6nd/TmDdAvG+0OOOteX4Lbnt7tgfsLvauDq8alDjrtXzrIap2b6E1oWQHume8qwf4Nry/KZq5uteFWFzTcyZ7bdIcjOzyC57Lk0qex5Kvr+6/fBFDvB8gpLGWV5V3il2qVbMqrMHpbyzl08HnAFaWCq+wSuHd57AQsO4Bs/MdnET0/hdiAdquWYXrLzAgc/NU7WszLDz/M2cOmDE+gLvIDG6/F1au7ZLES6Mn1d0V6urM5hxf5O70VGAcuZqoTJ+kv5smK9PxnY67cMM2203fXkzXuVMbzDmySfVd60rJtvpv8lJPAu6BzSs9GNuacNBNrYAyNwTC8vb8eL/042cic/CS7604lJVLcVcB5Qb+VnpNsu9+qcu1Oen6xUrtL+/RPvkJZziNAhCN4svAAwIjmEdCSfLX57HTBCoEiPeUobpkj1/dtfHyh7j/iYx49345MiBFR55l+r2lbFHqGCST7zQAy4LRL+zuuQVcTjhiLr8Y0HukURAPBwEP9WtaGDxgZgyN3hJyfRhizBxh5llnLNLncbmWy5OJIMZk1D0lHbP5eCDTwQ8NIBPdabAxdapGILYRD82GPk2cq1ssGavQ7XuxSIo08RESNBya0N8+V0yPjt2OiIBGhRnzqms9L7Zbqp0no2KsMzWtsJQ41hJfx2yZ2oU2ak5efxr0XPPxFxnLZn7pT1S+lklJ9jgoESfbadHlBxPJYUEf4PvvEml20KE/TFSWJyjbSVUspcAUQX7GOW6SItBZtF6LajfBUfKMKKcout5P3W2EDjxmwC5L0gTFd0pIbLKjSs85VBgvz/vKiuVJk0hPNzf1YpWkj6JCQlR9ad9Cz4IONfNB3vfDPtt2nYARYheHHanB+oLyzLNgqaWhWe5kc/GM5OvVrLzxEq70k90OuIXsoF/meWxPsuVeN5eKDnSquKalbamE1pio9VZ3D88dt/nPE/zF9gSadKAAA
72 | 1
73 | 297dc260-145a-11e7-ad92-02df4959daf1
74 | 1
75 |
76 |
107 |
108 |
109 |
110 |
--------------------------------------------------------------------------------
/Update-ManageContactOnConfiguration.ps1:
--------------------------------------------------------------------------------
1 | <#
2 | .SYNOPSIS
3 | Updates Contacts on ConnectWise Manage Configurations based on matching an EDF in Automate
4 | .DESCRIPTION
5 | Utilises AutomateAPI and ConnectWiseManageAPI to find matching machines, and update the contact configuration
6 | .INPUTS
7 | None, but automatically pulls all Computers out of Automate, Configurations out of Manage and Contacts out of Manage
8 | .OUTPUTS
9 | A single line per Automate PC as to whether it was matched or not
10 | .NOTES
11 | Version: 1.0
12 | Author: Gavin Stone (gavsto.com)
13 | Creation Date: 28th January 2021
14 | Purpose/Change: Initial script development
15 | #>
16 |
17 | # -------------------------Editable Script Variables-------------------------------
18 | # Name of the EDF in Automate to extract from
19 | $EDFTitle = "Email Address EDF Name"
20 |
21 | # Will not make any changes if true, but will output what would have happened without doing anything in Manage. I recommend you start with this before flipping it to false
22 | $WhatIfOnly = $true
23 |
24 | # Make sure you add your connection/authentication Details
25 | # -------------------------End of Script Variables-----------------------------
26 |
27 | Import-Module ConnectWiseManageAPI -Force -ErrorAction Stop
28 | Import-Module AutomateAPI -Force -ErrorAction Stop
29 |
30 | Connect-CWM -Server $ConnectWiseManageServerURL -Company $ConnectWiseManageCompanyName -pubkey $ConnectWiseManagePublicAPIKey -privatekey $ConnectWiseManagePrivateAPIKey -clientId $ConnectWiseManageClientID
31 | Connect-AutomateAPI -Server $ConnectWiseAutomateServerURL -ClientID $ConnectWiseAutomateClientID -Credential $AutomateCredentials
32 |
33 | # Get all Automate Computers
34 | try { $AllAutomateComputers = Get-AutomateComputer -ErrorAction Stop } catch { Write-Output "Failed to get all Automate Computers with error $($_.Exception.Message). This is a terminating condition."; throw }
35 |
36 | # Get All Manage Configurations
37 | try { $AllManageConfigurations = Get-CWMCompanyConfiguration -all -ErrorAction Stop } catch { Write-Output "Failed to get all Manage Configurations with error $($_.Exception.Message). This is a termination error."; throw }
38 |
39 | # Get All Manage Contacts
40 | try { $AllManageContacts = Get-CWMContact -all -ErrorAction Stop } catch { Write-Output "Failed to get all Manage Contacts with error $($_.Exception.Message). This is a terminating condition."; throw }
41 |
42 | # Loop through each Automate Computer
43 | foreach ($AutomateComputer in $AllAutomateComputers) {
44 |
45 | # Get all EDFs for this computer, this could probably be made faster by putting a condition in but conditions are flaky on the API for EDFs so I sort in PowerShell
46 | try { $AllEDFs = Get-AutomateApiGeneric -Endpoint "computers/$($AutomateComputer.ComputerID)/extrafields" } catch { Write-Output "Unable to get EDFs for ComputerID $($AutomateComputer.ComputerID) with Name $($AutomateComputer.ComputerName) at $($AutomateComputer.Client.Name). Skipping to Next Computer"; continue }
47 |
48 | # Pull out the specific EDF I want
49 | $EDF = $AllEDFs | Where-Object { $_.Title -eq $EDFTitle }
50 |
51 | # Get the e-mail address out, if it's null skip to the next computer
52 | if (![string]::IsNullOrEmpty($EDF.TextFieldSettings.Value)) {
53 | $EmailAddress = $EDF.TextFieldSettings.Value
54 | }
55 | else {
56 | Write-Output "No E-mail address for ComputerID $($AutomateComputer.ComputerID) with Name $($AutomateComputer.ComputerName) at $($AutomateComputer.Client.Name). Skipping to Next Computer"
57 | continue
58 | }
59 |
60 | # Find the Match
61 | $Configuration = $AllManageConfigurations | ? { $_.DeviceIdentifier -eq $AutomateComputer.ComputerID }
62 |
63 | # Check there are not multiple devices, if there are skip this loop
64 | If ($Configuration.Count -gt 1) { Write-Output "Multiple configurations utilising the same DeviceIdentifier In Manage for $($AutomateComputer.ComputerID) with Name $($AutomateComputer.ComputerName) at $($AutomateComputer.Client.Name). Skipping this computer. "; continue }
65 |
66 | # Check there is an actual match
67 | If ([string]::IsNullOrEmpty($Configuration.id)) { Write-Output "Unable to find a matching configuration for $($AutomateComputer.ComputerID) with Name $($AutomateComputer.ComputerName) at $($AutomateComputer.Client.Name). Skipping to next"; continue }
68 |
69 | # Lets find the matching contact
70 | $MatchingContact = $AllManageContacts | ? { $_.communicationitems.Value -eq $EmailAddress } | Select -First 1
71 |
72 | # Update the Contact on the configuration in Manage
73 | if (![string]::IsNullOrEmpty($MatchingContact.id)) {
74 | try {
75 | if (!$WhatIfOnly) {
76 | $Result = Update-CWMCompanyConfiguration -ID $Configuration.id -Operation replace -Path contact -Value @{'id' = $MatchingContact.id }
77 | Write-Output "Manage Contact Update Attempted: $($Result.Name) was updated with contact $($MatchingContact.firstName) $($MatchingContact.lastName) with Email Address $EmailAddress"
78 | }
79 | else {
80 | Write-Host -BackgroundColor Green -ForegroundColor Black "WHAT IF ONLY: We would have attempted to update Manage Configuration $($Configuration.Name) with contact $EmailAddress"
81 | }
82 |
83 |
84 | }
85 | catch {
86 | Write-Output "There was an error when attempting to update a contact on $($AutomateComputer.ComputerID) with Name $($AutomateComputer.ComputerName) at $($AutomateComputer.Client.Name). Error thrown was $($_.Exception.Message)"
87 | }
88 | }
89 | else {
90 | Write-Output "No matching contact found. The EDF Value was $EmailAddress and this could not be found on any Manage Contact"
91 | }
92 | }
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/Uptime Statistics Solution/README.md:
--------------------------------------------------------------------------------
1 | # ConnectWise-Automate-ServerUptimeStatistics
2 | Project to return server uptime and statistics to EDF
3 |
4 | - Only the .XML is needed - this has the .PS1 included here attached within it.
5 | - This should work on any Machine with Powershell 2 or above.
6 |
7 | 1) Download the latest files above
8 | 2) Import into ConnectWise Automate - Try importing twice if the EDFs do not appear and reload system cache
9 | 3) Run the script against the servers you wish to calculate uptime for
10 | 4) The EDFs are in Uptime Statistics Tab in the EDFs at Computer Level
11 |
12 | 
13 |
14 | As per the attached license, THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
15 |
--------------------------------------------------------------------------------
/Uptime Statistics Solution/Retrieve-Server-Uptime-Statistics.ps1:
--------------------------------------------------------------------------------
1 | #*=============================================================================
2 | #* Script Name: getServerUptime
3 | #* Created: 9/15/2011
4 | #* Author: James Keeler
5 | #* Changed by: Gavin Stone - gavsto.com
6 | #* Email: James.R.Keeler(at)gmail.com
7 | #*
8 | #* Params: [string]$ComputerName - name of the remote computer. If no parameter
9 | #* is given, the default is localhost
10 | #*
11 | #* [int]$NumOfDays - number of days for which to calculate the
12 | #* uptime. If no parameter is given, the default is 30 days. The
13 | #* maximum number of days allowed is 365.
14 | #*
15 | #* [switch]$DebugInfo - turns on debugging
16 | #*
17 | #* Returns: The percent downtime and uptime for the given server.
18 | #*=============================================================================
19 | #* Purpose: Calculates the percent uptime for the given server.
20 | #*
21 | #*
22 | #*=============================================================================
23 |
24 | #*=============================================================================
25 | #* REVISION HISTORY
26 | #*=============================================================================
27 | #* Version: 1.1
28 | #* Date: 9/27/2011
29 | #* Time: 5:37 PM
30 | #* Issue: Not calculating downtime properly for system crashes
31 | #* Solution: Iterate through all event logs to find the last event written
32 | #* prior to crash. Use this timestamp to determine outage duration.
33 | #*
34 | #*=============================================================================
35 | #* Version: 1.2
36 | #* Date: 11/30/2011
37 | #* Time: 8:27 AM
38 | #* Issue: Script performance
39 | #* Solution: Use Invoke-Command to remotely call Get-EventLog
40 | #*
41 | #* Issue: Script accuracy
42 | #* Solution: Changed the script to use the system generated error message
43 | #* for unexpected shutdowns to capture the correct timestamp.
44 | #*
45 | #*=============================================================================
46 | #* Version: 1.3
47 | #* Date: 01/13/2018
48 | #* Time: 21:27 PM
49 | #* Issue: Output in parameters suitable for collection to EDF
50 | #* Solution: Changed the script to use the system generated error message
51 | #* for unexpected shutdowns to capture the correct timestamp.
52 | #*
53 | #*=============================================================================
54 |
55 | #*=============================================================================
56 | #* SCRIPT BODY
57 | #*=============================================================================
58 |
59 | <#
60 | .SYNOPSIS
61 | Calculates the percent uptime for the given server.
62 |
63 | .DESCRIPTION
64 | The getServerUpTime script returns the uptime for a remote or local
65 | computer.
66 |
67 | Without parameters, getServerUptime returns the uptime for the local
68 | computer over the past 30 days.
69 |
70 | .PARAMETER ComputerName
71 | Calculates the percent uptime for the specified computers. The default is
72 | the local computer.
73 |
74 | Type the NetBIOS name, an IP address, or a fully qualified domain name of
75 | a computer. To specify the local computer, type the computer name, a dot
76 | (.), or "localhost".
77 |
78 | .PARAMETER NumberOfDays
79 | The function will calculate the uptime of the computer for the past N days,
80 | where N equals the value of NumberOfDays.
81 |
82 | .PARAMETER DebugInfo
83 | Turn on debugging.
84 |
85 | .EXAMPLE
86 | PS C:\> .\getServerUptime.ps1
87 | Retrieving shutdown and startup events from MyLaptop for the past 30 days...
88 | WARNING: This could take several minutes!
89 |
90 | Name : MyLaptop
91 | NumOfDays : 30
92 | NumOfCrashes : 1
93 | NumOfReboots : 18
94 | MinutesDown : 12,506.03
95 | MinutesUp : 30,693.97
96 | PercentDowntime : 28.9492 %
97 | PercentUptime : 71.0508 %
98 |
99 | .EXAMPLE
100 | PS C:\> .\getServerUptime.ps1 -ComputerName SVR001 -NumberOfDays 365
101 | Retrieving shutdown and startup events from SVR001 for the past 365 days...
102 | WARNING: This could take several minutes!
103 |
104 | Name : SVR001
105 | NumOfDays : 365
106 | NumOfCrashes : 1
107 | NumOfReboots : 13
108 | MinutesDown : 63.15
109 | MinutesUp : 525,536.85
110 | PercentDowntime : 0.0120 %
111 | PercentUptime : 99.9880 %
112 |
113 | #>
114 | Param(
115 | [string] $ComputerName = $env:computername,
116 | [int] $NumberOfDays = 30,
117 | [switch] $DebugInfo
118 | )
119 | Process {
120 | # Ensure the server is reachable
121 |
122 | # Create an empty hashtable to start holding the Automate Output
123 | $automateFinalOutput = @{}
124 | if (Test-Connection -ComputerName $ComputerName -Count 1 -TimeToLive 10 -Quiet) {
125 |
126 | # Ensure that this is a Windows server that we are working with and
127 | # that we have the appropriate permissions
128 | if (Test-Path -Path "\\$ComputerName\C$")
129 | {
130 | # Did the user pass in an appropriate value for number of days?
131 | # If not, we will assume the default, 30 days. If the value is
132 | # more than 365, we use 365 as the maximum.
133 | if ($NumberOfDays -le 0)
134 | {
135 | $NumberOfDays = 30
136 | $automateFinalOutput.CapturedOutput += "Defaulting to 30 days..."
137 | } # end if
138 | elseif ($NumberOfDays -gt 365)
139 | {
140 | $NumberOfDays = 365
141 | $automateFinalOutput.CapturedOutput += "Using maximum value (365 days)..."
142 | } # end elseif
143 |
144 | # If the -debug switch is set, we set the $DebugPreference variable
145 | if($DebugInfo) { $DebugPreference = "Continue" }
146 |
147 | # We begin by assuming 100% uptime. We will calculate effective
148 | # uptime by subtracting downtime from this value
149 | [timespan]$uptime = New-TimeSpan -Days $NumberOfDays
150 | [timespan]$downtime = 0
151 | $currentTime = Get-Date
152 | $startUpID = 6005
153 | $shutDownID = 6006
154 | $minutesInPeriod = $uptime.TotalMinutes
155 | $startingDate = (Get-Date).adddays(-$NumberOfDays)
156 |
157 | # Output some useful debugging info
158 | Write-Debug "Uptime: $uptime"
159 | Write-Debug "Downtime: $downtime"
160 | write-debug "Current time: $currentTime"
161 | Write-Debug "Start time: $startingDate"
162 | Write-Debug "Computer: $ComputerName"
163 |
164 | # Warn the user that this could take a while
165 | $automateFinalOutput.CapturedOutput += "Retrieving shutdown and startup events from "
166 | $automateFinalOutput.CapturedOutput += "$ComputerName for the past $NumberOfDays days..."
167 | $automateFinalOutput.CapturedOutput += "This could take several minutes!"
168 |
169 | # Create a new PSSession to be used throughout the script
170 |
171 | # Remotely retrieve the events from the system event log that
172 | # occurred in the past $NumberOfDays days ago
173 | $events = Invoke-Command -ScriptBlock {`
174 | param($days,$up,$down)
175 | Get-EventLog `
176 | -After (Get-Date).AddDays(-$days) `
177 | -LogName System `
178 | -Source EventLog `
179 | | Where-Object {
180 | $_.eventID -eq $up `
181 | -OR `
182 | $_.eventID -eq $down }
183 | } -ArgumentList $NumberOfDays,$startUpID,$shutDownID -ErrorAction Stop
184 |
185 | # Create a new sorted array object
186 | $sortedList = New-object system.collections.sortedlist
187 |
188 | # If there are shutdown or startup events, add them to the
189 | # sorted array, otherwise add zeroes to the array as placeholders
190 | if ($events.Count -ge 1)
191 | {
192 | ForEach($event in $events)
193 | {
194 | $sortedList.Add( $event.timeGenerated, $event.eventID )
195 | } #end foreach event
196 | } # end if
197 | else
198 | { # There were no shutdown events during this time period
199 | $sortedList.Add( 0, 0 )
200 | } # end else
201 |
202 | # Count the number of system crashes
203 | $crashCounter = 0
204 |
205 | # Count the number of reboots
206 | $rebootCounter = 0
207 |
208 | # Iterate through the sorted events and add up the downtime
209 | For($i = 1; $i -lt $sortedList.Count; $i++ )
210 | {
211 | if( `
212 | ($sortedList.GetByIndex($i) -eq $startupID) `
213 | -AND `
214 | ($sortedList.GetByIndex($i) -ne $sortedList.GetByIndex($i-1)) )
215 | { # There was a shutdown event paired to the startup event,
216 | # thus it was a planned shutdown
217 |
218 | # Write each event to the Debug pipeline
219 | Write-Debug "Shutdown `t $($sortedList.Keys[$i-1])" # Shutdown
220 | Write-Debug "Startup `t $($sortedList.Keys[$i])" # Startup
221 |
222 | # Outage duration = startup timestamp - shutdown timestamp
223 | $duration = ($sortedList.Keys[$i] - $sortedList.Keys[$i-1])
224 | $downtime += $duration
225 | Write-Debug " Outage duration: $duration"
226 | Write-Debug " Downtime is now: $downtime"
227 | Write-Debug ""
228 |
229 | # Bump the reboot counter
230 | $rebootCounter++
231 | } # end if
232 | elseif( `
233 | ($sortedList.GetByIndex($i) -eq $startupID) `
234 | -AND `
235 | ($sortedList.GetByIndex($i) -eq $sortedList.GetByIndex($i-1)) )
236 | { # This was an unplanned outage (a system crash).
237 | # Basically this means that we have 2 startup events
238 | # with no shutdown event
239 |
240 | # Get the date from the event stating that there was an
241 | # unexpected shutdown
242 | $tempevent = Invoke-Command `
243 | -ScriptBlock {`
244 | param([datetime]$date, [string]$log)
245 | Get-EventLog `
246 | -Before $date.AddSeconds(1) `
247 | -Newest 1 `
248 | -LogName System `
249 | -Source EventLog `
250 | -EntryType Error `
251 | -ErrorAction "SilentlyContinue" | `
252 | Where-Object {$_.EventID -eq 6008}
253 | } -ArgumentList $sortedList.Keys[$i],$($eventlog.log)
254 |
255 | # The 6008 event has the data we're looking for in the
256 | # ReplacementStrings property but the date portion of the
257 | # data has a special character that we need to remove,
258 | # [char]8206, so we replace it with a space.
259 | $lastEvent = [datetime](`
260 | ($tempevent.ReplacementStrings[1]).Replace([char]8206, " ")`
261 | + " " + $tempevent.ReplacementStrings[0])
262 |
263 | # Write each event to the Debug pipeline
264 | Write-Debug "CRASH `t $lastEvent"
265 | Write-Debug "Startup `t $($sortedList.Keys[$i])" # Startup
266 |
267 | # Calculate downtime = Startup timestamp - Last event
268 | # written to any log timestamp
269 | $duration = ($sortedList.Keys[$i] - $lastEvent)
270 | $downtime += $duration
271 | Write-Debug " Outage duration: $duration"
272 | Write-Debug " Downtime is now: $downtime"
273 | Write-Debug ""
274 |
275 | # Bump the crash counter
276 | $crashCounter++
277 | } # end elseif
278 | } #end for item
279 |
280 | # Subtract downtime from calculated uptime to get true uptime
281 | $uptime -= $downtime
282 |
283 | # Create a custom object to hold the results
284 | $results = "" | Select-Object `
285 | Name, `
286 | NumOfDays, `
287 | NumOfCrashes, `
288 | NumOfReboots, `
289 | MinutesDown, `
290 | MinutesUp, `
291 | PercentDowntime, `
292 | PercentUptime
293 | $results.Name = $ComputerName
294 | $results.NumOfDays = $NumberOfDays
295 | $results.NumOfCrashes = $crashCounter
296 | $results.NumOfReboots = $rebootCounter
297 | $results.MinutesDown = $downtime.TotalMinutes
298 | $results.MinutesUp = $uptime.TotalMinutes
299 | $results.PercentDowntime = "{0:p4}" -f (1 - $uptime.TotalMinutes/$minutesInPeriod)
300 | $results.PercentUptime = "{0:p4}" -f ($uptime.TotalMinutes/$minutesInPeriod)
301 |
302 | $automateFinalOutput.Name = $results.Name
303 | $automateFinalOutput.NumOfDays = $results.NumOfDays
304 | $automateFinalOutput.NumOfCrashes = $results.NumOfCrashes
305 | $automateFinalOutput.NumOfReboot = $results.NumOfReboots
306 | $automateFinalOutput.MinutesDown = [math]::Round($results.MinutesDown)
307 | $automateFinalOutput.MinutesUp = [math]::Round($results.MinutesUp)
308 | $automateFinalOutput.PercentDownTime = $results.PercentDowntime
309 | $automateFinalOutput.PercentUpTime = $results.PercentUptime
310 |
311 | $finalOutput = [string]::Join("|",($automateFinalOutput.GetEnumerator() | %{$_.Name + "=" + $_.Value}))
312 | $finalOutput = $finalOutput.Replace("True","1")
313 | $finalOutput = $finalOutput.Replace("False","0")
314 | Write-Host $finalOutput
315 |
316 | #Write-Output $results
317 |
318 | } # end if
319 | else
320 | {
321 | # This usually means that you've encountered a server that
322 | # is not running Windows, like a Linux server
323 | $automateFinalOutput.CapturedOutput += "No access to the default share - \\$ComputerName\C`$"
324 | } # end else
325 | } # end if
326 | else
327 | { # This server is not online
328 | $automateFinalOutput.CapturedOutput += "Unable to connect - $ComputerName"
329 | } #end else
330 | } # end Process
331 |
332 | #*=============================================================================
333 | #* END OF SCRIPT: getServerUptime
334 | #*=============================================================================
335 |
336 |
--------------------------------------------------------------------------------
/Uptime Statistics Solution/Screenshots/UptimeStatistics.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gavsto/Gavsto-Public-Scripts/d6cff9262e6ca09c310e5a471ceb5e91f1a44e83/Uptime Statistics Solution/Screenshots/UptimeStatistics.png
--------------------------------------------------------------------------------
/Uptime Statistics Solution/Uptime Statistics to EDF.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 | 6284
9 | 308
10 | Uptime Statistics to EDF
11 | Author: Gavin Stone - https://www.gavsto.com
12 |
13 | If the EDFs don't load or you get an error when opening this script - import the XML twice.
14 | 0,
15 | 0,
16 | 1
17 | 0
18 | 0
19 | 0
20 | H4sIAAAAAAAEAFWPQQrCMBRE94J3yAEakjRW0/LJRkUQBbHiPm2+kE1a0gTs7aVFoa6GmeENDFxci37Ag4lGw2PsUQtgs8I9+X2XfMSgObCFg+O7d2FiUNcmpmDNmJGz8cmEkQiZkZwLRcpqIyspye0KbEFA3QbXxyeGwXV+mv4Pvv0pOat5o4RCtPSlTEOFwB01Dc8p56Io7LYQJbc/fgaALQ+tVx9Rscej4AAAAA==
21 | H4sIAAAAAAAEAOVcaXPbyNH+TFf5P0xobUJGBASABK9dKZYl2qvElvSK0iop25UFiQGJLAgwOCQzXv/3dM8BDEBK1mEn7zoq2yLm6Jnp8+ke0D+Mp7G/TA+d1Nl7+oSQH/hzwh7gcfQhjR3sfenTwE3Ijuw4dWJnQVMaK22vgmjiBEo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+GKvtb4bVVtuyJpNBV5tYNtU6U+ppE8d1tZ7hUduze6bXe7RK81TiYZzufjucpm2v3+9TzWmDZnc6A0vru15f61rTPp3Qvj1x+4/gtJJcPYzTvW+G032nbxiTgacNJi7qdL+jDahjaZ5Fu32PuhOnM3g8py+WD+Nz/9vh86RDzQEF39GZWFpnQPuaY4FG2z27PTF7PcebdB7B50qe/jBuD74ZboPz6HQM19EGbTrROq5pawNj4mn2ZNLuW4Op4dqPCYqlIsbDeG3+pv4zgluZDZ7DgBBoaz3qGOBCbGC71e1rU/AjrmN4vZ7nPYLZlWTkgez+bWV2g1vYvR+u5JcXE7wex4pBfhV9Gl3TGLBaEOSvRYpK7xg3mqT+NJGvGDqB/AYdewtZkMIL1CF5Xi5JPN8sv0f+txPmfyNHlM/iP175N6p1kDuHRQAA
22 | 1
23 | 0b818eed-f8ab-11e7-ab02-00155d65190d
24 | 0
25 |
26 |
27 |
28 |
29 |
30 |
31 | 634
32 |
33 | Period in Days
34 | 3
35 | 0
36 | 0
37 | Uptime Statistics
38 | 0
39 | 0
40 | The number of days the statistics were calculated from
41 | c1722256-3f75-442c-ace1-de1f106ac953
42 | false
43 | false
44 | false
45 | false
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | 635
55 |
56 | Number of Crashes in Period
57 | 0
58 | 0
59 | 0
60 | Uptime Statistics
61 | 0
62 | 0
63 | Number of Crashes over the specified number of days
64 | c068ce9e-535f-4527-836f-028812fef2a5
65 | false
66 | false
67 | false
68 | false
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | 636
78 |
79 | Number of Reboots in Period
80 | 0
81 | 0
82 | 0
83 | Uptime Statistics
84 | 0
85 | 0
86 | Number of Reboots over specified period
87 | 2322bb96-b25e-4cef-badd-70fe5f571f73
88 | false
89 | false
90 | false
91 | false
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 | 637
101 |
102 | Number of Minutes Down in Period
103 | 5
104 | 0
105 | 0
106 | Uptime Statistics
107 | 0
108 | 0
109 | Number of Minutes Down over Specified Period
110 | 2e3f888e-a39e-4492-8df8-62c8ebe85bd8
111 | false
112 | false
113 | false
114 | false
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 | 638
124 |
125 | Number of Minutes Up in Period
126 | 4
127 | 0
128 | 0
129 | Uptime Statistics
130 | 0
131 | 0
132 | Number of Minutes Up over specified period
133 | 8a800b9f-9bde-4c84-9ea2-f2e68fedba49
134 | false
135 | false
136 | false
137 | false
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 | 639
147 |
148 | Percentage of DownTime in Period
149 | 2
150 | 0
151 | 0
152 | Uptime Statistics
153 | 0
154 | 0
155 | Percentage of Downtime over Specified Period
156 | 8b4e19e6-b4b2-49e8-a2f8-5753b177afb4
157 | false
158 | false
159 | false
160 | false
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 | 640
170 |
171 | Percentage of UpTime in Period
172 | 1
173 | 0
174 | 0
175 | Uptime Statistics
176 | 0
177 | 0
178 | Percentage of UpTime over specified period
179 | f88440da-93eb-4d15-90bf-5bb3829c0d55
180 | false
181 | false
182 | false
183 | false
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 | 641
193 |
194 | Date of Last Retrieval Of Stats
195 | 0
196 | 0
197 | 0
198 | Uptime Statistics
199 | 0
200 | 0
201 | Date of Last Retrieval Of Stats
202 | 9bd070f5-7ea0-4c5a-9268-cea2da0f77ff
203 | false
204 | false
205 | false
206 | false
207 |
208 |
209 |