Skip to content

Instantly share code, notes, and snippets.

View chrisATautomatemystuff's full-sized avatar

Chris Thomas chrisATautomatemystuff

  • Michigan, USA
View GitHub Profile
@chrisATautomatemystuff
chrisATautomatemystuff / Deploy-Application.ps1
Created February 9, 2024 16:39
SentinelOne Agent 23.3.3.264 script for PSADT
<#
.SYNOPSIS
This script performs the installation or uninstallation of an application(s).
# LICENSE #
PowerShell App Deployment Toolkit - Provides a set of functions to perform common application deployment tasks on Windows.
Copyright (C) 2017 - Sean Lillis, Dan Cunningham, Muhammad Mashwani, Aman Motazedian.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
.DESCRIPTION
The script is provided as a template to perform an install or uninstall of an applicati
@chrisATautomatemystuff
chrisATautomatemystuff / Deploy-Application.ps1
Created February 9, 2024 16:38
Arctic Wolf Agent 2023-02_137 script for PSADT
<#
.SYNOPSIS
This script performs the installation or uninstallation of an application(s).
# LICENSE #
PowerShell App Deployment Toolkit - Provides a set of functions to perform common application deployment tasks on Windows.
Copyright (C) 2017 - Sean Lillis, Dan Cunningham, Muhammad Mashwani, Aman Motazedian.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
.DESCRIPTION
The script is provided as a template to perform an install or uninstall of an applicati
@chrisATautomatemystuff
chrisATautomatemystuff / optinmodels.csv
Created February 2, 2024 18:17
list of 67 models that google will no longer support android apps or play store on if you opt-in for extended support
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 4. in line 1.
model
Acer Chromebook 11 (C732, C732T, C732L, C732LT)
Acer Chromebook 11 (CB311-8H, CB311-8HT)
Acer Chromebook 15 (CB315-1H, CB315-1HT)
Acer Chromebook 15 (CB515-1H, CB515-1HT)
Acer Chromebook 311 (C721)
Acer Chromebook 315 (CB315-2H)
Acer Chromebook 514
Acer Chromebook R13 (CB5-312T)
Acer Chromebook R13 (CB5-312T)
@chrisATautomatemystuff
chrisATautomatemystuff / chromebookinventory_sanitized.ps1
Last active February 2, 2024 18:15
chromebookinventory_sanitized.ps1
#EXPORT DEVICE REPORTS FROM GOOGLE ADMIN CONSOLE - IM TOO LAZY TO CALL GAM OR APIS RIGHT NOW
$date = Get-Date -Format yyyyMMdd
#IMPORT EACH DISTRICT CHROMEBOOK INVENTORY AND ADD A DOMAIN COLUMN FOR LATER FILTERING
$district1cros = Import-Csv -Path C:\chromebooks\district1_chromebooks.csv
$district1cros | Add-Member -MemberType NoteProperty -Name domain -Value district1
$district2cros = Import-Csv -Path C:\chromebooks\district2_chromebooks.csv
$district2cros | Add-Member -MemberType NoteProperty -Name domain -Value district2
@chrisATautomatemystuff
chrisATautomatemystuff / Deploy-Application.ps1
Created October 30, 2019 12:08
Solidworks 2019 SP4.0 - PADT
<#
.SYNOPSIS
This script performs the installation or uninstallation of an application(s).
.DESCRIPTION
The script is provided as a template to perform an install or uninstall of an application(s).
The script either performs an "Install" deployment type or an "Uninstall" deployment type.
The install deployment type is broken down into 3 main sections/phases: Pre-Install, Install, and Post-Install.
The script dot-sources the AppDeployToolkitMain.ps1 script which contains the logic and functions required to install or uninstall an application.
.PARAMETER DeploymentType
The type of deployment to perform. Default is: Install.
manufacturer model count
ASUS All Series 1
Dell Inc. Latitude 3300 16
Dell Inc. Latitude 3310 21
Dell Inc. Latitude 3310 2-in-1 7
Dell Inc. Latitude 3379 1
Dell Inc. Latitude 3380 1
Dell Inc. Latitude 3390 2-in-1 25
Dell Inc. Latitude 3410 29
Dell Inc. Latitude 3420 48
#CREATE HOME DIRECTORY
New-Item -Path $homeDirectory -ItemType Directory -Force
#APPLY PERMISSIONS TO HOME FOLDER
$identityReference = $domainName + '\' + $samAccountName
$fileSystemAccessRights = [System.Security.AccessControl.FileSystemRights]::Modify
$inheritanceFlags = [System.Security.AccessControl.InheritanceFlags]::ContainerInherit -bor [System.Security.AccessControl.InheritanceFlags]::ObjectInherit
$propagationFlags = [System.Security.AccessControl.PropagationFlags]::None
$accessControl = [System.Security.AccessControl.AccessControlType]::Allow
$accessRuleSplat = $identityReference, $fileSystemAccessRights, $inheritanceFlags, $propagationFlags, $accessControl
<#
.SYNOPSIS
This script performs the installation or uninstallation of an application(s).
.DESCRIPTION
The script is provided as a template to perform an install or uninstall of an application(s).
The script either performs an "Install" deployment type or an "Uninstall" deployment type.
The install deployment type is broken down into 3 main sections/phases: Pre-Install, Install, and Post-Install.
The script dot-sources the AppDeployToolkitMain.ps1 script which contains the logic and functions required to install or uninstall an application.
.PARAMETER DeploymentType
The type of deployment to perform. Default is: Install.
@chrisATautomatemystuff
chrisATautomatemystuff / New-Softphone.ps1
Created October 26, 2017 11:55
Configure Cisco Softphones
#REPLACE ANYTHING IN "< >" WITH REAL DATA
#Add PSSnapin for CMShell (http://www.foxnet.nl/CMShell.aspx)
Add-PSSnapin -Name CMShell
#Connect to UCM
$ucm = Connect-CM -HostName <SERVERIP> -UserName <ADMINUSERNAME> -Password <ADMINPWD> -CMVersion 'CM80'
################################################################################
#Define variables
@chrisATautomatemystuff
chrisATautomatemystuff / Microsoft.PowerShellISE_profile.ps1
Created October 13, 2017 14:24
My PowerShell Profile (Scrubbed Version)
### "#region AND #endregion HELP MAKE SCRIPTS COLLAPSIBLE WITHIN THE ISE" ###
### FIND AND CHANGE THE <WHATEVER> PLACEHOLDERS I PUT AS I SCRUBBED THE FILE ###
### PLACE THIS FILE IN THE FOLLOWING FOLDER (CREATE IT IF IT DOESN'T EXIST) : C:\USERS\<USERNAME>\DOCUMENTS\WINDOWSPOWERSHELL ###
#region Console Customization
#ELEVATED CONSOLE?
[System.Security.Principal.WindowsPrincipal]$global:currentUser =
New-Object System.Security.Principal.WindowsPrincipal([System.Security.Principal.WindowsIdentity]::GetCurrent())
if($global:currentUser.IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)) {