-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSet-ScriptSettings.ps1
More file actions
16 lines (16 loc) · 856 Bytes
/
Set-ScriptSettings.ps1
File metadata and controls
16 lines (16 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Set-ScriptSettings {
$RegistryPath = ''
if (-not ($RegistryPath)) {
New-Item -ItemType Container -Path $RegistryPath -Force
}
# ApplicationShare specifies where to look for XMLFileName
Set-ItemProperty -Path $RegistryPath -Name 'ApplicationShare' -Value ''
# XMLFileName contains the name of the file which holds information about what to do
Set-ItemProperty -Path $RegistryPath -Name 'XMLFileName' -Value 'AppInfo.xml'
# PSADTSource is used when parameter -DoDownload is specified
# Points to a folder that contains PSADT
Set-ItemProperty -Path $RegistryPath -Name 'PSADTSource' -Value ''
# TeamsWebhookUri is used when parameter -SendToTeams is used
# The uri is created when adding a webhook to a team in Microsoft Teams
Set-ItemProperty -Path $RegistryPath -Name 'TeamsWebhookUri' -Value ''
}