What's going on, guys?
It is Bernardo and today is all about deploying Microsoft
OneDrive using configuration manager.
So let's get right into it.
Okay, so Microsoft actually hooked us up with a couple of things,
and I'm going to provide this link at the bottom of the video,
at the description or hopefully at the comment section.
And this website gives you everything that you need.
If you go a little down,
you're going to see this section right here, which allows you to download,
out of the production or the deferred ring OneDrive setup exe file.
They also provide a sample configuration manager package, which is a zip file.
I kind of recommend downloading the exe file
that you want to deploy as well as the configuration manager package,
which I did.
So first thing that we need to do is open up your configuration manager.
And within here we need to go inside software,
within software, go inside application management,
and then within here go inside your application node.
Now already have a folder called Microsoft.
This is really up to you.
You are able to create a folder called Microsoft, whatever you want.
Within this folder, I'm going to right click on it
and I'm going to pick on import application.
You're going to get this nice little wizard and we're going to click on
Browse and we're going to browse for that zip file,
that configuration package that Microsoft provided.
Now drop the exe file as well as the zip file into this particular network path,
which is within my configuration manager server.
Select that zip file, click next.
We're going to leave everything as the default click next here.
Next, it's going to start doing its thing and then you're done.
It's completed. Awesome.
Click close and then what you want to do
here is at the bottom, click on deployment types.
You're going to right click on your deployment type and go to properties.
Now within here we go into content and we need to change the content location.
The content location is basically where that exe file is located.
Now this is the path.
And then once you change the path, go to programs and just make sure it is
pointing to the correct exe file with a parameter
of forward slash silent.
Now this stuff is already done for you.
Just make sure everything is configured correctly.
Now check this out.
I want to show you guys the detection method
because they provide a PowerShell script.
Now, if you click on edit, this is what they provide.
One of the cool things about this PowerShell script is that it
actually creates a log file that allows you to see what's going on
behind the scenes, which I'm going to show you guys how the log file looks.
But the way that the PowerShell works is if the user that's logged in
does not
have a particular folder called OneDrive, it goes inside the user's account,
a user's profile, and it goes to the Appdata local Microsoft.
And if this folder does not have OneDrive, install OneDrive.
If it has the folder called OneDrive, it bypasses it.
This is how the detection method is built.
You are able to modify it up to you.
But I left everything as the default, so I clicked on okay.
Okay here.
Now, next thing that I did is I went to asset and compliance.
I went inside device collections.
I right clicked on it and I clicked on create device collection.
Going to get the wizard.
I gave it a name for the collection.
I clicked on Browse and I limit it to all systems and then click.
Okay. Click
next here.
I'm not going to define a particular membership rule.
The whole purpose of this collection is if I drop a computer inside
this particular collection, it is going to receive the OneDrive package.
So I'm not going to set any membership rules.
So just click next, you're going to get a warning.
So just click okay, next here, Green Checkmark.
Good to go. So click close.
Now it's time for us to deploy that particular application
that we just created.
So I'm going to right click on our new collection.
I'm going to pick on deploy, then pick application.
You're going to get this click on Browse because I dropped it inside a folder.
So I'm going to go inside my Microsoft folder,
select my OneDrive for Business, and then click okay.
Click next here for the content.
I'm going to click on Add and then pick DP, select my DP, click.
Okay, click next here.
And this is really up to you by default you have available
if you click on the dropdown menu, you are able to change it to required.
I do recommend doing required.
Once you pick what you want, just click on next for scheduling.
I left it as the default click next here for user experience.
This is the default setting. It will notify your users.
Or you able to hide the notification.
Again, this is really up to you
in how you implement applications within your infrastructure.
So once you do all those settings, click next here for alerts.
I left it as the default click. Next Summary.
Next Green checkmark , always a good thing and then you're able to close it
if you double click on the new collection,
I don't have anything in there, so let's go inside devices.
So I have this computer that does not have OneDrive,
so I am going to right click on it, go to add selected items
and then pick on add selected items to an existing device collection.
Pick your collection.
Install Microsoft OneDrive and then click.
Okay.
If you go back inside that device collection, you're going to see that
the computer is there, give it some time, and the configuration manager
agent should talk to your SCCM server and start pulling that package.
Now, if you want to check, just go to the Monitor tab.
Within deployments, you're going to see OneDrive for Business.
So just double click on that and you're going to see success in progress.
Error Requirements Not Met.
Now, if your infrastructure is not set up to accept
sign or not sign PowerShell scripts
to be deployed, you're going to get this particular error.
Now, to fix this is pretty simple.
So you want to go inside administration, go to client settings,
pick whichever client setting that you have configured for your agents.
For me, I clicked on default.
Client settings I right clicked on it, go to properties
and then within here go inside computer agents on your right hand side.
Go all the way down to the point that you see PowerShell execution policy.
By default, it is configured to all signed.
if you click on the dropdown and just click on bypass and then
click okay, again give it some time for this policy
to hit all the computers and then eventually it should work.
Now, if you go inside that particular computer, my BTNHD
win 11 2H22 I named it wrong.
Sorry, supposed to be 22H2 whatever.
If you go inside Windows log, you're going to see
that OneDrive Detection log file or text file.
If you double click on it, you're going to see cool things, the logged user.
It actually detects the string.
It goes inside local, Microsoft, OneDrive.
OneDrive dot exe doesn't exist.
It's not found, needs to install the app.
Eventually what's going to happen is behind the scenes
it's going to push out the application
and install the OneDrive app on this user's account.
That's it.
Hopefully guys enjoy and I catch you guys on the next one.
Peace out.