Preparation -
Download and save the OneDrive sync app for machine wide install (multi-user shared device) - Link
Creating the Intune.win app -
Download the Intune Win32 Prep tool
I output the intune.win file to c:\scripts\output
I save the downloaded exe files to c:\scripts\AppName (c:\scripts\OneDriveEXE)
Open a CMD/PowerShell window and run IntuneWinAppUtil.exe
When prompted, provide the following values
- Source folder - where the downloaded agent is saved
- Setup file - name of the exe file - OneDriveSetup.exe
- Output folder - where the generated file will be stored - C:\Scripts\Output
- Do you want to specify a catalog folder - N
C:\Scripts\OneDriveEXE
OneDriveSetup.exe
c:\Scripts\Output
You will be left with an .intunewin file in the output folder.
==============================================================
Create the app in Intune Endpoint Manager
Endpoint Manager - Apps - Windows
Use the drop down arrow to select - Windows app (Win32)
Click - Select
App information
Select app package file
Browse and select the intune.win file we created
Select - OK
App information -
Update as needed.
Note - there is no need to select an image unless this is being featured in the Company Portal
Next
Program -
Under program, use the following install/uninstall commands and - Link -
Install command - OneDriveSetup.exe /allusers
Uninstall command - OneDriveSetup.exe /uninstall /allusers
Set the Install Behaviour type to - System
Next
Requirements -
Under requirements, select the following
OS architecture: 32-bit - 64 bit (both)
Minimum OS: Windows 10 1903
Next -
Note -
Install the program on a test machine to confirm filenames and locations like below
OneDriveSetup.exe /allusers
Under detection rules
- Select - Rules Format - Manually configure detection rules
- Add
add a new rule
Rule type: File
Path: %PROGRAMFILES(x86)%\Microsoft OneDrive
File or folder: OneDrive.exe
Detection method: File or folder exists
Associated with a 32-bit app on 64-bit clients: Yes
OK
Detection Rules should look like this.
OK
Next -
Dependencies - Ignore
Supersedence (Preview)
Ignore at this stage - Next
Assignments -
Select - the appropriate groups
Assignments will now show up
Confirm - Show all toast notifications
Next
Review and Create
Create
The app will show as uploading
You can confirm creation in the Apps section
=====================================================================
About the author -
Terry Munro is an IT specialist based in Brisbane, Australia.
He draws upon over 20 years experience designing and delivering technical solutions to a variety of enterprise clients in the private, Government and Education sectors, to revolutionise client businesses through collaboration and getting the most value from a variety of cloud solutions.
He is passionate about learning new technologies and is a firm believer in sharing knowledge to provide a better experience for all.
You can connect with Terry on LinkedIn - https://www.linkedin.com/in/terry-munro/
No comments:
Post a Comment