-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallZoomSettings.ps1
More file actions
39 lines (32 loc) · 2.92 KB
/
Copy pathinstallZoomSettings.ps1
File metadata and controls
39 lines (32 loc) · 2.92 KB
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
32
33
34
35
36
37
38
39
if (Test-Path -Path registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\ZoomUMX\PerInstall) {
# Create new items with values
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'autostart' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'enableupdate' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'NoGoogle' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'NoFacebook' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'NoSSO' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'ZoomAutoStart' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'AutoUpdate' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'EnableSilentAutoUpdate' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'KeepSignedIn' -Value "true" -PropertyType String -Force
# Get out of the Registry
Pop-Location
}
else {
# Set the location to the registry
Set-Location -Path 'HKLM:\SOFTWARE\WOW6432NODE'
# Create a new Key
Get-Item -Path 'HKLM:\SOFTWARE\WOW6432NODE' | New-Item -Name 'ZoomUMX\PerInstall' -Force
# Create new items with values
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'autostart' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'enableupdate' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'NoGoogle' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'NoFacebook' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'NoSSO' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'ZoomAutoStart' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'AutoUpdate' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'EnableSilentAutoUpdate' -Value "true" -PropertyType String -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432NODE\ZoomUMX\PerInstall' -Name 'KeepSignedIn' -Value "true" -PropertyType String -Force
# Get out of the Registry
Pop-Location
}