S01E12 - How to Deploy PowerShell Scripts using Microsoft Intune - (I.T)

Поділитися
Вставка
  • Опубліковано 12 лип 2024
  • 00:00 - Intro
    00:53 - Use PowerShell scripts on Windows 10 devices in Intune
    docs.microsoft.com/mem/intune...
    06:07 - Create a script policy and assign it
    docs.microsoft.com/mem/intune...
    12:05 - Common issues and resolutions
    docs.microsoft.com/mem/intune...
    18:50 - Discussion
    20:38 - Wrapping up
    Visit our websites and social media for more or to get in touch with us
    Steve Hosking - Microsoft EM+S MVP
    / onpremcloudguy
    steven.hosking.com.au/
    mvp.microsoft.com/en-us/Publi...
    github.com/onpremcloudguy
    Adam Gross
    / adamgrosstx
    www.asquaredozen.com
    mvp.microsoft.com/en-us/Publi...
    github.com/AdamGrossTX
    Ben Reader
    / powers_hell
    www.powers-hell.com/
    github.com/tabs-not-spaces Visit our websites and social media for more or to get in touch with us

КОМЕНТАРІ • 42

  • @sapojuajac
    @sapojuajac 4 роки тому +1

    thank you guys, gonna pay attention to this channel from now on!

  • @yashpreetricky
    @yashpreetricky 3 роки тому

    Thank you very much Guys for your great learning videos and Happy New Year

  • @drettipassetti
    @drettipassetti 2 роки тому

    Excellent, great video. Thanks a lot guys

  • @timdesmond1327
    @timdesmond1327 4 роки тому

    Thanks Guys love these videos :)

  • @crismarcruz7029
    @crismarcruz7029 2 роки тому

    Great topic! Have you figured out if the script will rerun and create the file again after removing it manually?

  • @alisawab1286
    @alisawab1286 4 роки тому

    Hi Guys, great content again. I am running a windows 10 app debloat script and i can see its successful ran but the code didn't fire as aspected. When I run through the force sync options I don't see all the policies that are listed under yours on my VM machine @10.08 in video even though I have assigned them? Thanks.

  • @GVers-dt5ot
    @GVers-dt5ot 3 роки тому

    Thanks for the great video. Running a script using Intune fails after a user profile has been removed (to save space) and the user logs in again. Thefirst time everything went well. Any idea why it doesn't run after a user profiles has been removed?

  • @IntuneVitaDoctrina
    @IntuneVitaDoctrina 3 роки тому +1

    CMTrace is licensed with SCCM, are you legally allowed to use CMtrace if you are a 100% Intune shop only?

  • @fenixdood3836
    @fenixdood3836 2 роки тому +1

    Hi,, I have a script that works fine but...the execution policy is by default restricted..Having trouble trying to find the best way for the script to function. How do you circumvent the execution policy in order to run scripts with intune?.
    Thanks

  • @georgefoster4924
    @georgefoster4924 3 роки тому

    Hey guys.. great vid! Do you know if there's a way to schedule a script to run once per month through Intune? (without creating a scheduled task on the device)

    • @IntuneTraining
      @IntuneTraining  3 роки тому +1

      Check out our proactive remediation video. It has better options for running scripts on a schedule.

  • @pyriedog
    @pyriedog 3 роки тому

    Great intro. In sccm, a package runs only once if successful, but removing and readding the deployment allows it to run it again... Would that have fixed the folder recreation issue?

    • @IntuneTraining
      @IntuneTraining  3 роки тому

      Probably so. Also, the new proactive remediations feature in Intune is a better way to re-run scripts. Check out our video on the topic.

  • @siegemaster1985
    @siegemaster1985 4 роки тому

    Hi Guys,
    Thank you for this video and the information. Its unfortunate that the script only runs once.

    • @IntuneTraining
      @IntuneTraining  3 роки тому

      Look at proactive remediation scripts. New solution that gets around that single run limitation and a heap more. We did a video on it. It was great.
      -- Ben

  • @nitramremoeb4674
    @nitramremoeb4674 4 роки тому

    Hi all, i have some issues. The Script will be deployed successfully and is doing it job on the client but in the overview page i see only failures for device and user status. This is for all the scripts i deployed the same. Is there any trick how i can give back a result code that the execution was successful?

  • @praveenravela85
    @praveenravela85 2 роки тому

    Hi team, in general ,can we run powershell commands for all computer in a company?. on Intune?. I need to uninstall a software on all computers. I do have azure admin portal access. Thanks

  • @vjayasekharnaidu
    @vjayasekharnaidu 4 роки тому +1

    I have a requirement to provide pop-up to end user through powershell . Manually it's working, but from intune pop-ups were suppressed.
    Could you help me, is there any settings

    • @the_real_vondy
      @the_real_vondy 4 роки тому

      I believe everything run in Intune is run in silent/quiet mode. I think if you specify verbose you may be able to fix that.

    • @IntuneTraining
      @IntuneTraining  3 роки тому

      It depends on scoping. If you run as system it's tricky to bring anything to the surface but not impossible. There are a lot of people using a similar framework to send out toast notifications to end users and it works really well
      -- Ben

  • @dinocr6783
    @dinocr6783 2 роки тому +1

    Could you please update this to the current version of Intune utilizing both Powershell scripts and PS scripts via Win32 apps? They Requirements and Detection script best practices. Also, please go over how to produce return codes to invoke Hard/Soft Reboots. Thanks.

    • @IntuneTraining
      @IntuneTraining  2 роки тому

      We have a video on using Proactive Remediations if you haven’t seen it.
      ua-cam.com/video/VOBzV6GjOvI/v-deo.html
      Using Intune Powershell Scripts, Proactive Remediations and Win32 apps for scripts are all viable options depending on your use case. I use them interchangeably depending on the scenario.
      Exit codes are pretty straightforward. You simply exit the script with the code you want that matches the exit codes set up in the Win32 app.
      devblogs.microsoft.com/powershell/windows-powershell-exit-codes/
      As for creating the Win32 app, simply use the IntuneWin Creation tool to zip up the script file. Upload as a Win32 app then call the script in the install command line.
      thenewnumber2.com/2021/10/25/using-intune-win32-apps-instead-of-intune-powershell-scripts/

  • @jimcopeland4011
    @jimcopeland4011 3 роки тому

    If I have a script running against a group of devices, and I later add a device to that group will the script re-run on ALL the devices in the group or just the new members? Oddly difficult to find documentation on how the scripts behave in Intune.

    • @IntuneTraining
      @IntuneTraining  3 роки тому +1

      It will only run once per device. If you add new, when the new devices get the policy, they will run the script once but it won't trigger any changes to devices that already have the policy applied and have run the script.

  • @martijncornelissen2194
    @martijncornelissen2194 3 місяці тому

    If i've run a script to " all devices" and I wipe a device. I hand it over to a new worker, will the script run again?

  • @kallabos7538
    @kallabos7538 Рік тому

    How can you run a specific PS Script after an Intune app install?

  • @dominicbro777
    @dominicbro777 Рік тому

    Hi, i would like to create a script which will run every day when the user logg off - is this doable with intune?

    • @IntuneTraining
      @IntuneTraining  Рік тому

      Need to make a scheduled task on the device to do this.

  • @ronnyhuybrechts717
    @ronnyhuybrechts717 4 роки тому

    Hey thanks i created a powershell script to run a script to check for a printer and added him. For the zoom tool you neet to change your zoom percentage to a higher level than 100%. See 14:12

    • @IntuneTraining
      @IntuneTraining  4 роки тому

      Yeah. I just need more practice with zoomit and Windows+. It’s just gonna take time. Thanks!

  • @techaryabhatta3818
    @techaryabhatta3818 2 роки тому

    Hello Adam,
    I am trying to push rename computer powershell script for our Getac tablet windows device to rename with serial number with Intune. But somehow it's not working. I tried this as per your video but it's not working.
    Can you please suggest?

    • @IntuneTraining
      @IntuneTraining  2 роки тому

      Which part isn’t working? Have you created the correct CSP?

  • @TomEggermont-ym9rn
    @TomEggermont-ym9rn 2 роки тому

    cool,
    but how can you retrieve information,
    that the powershell script generates?

    • @IntuneTraining
      @IntuneTraining  2 роки тому +1

      Use proactive remediations instead of Powershell scripts now. That feature didn’t exist when we made this video.

  • @srich9382
    @srich9382 10 місяців тому

    How to change Intune devices' hostname by using the script. The user doesn't have admin rights

    • @IntuneTraining
      @IntuneTraining  10 місяців тому

      For a device rename just use an Intune CSP to ensure devices are properly named
      www.petervanderwoude.nl/post/rename-a-device-via-windows-10-mdm/

  • @Ali_2.0
    @Ali_2.0 3 роки тому

    Hi Guys, Is there any way to convert exe into msi through script or any other way?

    • @IntuneTraining
      @IntuneTraining  3 роки тому +1

      An MSI is a database of steps to install files / change registry keys etc. It's not interchangeable with executable files.
      -- Ben

    • @Ali_2.0
      @Ali_2.0 3 роки тому

      @@IntuneTraining Hi Ben, Thanks for your prompt reply . I understand but I am facing difficulty while using .exe file to create win32 app(which I need to type manual command). How to find this .msi database file for any software. Such as Tuxpaint & ScrachJr. I will really appreciate if you can help.