-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cisco-Apps.ps1
102 lines (90 loc) · 7.87 KB
/
Cisco-Apps.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#Neueste Version des Cisco Jabber VDI Agent mit Powershell herunterladen
write-verbose -Message "Download CiscoJVDIAgentSetup.msi" -Verbose
$webRequest = Invoke-WebRequest -UseBasicParsing -Uri ("https://www.webex.com/downloads/jabber/jabber-vdi.html") -SessionVariable websession
$regexURL = "https\:\/\/binaries\.webex\.com\/jabbervdiwindows\/\d*\/CiscoJVDIAgentSetup.msi"
write-verbose -Message "------------------------------" -Verbose
write-verbose -Message "Available versions" -Verbose
$webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value }
write-verbose -Message "------------------------------" -Verbose
$appMSI = "c:\Windows\Temp\CiscoJVDIAgentSetup.msi"
write-verbose -Message "Download latest CiscoJVDIAgentSetup.msi to $appMSI" -Verbose
$appURL = $webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value } | Select-Object -First 1
Invoke-WebRequest -UseBasicParsing -Uri $appURL -OutFile $appMSI
##################################################################################################################################################
#Neueste Version der Cisco Jabber Application mit Powershell herunterladen
write-verbose -Message "Download CiscoJabberSetup.msi" -Verbose
$webRequest = Invoke-WebRequest -UseBasicParsing -Uri ("https://www.webex.com/downloads/jabber/jabber-vdi.html") -SessionVariable websession
$regexURL = "https\:\/\/binaries\.webex\.com\/static-content-pipeline\/jabber-upgrade\/production\/jabberdesktop\/apps\/windows\/public\/\d*.*.*.*\/CiscoJabberSetup.msi"
write-verbose -Message "------------------------------" -Verbose
write-verbose -Message "Verfuegbare Versionen" -Verbose
$webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value }
write-verbose -Message "------------------------------" -Verbose
$appMSI = "c:\Windows\Temp\CiscoJabberSetup.msi"
write-verbose -Message "Download der neuesten CiscoJabberSetup.msi nach $appMSI" -Verbose
$appURL = $webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value } | Select-Object -First 1
Invoke-WebRequest -UseBasicParsing -Uri $appURL -OutFile $appMSI
##################################################################################################################################################
#Neueste Version des Cisco Jabber VDI Clients (x64) mit Powershell herunterladen
write-verbose -Message "Download CiscoJVDIClientSetup-x86_64.msi" -Verbose
$webRequest = Invoke-WebRequest -UseBasicParsing -Uri ("https://www.webex.com/downloads/jabber/jabber-vdi.html") -SessionVariable websession
$regexURL = "https\:\/\/binaries\.webex\.com\/jabbervdiwindows\/\d*\/CiscoJVDIClientSetup-x86_64.msi"
write-verbose -Message "------------------------------" -Verbose
write-verbose -Message "Verfuegbare Versionen" -Verbose
$webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value }
write-verbose -Message "------------------------------" -Verbose
$appMSI = "c:\Windows\Temp\CiscoJVDIClientSetup-x86_64.msi"
write-verbose -Message "Download der neuesten CiscoJVDIClientSetup-x86_64.msi nach $appMSI" -Verbose
$appURL = $webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value } | Select-Object -First 1
Invoke-WebRequest -UseBasicParsing -Uri $appURL -OutFile $appMSI
##################################################################################################################################################
#Neueste Version des Webex Teams VDI HVD Installers (x64) mit Powershell herunterladen
# Beispiel-URL: https://binaries.webex.com/vdi-hvd-aws-gold/20210122084730/Webex.msi
# oder https://binaries.webex.com/WebexTeamsDesktop-Windows-Gold/Webex.msi
write-verbose -Message "Download Webex.msi" -Verbose
$webRequest = Invoke-WebRequest -UseBasicParsing -Uri ("https://www.webex.com/downloads/teams-vdi.html") -SessionVariable websession
$regexURL = "https\:\/\/binaries\.webex\.com\/vdi-hvd-aws-gold\/\d*\/Webex.msi"
write-verbose -Message "------------------------------" -Verbose
write-verbose -Message "Verfuegbare Versionen" -Verbose
$webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value }
write-verbose -Message "------------------------------" -Verbose
$appMSI = "c:\Windows\Temp\Webex.msi"
write-verbose -Message "Download der neuesten Webex.msi nach $appMSI" -Verbose
$appURL = $webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value } | Select-Object -First 1
Invoke-WebRequest -UseBasicParsing -Uri $appURL -OutFile $appMSI
##################################################################################################################################################
#Neueste Version des Webex Teams VDI Desktop Plugin (x64) mit Powershell herunterladen
# Beispiel-URL: https://binaries.webex.com/WebexTeamsDesktop-Windows-VDI-gold-Production/20210409083713/WebexVDIPlugin.msi
write-verbose -Message "Download WebexVDIPlugin.msi" -Verbose
$webRequest = Invoke-WebRequest -UseBasicParsing -Uri ("https://www.webex.com/downloads/teams-vdi.html") -SessionVariable websession
$regexURL = "https\:\/\/binaries\.webex\.com\/WebexTeamsDesktop-Windows-VDI-gold-Production\/\d*\/WebexVDIPlugin.msi"
write-verbose -Message "------------------------------" -Verbose
write-verbose -Message "Verfuegbare Versionen" -Verbose
$webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value }
write-verbose -Message "------------------------------" -Verbose
$appMSI = "c:\Windows\Temp\WebexVDIPlugin.msi"
write-verbose -Message "Download der neuesten WebexVDIPlugin.msi nach $appMSI" -Verbose
$appURL = $webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value } | Select-Object -First 1
Invoke-WebRequest -UseBasicParsing -Uri $appURL -OutFile $appMSI
##################################################################################################################################################
#Neueste Version der Cisco Webex Meetings-Desktop-App mit Powershell herunterladen
# Beispiel-URL: https://akamaicdn.webex.com/client/WBXclient-41.4.5-14/webexapp.msi
# oder https://akamaicdn.webex.com/client/webexapp.msi
write-verbose -Message "Download webexapp.msi - Cisco Webex Meetings-Desktop-App" -Verbose
$appMSI = "c:\Windows\Temp\webexapp.msi"
write-verbose -Message "Download der neuesten webexapp.msi nach $appMSI" -Verbose
$appURL = "https://akamaicdn.webex.com/client/webexapp.msi"
Invoke-WebRequest -UseBasicParsing -Uri $appURL -OutFile $appMSI
##################################################################################################################################################
#Neueste Version der Cisco Webex Meetings Desktop VDI Plugin mit Powershell herunterladen
#Beispiel-URL: https://akamaicdn.webex.com/client/WBXclient-41.4.5-14/webexvdi.msi
write-verbose -Message "Download webexvdi.msi - Cisco Webex Meetings Desktop VDI Plugin" -Verbose
$webRequest = Invoke-WebRequest -UseBasicParsing -Uri ("https://bgetem.webex.com/webappng/sites/bgetem/dashboard/download") -SessionVariable websession
$regexURL = "https\:\/\/akamaicdn\.webex\.com\/client\/WBXclient-\d*.\d*.\d*-\d*\/"
write-verbose -Message "------------------------------" -Verbose
write-verbose -Message "Verfuegbare Versionen" -Verbose
$webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value }
write-verbose -Message "------------------------------" -Verbose
$appMSI = "c:\Windows\Temp\webexvdi.msi"
write-verbose -Message "Download der neuesten webexvdi.msi nach $appMSI" -Verbose
$appURL = $webRequest.RawContent | Select-String -Pattern $regexURL -AllMatches | ForEach-Object { $_.Matches.Value } | Select-Object -First 1
Invoke-WebRequest -UseBasicParsing -Uri "$($appURL)webexvdi.msi" -OutFile $appMSI