Skip to content

Instantly share code, notes, and snippets.

View qcomer's full-sized avatar

Quinntin Comer qcomer

View GitHub Profile
@qcomer
qcomer / Win_Set-TaskBarLocation.ps1
Created June 20, 2024 21:26
Set taskbar location to the left side of the screen
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.NOTES
Version: 0.1
Author: qcomer (https://github.com/qcomer)
Last Modified: Thu Jun 20 2024
Modified By: qcomer
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.NOTES
Version: 0.1
Author: qcomer (https://github.com/qcomer)
Last Modified: Tue Oct 03 2023
Modified By: qcomer
@qcomer
qcomer / Win_Remove-Bloatware.ps1
Created July 27, 2023 21:22
Remove-Bloatware
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.NOTES
Version: 0.1
Author: qcomer (https://github.com/qcomer)
Last Modified: Thu Jul 13 2023
Modified By: qcomer
@qcomer
qcomer / Win_Import-Fonts.ps1
Created July 5, 2023 15:20
Import-Font.ps1
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.NOTES
Version: 0.1
Author: qcomer (https://github.com/qcomer)
Last Modified: Wed Jul 05 2023
Modified By: qcomer
#!/bin/bash
list=()
# generate user list of users with UID greater than 500
for username in $(dscl . list /Users UniqueID | awk '$2 > 500 { print $1 }'); do
# Checks to see which usernames are reported as being admins. The
# check is running dsmemberutil's check membership and listing the
# accounts that are being reported as admin users. Actual check is
## Set Variables
APIFingerprint="$APIFingerprint"
APIOrganizationID="$APIOrganizationID"
APIUserID="$APIUserID="
InstallMenubar="$InstallMenubar"
#### Do Not Change these variables ####
LogFileTimeStamp=$(date +"%Y-%m-%d_T%H%M%Z")
#!/bin/bash
if [[ "$Install" != "true" ]]; then
echo "Installation of Backup Manager Declined. Exiting Script..."
exit 1
else
echo "Installation is set to true. Proceeding..."
fi
if [[ -z "$DNSFilter_SiteKey" ]]; then
#!/bin/bash
# Getting the current Device Type from the Model
deviceType=$(sysctl -n hw.model)
# Getting the Serial Number (last 7 characters)
serialNumber=$(system_profiler SPHardwareDataType | awk '/Serial/ {print $4}' | rev | cut -c -7 | rev)
CURRENTNAME=$(defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName)
# Checking to see if the CS_PROFILE_NAME is being set by Datto RMM
if [[ -z "$CS_PROFILE_NAME" ]]; then
# If Variable is not provided, assign a static value
$Package = '@AppName@'
$Params = '@params@'
if ($Package -like '@AppName*') {
Write-Output 'ERROR: No App Name Set.'
Exit 1
} else {
$script:logname = "$Package"
}
$LogFileSuffix = "$((Get-Date).ToString('yyyyMMdd_HHmmssz')).log"
function Write-log {
@qcomer
qcomer / Win-Test-ThreatLockerInstalled.ps1
Created March 27, 2023 21:04
Tests if Threatlocker is installed and running for DRMM
<#
.SYNOPSIS
Tests to see if the Threatlocker Service is installed and Running
.DESCRIPTION
Tests to see if the Threatlocker Service is installed and running.
If not, creates a DRMM Alert.
.NOTES
Version: 0.1
Author: qcomer (https://github.com/qcomer)
Last Modified: Mon Mar 27 2023