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
<# | |
.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
<# | |
.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
$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 |
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)) { |
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
<# | |
.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
#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
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
<# | |
.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. |
OlderNewer