Forum Discussion

4 Replies

  • GriJ's avatar
    GriJ
    Brass Contributor

    Hi,
    i would recommend PSAppDeploymentToolkit. There are already some functions for that.
    Like Copy-File

    After that - Create an Application and Deploy it.
    https://www.learnintune.net/deploy-apps-with-psadt/


    BR

  • Hy, 

    you have to use the script and customize it according to your wishes, but without the folders and files it won't work.

    So you also need the files and folders, you can do that with a win32 or a blobstorage.

    Good luck.

  • Hy,

    AhmedSHMK 

    You need to have the file and folder already on the devices via a blob storage or deploy via app (win32) and in your source code you can create your small script and then package it with IntuneWinAppUtil.exe

    Example for a Onliner via win32:

    Copy-Item -Path .\YOURFOLDERTOCOPY -Destination C:\YOURFOLDERONDEVICE -Recurse -Force

    Same like MoritzG but i wanted to make it clearly for you.

  • MoritzG's avatar
    MoritzG
    Iron Contributor

    Hi,

    you could use a powershell script:

    $source = "$PSScriptRoot\MyDeployment"
    $destination = "C:\Program Files\MyDeployment"
    Copy-Item -Path $source -Destination $destination -Recurse -Force

    Save in e.g. script.ps1

     

    Upload to Intune:

    • Go to Intune > Devices > Scripts
    • Create a new script
    • Upload script.ps1
    • Assign it to your target devices

Resources