Skip to content

Instantly share code, notes, and snippets.

View qcomer's full-sized avatar

Quinntin Comer qcomer

View GitHub Profile
$script:FolderPath = [System.Environment]::GetEnvironmentVariable('TEMP', 'Machine')
function Test-ApplicationInstallbyName {
[CmdletBinding()]
param (
[Parameter()]
[string]
$SoftwareName
)
$Registry = @('HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\', 'HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\')
@qcomer
qcomer / HaloPSA Report w Links.md
Last active April 14, 2025 21:55
HTML for Example Reporting with Links
let value;
try {
const elements = Array.from(document.querySelectorAll('.oc-product-total .item-total'));
const numberElements = elements.filter(el => !isNaN(parseFloat(el.textContent)));
if (numberElements.length > 0) {
value = parseFloat(numberElements[0].textContent);
}
} catch (error) {
console.error(error);
}
@qcomer
qcomer / ghl_survey.css
Created October 16, 2024 15:52 — forked from simple10/ghl_survey.css
GHL (Go High Level) survey form CSS style customization.
/* From https://ghlexperts.com/survey-blue-navigation-bar-placement */
@charset "UTF-8";
#_builder-form > div.ghl-footer {
background: #349DFF;
position: relative;
bottom: 0;
top: auto;
left: 0;
right: 0;
param(
[parameter(mandatory = $false, position = 0)]
[string]$GlobalWhitelist = '{%^tp:whitelist_localadmin^%}',
[parameter(mandatory = $false, position = 1)]
[string]$ClientWhiteList = '{%^el:whitelist_staleusers^%}',
[parameter(mandatory = $false, position = 2)]
[string]$ClientWhiteList_wks = '{%^el:whitelist_staleusers_wks^%}'
)
$deviceType = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -ExpandProperty ProductType
$whitelist = @()
param(
[parameter(mandatory = $false, position = 0)]
[string]$GlobalWhitelist = '{%^tp:whitelist_localadmin^%}',
[parameter(mandatory = $false, position = 1)]
[string]$ClientWhiteList = '{%^el:whitelist_staleusers^%}',
[parameter(mandatory = $false, position = 2)]
[string]$ClientWhiteList_wks = '{%^el:whitelist_staleusers_wks^%}'
)
$deviceType = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -ExpandProperty ProductType
$whitelist = @()
param(
[parameter(mandatory = $false, position = 0)]
[string]$GlobalWhitelist = '{%^tp:whitelist_localadmin^%}',
[parameter(mandatory = $false, position = 1)]
[string]$ClientWhiteList = '{%^el:whitelist_staleusers^%}',
[parameter(mandatory = $false, position = 2)]
[string]$ClientWhiteList_wks = '{%^el:whitelist_staleusers_wks^%}'
)
$deviceType = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -ExpandProperty ProductType
$whitelist = @()
param(
[parameter(mandatory = $false, position = 0)]
[string]$GlobalWhitelist = '{%^tp:whitelist_localadmin^%}',
[parameter(mandatory = $false, position = 1)]
[string]$ClientWhiteList = '{%^el:whitelist_staleusers^%}',
[parameter(mandatory = $false, position = 2)]
[string]$ClientWhiteList_wks = '{%^el:whitelist_staleusers_wks^%}'
)
$deviceType = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -ExpandProperty ProductType
$whitelist = @()
param(
[parameter(mandatory = $false, position = 0)]
[string]$GlobalWhitelist = '{%^tp:whitelist_localadmin^%}',
[parameter(mandatory = $false, position = 1)]
[string]$ClientWhiteList = '{%^el:whitelist_staleusers^%}',
[parameter(mandatory = $false, position = 2)]
[string]$ClientWhiteList_wks = '{%^el:whitelist_staleusers_wks^%}'
)
$deviceType = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -ExpandProperty ProductType
$whitelist = @()
function Invoke-SentinelWebRequest {
[CmdletBinding()]
param (
[Parameter()]
[String]
$Server,
[Parameter()]
[String]
$APIToken,
[Parameter()]