Package Zoom (the latest version) with winget as an Win32 App in Intune (2/2)

  Рет қаралды 2,833

Intune & Vita Doctrina

Intune & Vita Doctrina

Күн бұрын

In this video, we package Zoom client with always the latest version with help of a command line update tool called winget.
(to see first video go: • Package Zoom (specific... )
We package it as a Win32 app in Intune and put it in the company portal.
The problem is since we don't know what is the latest version we cannot hardcode the detection rule to a specific version to check for. Instead, we create a detection script that does the checking for us.
I did pretty many errors in this video, so be sure to copy the scripts from this description that are correct and working, the logic and thoughts in the video are however correct.
==Install script (PowerShell)==
Install Zoom latest version using winget
Author: John Bryntze
Date: 20th December 2022
Find path to winget.exe
$JBNWinGetResolve = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"
$JBNWinGetPathExe = $JBNWinGetResolve[-1].Path
$JBNWinGetPath = Split-Path -Path $JBNWinGetPathExe -Parent
set-location $JBNWinGetPath
Run winget.exe
.\winget.exe install -e --id Zoom.Zoom --scope=machine --silent --accept-package-agreements --accept-source-agreements
==Detection Script (PowerShell)==
Purpose: Checking that local installed Zoom is equal or greater to the latest online
Author: John Bryntze
Date: 20th December 2022
Find path to WinGet.exe
$JBNWinGetResolve = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"
$JBNWinGetPathExe = $JBNWinGetResolve[-1].Path
$JBNWinGetPath = Split-Path -Path $JBNWinGetPathExe -Parent
set-location $JBNWinGetPath
What is the latest version of Zoom online
$JBNSearch = .\winget.exe search -e --id Zoom.Zoom --accept-source-agreements
$JBNOnlineVersion = (-split $JBNSearch[-1])[-2]
What is the version installed
$JBNLocalSearch = .\winget.exe list -e --id Zoom.Zoom
$JBNCheckIfAvailavbleExist = (-split $JBNLocalSearch[-3])[-2]
if($JBNCheckIfAvailavbleExist -eq "Available")
{
$JBNLocalVersion = (-split $JBNLocalSearch[-1])[-3]
}
else
{
$JBNLocalVersion = (-split $JBNLocalSearch[-1])[-2]
}
if($JBNLocalVersion -eq "input")
{
write-host "Zoom is not installed"
exit 1
}
if($JBNLocalVersion -ge $JBNOnlineVersion)
{
Write-Output "The Device got the latest version of Zoom installed"
exit 0
#Detection success
}
else
{
exit 1
#Detection failed
}

Пікірлер: 65
Package Zoom (specific version) with winget as an Win32 App in Intune (1/2)
31:27
Intune Proactive Remediations + Winget.exe = Love
41:25
Intune & Vita Doctrina
Рет қаралды 11 М.
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 103 МЛН
Cool Parenting Gadget Against Mosquitos! 🦟👶
00:21
TheSoul Music Family
Рет қаралды 12 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 13 МЛН
S04E11 - How to Customize the Intune Company Portal (I.T)
7:40
Intune Training
Рет қаралды 7 М.
Windows 10: One Year to Go -- & what we do next!
16:29
ExplainingComputers
Рет қаралды 77 М.
Enhancing VDI Performance with Teams SlimCore Optimization
12:26
Neil McLoughlin
Рет қаралды 428
you need to learn Ansible RIGHT NOW!! (Linux Automation)
21:21
NetworkChuck
Рет қаралды 879 М.
Configure Windows LAPS in Intune
34:29
Intune & Vita Doctrina
Рет қаралды 4 М.
Deploy Zoom with Microsoft Intune
7:12
Dean Ellerby MVP
Рет қаралды 6 М.
Microsoft Intune From Zero to Hero
39:08
Andy Malone MVP
Рет қаралды 226 М.
22. How to Package and Deploy Win32 application with Intune
17:33
MSFT WebCast
Рет қаралды 50 М.
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 103 МЛН