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-CiscoIPCommunicator.ps1
Last active July 25, 2017 12:49
Cisco IP Communicator - 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.
@chrisATautomatemystuff
chrisATautomatemystuff / Deploy-CiscoIPCommunicatorToFront.ps1
Created July 25, 2017 12:51
Bring Cisco IP Communicator to Front on calls (Self-Service)
<#
.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.
<#
.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.
$insertFilePath = "C:\IDM\<DISTRICT>_students_insert.csv"
$content = get-content -Path $insertFilePath
if($content -ne $null)
{
Import-Module ActiveDirectory
#DEFINE CURRENT DATE AND TIME
$currentDateTime = (Get-Date).ToString('yyyy-MM-dd@hhmm')
#DEFINE CURRENT DATE
@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)) {
@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
<#
.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.
#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
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
@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.