Intune Proactive Remediations + Winget.exe = Love

Поделиться
HTML-код
  • Опубликовано: 23 окт 2024

Комментарии • 141

  • @katherine7715
    @katherine7715 12 дней назад +1

    Thank you so much for all your help! You explain scripting in such a way that really helped me understand what was going on! You deserve a million subscribers!!!! You really are an amazing teacher!

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  11 дней назад

      Thank you so much! One of the comments who made the happiest to read - thanks a lot 🙏🏻

  • @3143iamsam
    @3143iamsam Год назад +2

    Merci John! Another great Intune videos and all working well on my test lab. Looking forward to your next videos!

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Thank you so much! recording a video howto enroll a Linux device in next video coming soon

  • @lynetteberg4807
    @lynetteberg4807 Год назад +2

    John is superb. I look amazing at work because he spells things out in a way that helps folks who have the capacity to learn, just maybe without all the hoopla. I wingetted my weekend away and most of my apps can be updated by winget (sweet), however I like controlling what is out there, so no --all for me. Its an easy tool.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      well done! I have been ill for a week and slow on replies, slowly getting better now.
      Thanks for the commend and yeah I would not recommend -all switch either, better to mange them one and one as you do. But if you help a none technical person you could teach them the -all switch for their home system as a good update advice

  • @XwolfBane18
    @XwolfBane18 Год назад +2

    Another great video John it was a 40 minutes video but felt like it was only 10 minutes very clear and easy to follow along also appreciate when you have little pop ups of information to explain things which is much appreciated as a beginner I can make sense of what your saying and follow along . Can’t wait for the next video and congratulations on 700 subscribers

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Thank you so much for this comment, wow yes 700 :) thanks again, next video should come within two weeks if not sooner

    • @XwolfBane18
      @XwolfBane18 Год назад +3

      @@IntuneVitaDoctrina keep up the great content. Will patiently wait to see the next video :)

  • @ptmohammad2886
    @ptmohammad2886 11 месяцев назад +1

    Man - You have helped me tremendously. I also integrated Chocolatey with Remediation scripts but Infosec has issues with this. lol - You should do one with Chocolatey!

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  11 месяцев назад +2

      Thanks, that is a good idea also, Chocolatey (love the name) - big fan of Winget and hope in Windows 12 it be even better and more integrated.

  • @kirtivijaysingh3164
    @kirtivijaysingh3164 Год назад +1

    Amazing tutorial !!! I implemented this and this is working like a charm. Thank you 😊

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Well done! and thanks for comment, that made my day, thanks a lot

  • @vicko78
    @vicko78 Год назад +1

    Excellent example John, thank you very much!

  • @marvnl
    @marvnl Год назад +3

    I love this guy! You are helping me in many ways around intune my friend ;).
    But regarding the Winget auto update, you created update remediation + winget for VLC, but does this mean you have to do this for all applications that we have? I mean, those will be alot of remedation reports as we have a lot of applications installed on some systems. It would be cool that it detects the installed applications and then update them all as much as possible and accept all source agreements.
    Yes, we have a few mendatory apps, but also a lot of apps that users need and are installed via Company portal. These also need to be updated of course, but there has to be a way to make just one remediation + winget scripting right?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Thanks a lot for your comment, you can do one-liner and update all, it is:
      winget.exe upgrade --all --silent
      I read the there is a bug that if you got 10 software to update only the first is silent and the other 9 are none but they get installed.
      Not all works, if you installed TeamViewer with MSI package and Winget takes down a EXE file it will complain but for home users the 'winget upgrade -all' is a pro-tip to update software
      I do scripts for each software at my work, for several reasons, I like to control what I update, I like to see the stats per app to report to my manager how many got updated and also we got software that we want to control the version because if it introduce new features I don't want the end users to be the first to tell us "Hey why does Outlook now show the icons on the right side instead of before left" or "since the upgrade this add-in stopped to work" etc...
      For an enterprise I would recommend not to run the '--all' switch and do them one by one, the template provided in this video makes it go fast, you just change the ID and you are good to go :) for home users or small businesses, sure use the --all switch and check what does not get updated and investigate why.

    • @marvnl
      @marvnl Год назад +2

      I think you are making a very valid point there. Thank you that. I can maybe do a setup for the top 10 important / command applications for on, lets say the Tuesday and a update all version set for on the Thursday. The Thursday will then see that the important apps are already up to date.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Good idea, however don't use Intune's own Software Inventory as a base for success since it can take up to a week before you see changes there (that one is slow) but if you see in ProActive Remediation the stats you can trust them.

    • @marvnl
      @marvnl Год назад +1

      @@IntuneVitaDoctrina check, thanks. I am going to play with the scripts then. Write at least for the most important apps that we always use.

    • @lynetteberg4807
      @lynetteberg4807 Год назад

      @@marvnl Great Idea

  • @gertbleus7276
    @gertbleus7276 Год назад +3

    Great video once again!

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Thanks again! this is one of my favorite videos, since it used Proactive Remediation that I use for so much stuff and also one of my new friends winget.exe that I have started to use a lot

  • @texddiaz
    @texddiaz Год назад +4

    my new IT Hero :D

  • @ecuasteelo
    @ecuasteelo Год назад +1

    Great video. Another one!
    I was under the impression that Winget apps would update automatically regardless of being installed as a Win32 app?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Thanks, It will install the latest version if not using the -v switch and then it will show success and not run again.
      Once installed you can just do a Proactive Remediation Script that run same command but you change "install" to "upgrade" and have it run every week or alike. I might do a video about that, I use it a lot at my work

  • @mlsivanovic
    @mlsivanovic Год назад +1

    Great tutorial, thank you! Keep up the good work!

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Thanks a lot, this is one of my favorite that I use a lot at work, I got over 50 scripts updating software's and I love it

  • @yuni1401
    @yuni1401 Год назад +1

    John you are the Microsoft Intune master. I am learning so many things from your channel. I just had one doubt, can I upgrade Chrome or other applications using this method? I deployed these apps using LOB and Win32 app installation and not with Winget. Do you think this script will work for LOB and Win32 apps upgrade?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Happy to hear Yunus, you can skip the last Oracle Java videos they are very specific for a few people and in general not things you need to know. Thanks for message.
      If you always want the latest Google Chrome I would use winget.exe, a lot of Organizations use Google Chrome as their app for finance, or sales tools and want to be sure not a new update break their tool and control the version. If that is the case I would Win32 app package it and control the version.
      My next video is going to be more about Autopilot but the one after that is going to be howto manage a lot of Google Chrome settings (not with Intune but with a free Google tool)

  • @ibrahimabdeltawab6418
    @ibrahimabdeltawab6418 Год назад +1

    Great 👍! Thanks so much ❤

  • @lookidraw
    @lookidraw Год назад +1

    This is great, thank you!

  • @raptechy
    @raptechy 9 месяцев назад +1

    great video! Been looking to run winget as system profile and this should fix it.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  9 месяцев назад +1

      thanks a lot, a huge fan myself of winget.exe and uses it also to update existing installations with remediation scripts (got a few videos on that also)

  • @nagarajbhat6606
    @nagarajbhat6606 Год назад +3

    Good session brother ☺️👏👍

  • @danzirulez
    @danzirulez Год назад +1

    Do you need a check if the app is running when the remediation script runs? Maybe do the whole packaging with PSADT around the winget command and you can show popup for the user that there is an update and the app needs to close and timeout the popup?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Hi DanZi, great idea.
      You don't want to update Zoom or Teams in the middle of a conference LOL :)
      I have avoided this by schedule the Remediation Scripts to run in the morning hours, I often put it at 4:00am or alike.
      I do like your idea and would recommend that for apps that are critical for users to not update in the middle while using it.
      Thanks for sharing this idea

  • @yulaw3289
    @yulaw3289 2 месяца назад +1

    super useful, thank you!

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  2 месяца назад

      Thank you so much, it is one of my own favorite videos also, I love Winget, crazy about it, and also love Remediation Scripts, so those two together are so powerful for a lot of things :)

    • @yulaw3289
      @yulaw3289 2 месяца назад +1

      @@IntuneVitaDoctrina what if the application has "unknown" version such as visual studio code? Does the logic in the script still work?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  2 месяца назад

      Good question, I checked on my own device and I don't have any saying "unknown" but know that can happen, when you run the 'winget list' for that software, and it shows unknown does it still have the header available ? if so it will work, else there is an easy way to expand the script to pick up the unknown value and action that also

    • @yulaw3289
      @yulaw3289 2 месяца назад

      @@IntuneVitaDoctrina I just tried installing one app (visual studio code) that has "unknown" value in Version column when running (winget search "Visual Studio Code")
      But after installing, it shows up with "Microsoft Visual Studio Code (User)" and has a specific version when running "winget.exe list". So the script would work fine with it. Thank you very much!
      May I have your idea on how to use winget to upgrade apps silently if the app is installed with user context, meaning that the app does not show up when running "winget list" but it is located in user profile (e.g: AppData\Local\Programs)?

    • @yulaw3289
      @yulaw3289 2 месяца назад +1

      @@IntuneVitaDoctrina I tried installing one app (visual studio code) that has version of "unknown" when running winget search "visual studio code". But after installed, it shows up as "Microsoft Visual Studio Code (User)" with "known" version when running winget list. In this case, I suppose the script would work fine with it. Thank you.
      May I have your idea on how to use winget to upgrade apps that are installed with user context, meaning it could not be found when running winget list, but it is located in user profile, e.g: AppData\Local\Programs\Microsoft VS Code\Code.exe

  • @ETWITHSANDEEP
    @ETWITHSANDEEP Год назад +1

    I am waiting for new videos. Good explanation, really i am interested in your videos

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Thank you so much, got a series of videos under production, unfortunately the next coming are specific for Oracle Java 8 users that needs to load Java in browser, it will not apply to everyone but those who need it will like those videos. For none Java 8 users it still be some videos in that is useful for everyone, like IE mode and some package/winget stuff. My goal is to release one video per month but lately it has been two or more, see if I can keep up with that :) it is fun! thanks again!

  • @miked6461
    @miked6461 Год назад +1

    Great post.. I getting the same null error with 22h2. It seems Winget desktop app installer is not installed on my tablets. is there a way to run the install previously in your script? Thank you and your video was great.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Thanks a lot Mike, if you run as a user winget.exe does it like say doesn't exist or you get an output?
      A pretty common issue is this one, you have winget.exe but it fails running under SYSTEM to get any output, is that what you mean with "null error"? if so solution is in this thread: github.com/microsoft/winget-cli/issues/2748
      But maybe you issue is that winget isn't at all at the system?

  • @eduhazard
    @eduhazard 9 месяцев назад +2

    Awesome content!I think finally MS moved the remediation to "Devices" a year later 🤣🤣 so fast hey

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  9 месяцев назад +1

      yes! too lazy to update all videos with that, but true, and I prefer the new place :)
      Thanks for the comment

    • @eduhazard
      @eduhazard 9 месяцев назад +1

      @@IntuneVitaDoctrina haha I can't judge as I'm lazy too!

  • @shabbirkhan1986
    @shabbirkhan1986 Год назад +1

    Thanks for a great video… i wanted to update .Net on few machines which were not having the latest version of it… tried other detection scripts in Intune but din’t work. I will try your scipt and check if it work.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Thanks for comment, I update .NET Framework with Windows Update, I wonder if this could be used to have winget.exe update it?
      winget.run/pkg/Microsoft/DotNet.Framework.DeveloperPack_4
      winget upgrade -e --id Microsoft.DotNet.Framework.DeveloperPack_4

  • @ctxshekhar7979
    @ctxshekhar7979 Год назад +1

    can you pls create videos on how to get the settings related to compliance policies and configuration profiles in Intune ?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      I got a few videos of that:
      Compliance Videos:
      ruclips.net/video/bjp6db3DT1Q/видео.html&ab_channel=Intune%26VitaDoctrina
      ruclips.net/video/4xKAlyuYNjg/видео.html&ab_channel=Intune%26VitaDoctrina
      ruclips.net/video/nzpk5Pq4Tl4/видео.html&ab_channel=Intune%26VitaDoctrina
      Configuration Profiles:
      ruclips.net/video/o8FSHgfZJRg/видео.html&ab_channel=Intune%26VitaDoctrina
      ruclips.net/video/WT9JbSpDiJw/видео.html&ab_channel=Intune%26VitaDoctrina
      ruclips.net/video/B1Ppfy3RbPo/видео.html&ab_channel=Intune%26VitaDoctrina
      ruclips.net/video/ChTIakzWmY0/видео.html&ab_channel=Intune%26VitaDoctrina

  • @adambarnard562
    @adambarnard562 Год назад +1

    Is there a way to "Safely" upgrade ALL Apps that has an update available? Using the same Remediation Script approach?
    I tried the Winget upgrade all and it doesn't always work. It seems like it depends on wether or not the APP is available via MSstore or Winget and also the source agreements doesn't automatically accept all the time

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Safely upgrade all, is not possible. You can add silent switch and hope for the best.
      If everything was ORGINIALLY installed by Winget you can upgrade them with Winget but if you for example installed TeamViewer with MSI and then run Winget to upgrade it will download an EXE and fail.

  • @adambarnard562
    @adambarnard562 Год назад +1

    Have you built a remediation script yet that upgrades apps that are not available on WinGet?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Some yes, before winget, some MSI resides always at the same URL, like on a cloud url, like cloudfront (AWS) and then do logic to see if the latest is installed, if not download that and run. Some scripts scrape web pages download sites but those often stop to work after awhile when they rediesign the web page so don't like those so much. I hope more and more will put their software on winget. Also hoping Windows 12 when released will integrate winget even more.

  • @SigertErzeel
    @SigertErzeel Год назад +1

    When you deploy a software update using Proactive Remediations and Winget, the original app uninstall location in the registry is removed. How can you uninstall software, using Intune, that was updated using winget? What is the uninstall command? Or would you have to create another Proactive Remediation to uninstall the software?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Good question, so Winget.Exe got uninstall, if you installed with Winget it will always work to uninstall, if not installed with Winget you might need to add a line like
      (Get-WmiObject -Classname Win32_Product | Where-Object Name -like 'NameOfSoftWareToRemove*').Uninstall()
      But if installed with Winget you can run
      winget uninstall, got an example for 7-Zip down here:
      ### Software Remediation Remove 7-Zip
      ### Author: John Bryntze
      ### Date: 4th July 2023
      ## Variables
      $JBNAppID = "7zip.7zip"
      ## Help System to find winget.exe
      Set-Location -Path ("$env:ProgramW6432\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe")
      ## Run upgrade of the software
      .\winget.exe uninstall -e --id $JBNAppID --silent --accept-source-agreements

  • @adambarnard562
    @adambarnard562 Год назад +1

    Thanks for this! I have been looking for something that will make it easier to use WinGet.
    I however have a challenge that I have not been able to remediate. Running the script, it complains about scripts being disabled on the system. No matter how I add the line to bypass the Execution policy, it just won't work, unless I first bypass /disable the Execution policy and then run the script after that.
    This will be a problem when deploying via Intune, since it will block the script from running.
    Any ideas?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      I would like to see that script and what you set, but sounds like you do all correct.
      What about first line of the script is:
      Set-ExecutionPolicy Unrestricted -Force
      Then run your lines and at the end set back the ExecutionPolicy that you want?
      The script run under SYSTEM right and not User?

    • @adambarnard562
      @adambarnard562 Год назад +1

      @@IntuneVitaDoctrina So I am testing locally with the logged in user, so I am assuming (and yes it's not good to assume, haha), that it's running under user context by default.
      I have not deployed the Script via Intune to a Test-VM and will check back with the results.
      Inserting "Set-ExecutionPolicy Unrestricted -Force" as the first line does work if that line is run first. And then secondly the other part of the script. But I would like it to set the execution policy and then run the rest of the script automatically. But let me see. If it works via Intune Remediation scripting, then I won't be bothered by that line then.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      ah cool, yeah if you deploy it under SYSTEM with Remediation script you should be good

  • @TechNerd202
    @TechNerd202 8 месяцев назад +1

    Hi John, thanks a lot for your video, it helped us a lot. I already tried your scripts and its working fine. Now i want to update Office Apps and i tried your script by just changing the App ID it gives error "Installer failed with exit code: 17006" when i searched i found that the error means the apps is open and need to closed. What i need to add in script so that it gives users warning to close the apps which are open or automatically close the apps so that upgrade can happen. Your help is really appreciate.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  8 месяцев назад +1

      Hi, happy to hear, I have taken another approach on 365 Apps, I send out a normal PowerShell script that runs only once and create a scheduled task that runs on all devices to update Office regularly, so it prompts user to close apps etc..
      Let me know if you want I do a video about it, else the script is here that you can use:
      ### Create ScheduledTask to run Microsoft 365 Apps update
      ### John Bryntze
      ### 18th April 2023
      if(Get-ScheduledTask -TaskPath "\JBN\*" -TaskName "Microsoft 365 Apps Update*")
      {
      Unregister-ScheduledTask -TaskName "Microsoft 365 Apps Update*" -Confirm:$False
      }
      ### Create Scheduled Task if doesn't already exists
      if(!(Get-ScheduledTask -TaskPath "\JBN\*" -TaskName "Microsoft 365 Apps Update*"))
      {
      $JBNAction = New-ScheduledTaskAction -Execute "C:\Program Files\Common Files\microsoft shared\ClickToRun\OfficeC2RClient.exe" -Argument "/update USER Displaylevel=true"
      $JBNTrigger = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Wednesday -At 5am
      $JBNSettings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
      $JBNTask = New-ScheduledTask -Action $JBNAction -Trigger $JBNTrigger -Setting $JBNSettings
      Register-ScheduledTask -TaskPath "\JBN Images\" -Taskname "Microsoft 365 Apps Update" -InputObject $JBNTask
      ### Win8 actually sets Windows 10, and StartWhenAvailable make it to run directly after 5am if device is down
      $JBNTaskSettings = New-ScheduledTaskSettingsSet -StartWhenAvailable -Compatibility Win8
      Set-ScheduledTask -TaskPath "JBN\" -TaskName "Microsoft 365 Apps Update" -Settings $JBNTaskSettings
      }

    • @TechNerd202
      @TechNerd202 8 месяцев назад +1

      @@IntuneVitaDoctrina thank you so much, i will try the above script, video is always better😀 and useful for others also. I have seen a task scheduler already exist and it is running daily at 3:00 am but still the Office Apps are on older version.

    • @TechNerd202
      @TechNerd202 8 месяцев назад +1

      @@IntuneVitaDoctrina is the video on the way🤔 ...just asking out of curiosity 😉, anyways thank you so much for your help

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  8 месяцев назад

      @@TechNerd202 thanks for reminder, - next video be about LAPS and already recorded and after windows 365 but then this one should happen

    • @TechNerd202
      @TechNerd202 8 месяцев назад

      @@IntuneVitaDoctrina Appreciate your support👍

  • @ETWITHSANDEEP
    @ETWITHSANDEEP Год назад +1

    Good session

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Thanks a lot Sandeep, it is actually one of my own favorites of my own videos this one :)

  • @edd1e316
    @edd1e316 Год назад +1

    I was wondering, is it possible to modify the script so that if it doesn't find the specified application installed, it then installs it?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Hi Edward, yes, since Remediation Script installs, you don't have to modify there, but the Detection Script you have to change it to always exit with 1 EXCEPT if the latest is already installed.
      I can post a full scrip here if needed, but in general you should just change the part where it says it doesn't find the software and change exit from 0 to 1

    • @edd1e316
      @edd1e316 Год назад

      @@IntuneVitaDoctrina Gotcha makes sense, I guess the only other hurdle I have is, what if the software version installed is 32 bit and I'd like to remove that and upgrade to 64?

  • @sharaqafzaal1546
    @sharaqafzaal1546 3 месяца назад +1

    I am struggling with one issue at the user level App prompt for the admin password to upgrade for standard user.Thanks for the detailed video.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  3 месяца назад +1

      Hi, interesting. Is the app itself installed under c:\progam files? or under user profile or elsewhere?
      If you let me know which app it is the wingetID, I'll take a look. You could do the upgrades for them, by running a remediation script every day, and have SYSTEM update it, unless like you say it is a user app, but user apps normally doesn't require local admin as it is installed in the users own space. please give me more info and I'll do my best to help you

    • @sharaqafzaal1546
      @sharaqafzaal1546 3 месяца назад +1

      @@IntuneVitaDoctrina I am pushing through MDM Jump Cloud with all use able switches it downloaded the required updates at the installation ask for non admin users to provide password like I update Adobe Acrobat Reader

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  3 месяца назад

      MDM Jump Cloud? not using Microsoft Intune?
      Don't know that product, but can the software be pushed at System level that would be better

    • @sharaqafzaal1546
      @sharaqafzaal1546 3 месяца назад +1

      @@IntuneVitaDoctrina not using InTune however using Winget command to upgrade all app. It's ask for the password at user end.

    • @sharaqafzaal1546
      @sharaqafzaal1546 3 месяца назад +1

      # Upgrade all packages silently, forcing updates, and accepting license agreements
      cmd.exe /c "winget upgrade --all --recurse --silent --force --disable-interactivity --accept-package-agreements --skip-dependencies --accept-source-agreements -a x64"

  • @olegproscurchin8200
    @olegproscurchin8200 Год назад +1

    Hi John, and maybe someone else did have and fix this issue. I'm pushing your detection/remediation scripts to my machines (Zoom app) and around 70% are upgrade ok. The rest of them I see in the logs that detection fails (Powershell exit code is 1), which mean it should proceed to remediation and upgrade, but it never happens (I don't see remediation to run) or sometimes the AgentExecutor log say it did run and with exit code 0, but I'm pretty sure it didn't, as I have my custom logs in the script, and I don't see them being generated. So I'm just wondering of someone else got a similar issue and second question will remediation script actually execute if for example Zoom app/process is actually running or it will drop it and attempt to upgrade next time?
    Thanks all.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Great job Oleg, I would remote to one of those device failing and run the both scripts manually or from SYSTEM with help of psexec -i -s to see what output you get from the variables.

    • @olegproscurchin8200
      @olegproscurchin8200 Год назад +1

      @@IntuneVitaDoctrina on most of them running it manually will just work fine, but what's interesting on some of them when I run .\winget.exe list or upgrade it doesn't give me any output, instead I can install or uninstall using --id. Looks like winget issue. Do you know if there is a way to re-install/uninstall Winget? Initially I've tried to push it using new store app, but did run into some issues and pushing it now as Win32 app. Some of the machines has it under to location. So just wondering that initial install does cause some issue and if I can clean them up and reinstall? Thanks again for your patience about my stupid questions :)

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +1

      Yes I have had some older devices not giving any output, annoying, fixed it from this link:
      github.com/microsoft/winget-cli/issues/2748
      basically needed a newer version of Visual C++ Redistributables was needed, read in the comments of the link above the post from "rozmansi commented on Jan 30" that fixed it for me, hope it does for you and I strongly believe so

  • @Pilami_
    @Pilami_ Год назад +1

    How can we use Proactive remediations to update a CSV on a Storage account, that we can use for PBI reporting? :)

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      PBI = Power BI?
      This sound complicated, but maybe still possible. The Storage account, is that in Azure? either way the script must have permission there, and if you put credentials or an API token or alike in the script, it will be in clear text for a short while on the client itself.
      First the script needs to create the data, that is easy, then connect to the storage with credentials (risky)... yeah could work but hmmm doesn't sound optimal for this user case

    • @Pilami_
      @Pilami_ Год назад

      @@IntuneVitaDoctrina This guy has done something similar to what we need, but to difficult for me to follow without some script examples: ruclips.net/video/JOYcOmJOk6k/видео.html

    • @Pilami_
      @Pilami_ Год назад +1

      I am also not sure how multiple clients can update the same csv.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      if the process lock the file then no, but you can write to a Database that handles it or a queue system, but now we are way out of Intune and Remediation scripts, so maybe we are complicating things too much :)
      Do you got any other system that can pick up data? like Splunk?

    • @Pilami_
      @Pilami_ Год назад +1

      My problem is that the company is very decentralised and not all clients are configured using intune, they are however all enrolled in intune now, but the reporting is rather difficult to get out. At Group level, this is what we are trying to get hold of and visualise using Power BI. I don't have Splunk, but can setup most other common and easily managed Azure services.We would like to see Firewall status (this one you can actually export fine, would like it automatic though), OS Patch status and Bitlocker. The last 2 are problematic.

  • @ah7020
    @ah7020 Год назад +1

    z
    Hi John, My proactive remediation doesn't apply at all. no error message or complete. devices are not showing in overview.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      No idea who is Tim :) but yes a few got this, the fix is in this link
      github.com/microsoft/winget-cli/issues/2748

    • @ah7020
      @ah7020 Год назад

      @@IntuneVitaDoctrina My bad! I will check that. Thank you John!

    • @ah7020
      @ah7020 Год назад

      @@IntuneVitaDoctrina I am
      running it as a logged in user and still see the problem

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      the fix is to install VC++ think there is a link in the thread

    • @ah7020
      @ah7020 Год назад

      @@IntuneVitaDoctrina Do you have a different method to update zoom rooms from intune or with powershell remotely?

  • @slundy
    @slundy 11 месяцев назад

    Was just testing the winget commands and for whatever reason vlc does not want to run silently. Anyone else run into that issue?

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  11 месяцев назад

      much possible it doesn't honor the --silent switch, which it should, can send arguments, forgot if it is an EXE or MSI. I will check next time I run it

  • @scobin85
    @scobin85 8 месяцев назад +1

    Sadly only works with E3 or above licenses

  • @supersonicazn
    @supersonicazn Год назад +1

    Having trouble with that "resolve-path". The script always fails for me when I run it with that.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Hi Sam, could you please post your first line? and you save it as a .ps1 file or running from PowerShell ISE?
      What exactly message do you get?

    • @supersonicazn
      @supersonicazn Год назад +2

      @@IntuneVitaDoctrina It was the section under finding winget.exe. "Cannot index into a null aray".
      I also get Unexpected token '.Path' in expression or statement.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      That could mean that the device you run it on is missing that path and winget.exe, what OS is it? Windows 11 Professional, Enterprise? or is it Windows 10? is it 22H2?

    • @supersonicazn
      @supersonicazn Год назад +1

      @@IntuneVitaDoctrina Enterprise 21H2. It's odd because some machines find the winget.exe but some do not.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      21H2 is a bit old now, you can install winget.exe (Windows Package Manager), either install it or why not update to 22H2 at least and it should come with it

  • @TonyCai
    @TonyCai Год назад +1

    I hate that Intune is not instant lol

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад +2

      "hate" is too strong word for me, but yes I agree it is too slow. It is because Intune is an Enterprise tool and you deploy to 10000 devices etc... but when you deploy to only one... it is sooo long to get feedback unless you check the local logs of course :)
      For macOS the tool Jamf, it is soo fast! it report quickly success/failures in console.

  • @veledulmaraz
    @veledulmaraz Год назад +1

    #As an alternative way to find path to winget.exe
    Set-Location -Path ('{0}\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe' -f $env:ProgramW6432)

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Thanks a lot, FANTASTIC it not only shorter a one-liner it is also easier to to understand :) I will start to use this one from now on.

    • @ah7020
      @ah7020 Год назад

      what path is that? on my kiosk device, it is located in the appdata\local\microsoft folder. How is Intune run that. Running as system is disabled.

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      I missed this question, sorry, running as System is disabled, if it runs as the logged in user they should already have a path to it so you should just need to call winget.exe, no need for full path

    • @ah7020
      @ah7020 Год назад +1

      @@IntuneVitaDoctrina winget doesnt have the latest version of zoom room. 😢

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      thanks, I noticed the same, it got the 6th of March version and not the 20th.
      Zoom Zoom.Zoom 5.13.11835 winget
      I'm going to speak my Zoom rep and ask why they are so late to update version on Winget.
      Until then you can download the installer and Win32 App package it but I know it is not so fun:
      zoom.us/client/5.14.0.13888/ZoomInstallerFull.exe?archType=x64
      Alternative I'll look into do a PowerShell Script that scrape the download site on the latest version, download and install, that could be another video for my channel also

  • @ajax2126
    @ajax2126 Год назад +1

    Hi John,
    I would like suggest you this code to find winget folder, it's shorter
    $path = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"
    Set-Location $(Get-ItemProperty $path).DirectoryName

    • @IntuneVitaDoctrina
      @IntuneVitaDoctrina  Год назад

      Thanks a lot Ajax, yours is a lot shorter, better, easier to understand than my code that takes more lines, nice one!
      I have now started to use a one-liner from another comment on another video that I slightly modified:
      Set-Location -Path ("$env:ProgramW6432\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe")
      also the below would work on all systems that install on C: and got default English names for Program Files
      Set-Location -Path ("C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe")

  • @ibrahimabdeltawab6418
    @ibrahimabdeltawab6418 Год назад +1

    Great 👍! Thanks so much ❤