-
Notifications
You must be signed in to change notification settings - Fork 3
/
GlobalVariablesExample.ps1
31 lines (24 loc) · 1.18 KB
/
GlobalVariablesExample.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#Edit this file to suit your enviorment. Change the name to GlobalVaribles.ps1
$global:SCCM_Site = "LAB"
$global:SCCM_Share = "\\SCCMPS1\SoftwareShare\Applications"
$global:SCCM_Share_Test_Folder = "SomeFolderThatExists"
$global:SCCM_Share_Letter = "P"
$global:IconsFolder = "$PSScriptRoot\bin\icons"
$global:SCCM_ALL_DP_Group = "All Distribution Points"
$global:SCCM_SourceFolderRegex = "[a-zA-Z0-9_.+-]+ [a-zA-Z0-9_.]+ \(R[0-9]\)"
$VersionRegex = "\d+(\.\d+)+"
$MaintainedApps = (Get-Content "$PSScriptRoot\GlobalVaribles.json" | ConvertFrom-Json).MaintainedApps | Sort-Object -Property Name
foreach ($app in $MaintainedApps) {
$app.RootApplicationPath = $SCCM_Share + "\" + $app.RootApplicationPath
}
# For Get-OutDatedApps Scheduled Task.
$Recipients = "[email protected]"
$EmailSender = "[email protected]"
$SMTPServer = "authappmail.domain.local"
# Newely Packaged Applications and Packages will auto deploy to this collection
$TestCollection = "Test Collection"
# For Pub-AppToProduction
$NumberOfPackagesToKeep = 3 #1 current and 2 previous
# Internal Powershell Repo
# https://kevinmarquette.github.io/2017-05-30-Powershell-your-first-PSScript-repository/
$InternalModuleRepo = "lab-modules"