This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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 |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### "#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)) { |
NewerOlder