In this lesson, we're going to learn how to import mobile config profiles into monkey.
So let's go ahead and take a look at her download folder.
And as you can see, we've got two mobile config profiles that we've been working on previously.
So let's go ahead and import them.
And as you can see, basically the procedure is the same as importing regular software.
And I'm just going to go ahead and choose all the defaults.
And I'll edit everything in Monkey Admon.
OK, so let's go ahead and hit reload, and you can see they both pop up.
Now let's go ahead and edit them.
Let's make them unattended.
Let's turn unintended off and let's go ahead and categorize them.
And I'm doing this because I just don't want them to deploying in the background while we're working.
And one thing I want to point out is, is that with a mobile config profile, you can go ahead and run
a print stall script or post install script.
So what I want to do is I want to create a new mobile config profile that we're going to run a script
with.
So you can see how that works.
So in profile manager, I've created a new mobile config profile for deploying wallpaper.
Now I clicked lock desktop picture and I gave a path to our wallpaper and everything else I left at
default.
So let's go ahead and down this mobile config profile.
And we'll hit cancel.
So we don't get it on our computer and we'll get profile manager, by the way.
And let's go ahead and do a another listing and we can see that we now have our wallpaper, mobile config
and or downloads folder.
So let's go ahead and import that.
OK, now let's go ahead and bring this in.
Now, I'm going to go ahead and double click on it, and again, I'm going to get it out of Unintended
and then let's go to install scripts.
And now I'm going to go ahead and paste a script in and the script is going to be mostly familiar.
So what I'm doing is I'm getting the location from our DNS suffix once again.
And what I'm gonna do is I'm going to download a wallpaper picture from our monkey server at a new subfolder
that I created called Files.
And then another subfolder.
It's called wallpaper.
And then in that folder, there is going to be wallpaper names based off of our location.
So if I translate to New York, I'm going to get New York down a peg.
And if I get away, I'm going to get laid out a peg.
And then it's going to save that file in library, desktop pictures, automaton, dot, dot, j peg.
Now, that's the exact file that our mobile config profile is going to look for.
So that's why it's a preinstalled script.
If the mobile config profile is going to look for a file, a specific file, then that file has to be
on the machine.
So the preinstalled script is going to get the file on the machine.
So let's go ahead and hit, OK, and then hit save.
Now we need to make sure that this is going to Gus get on their machine.
So what we're gonna do is we're going to we'll get rid of Firefox just so we can do this test.
And let's put our wallpaper profile in production will hit, save.
And then let's go over to this site.
The phone manifest and we'll take Firefox out of that.
And we'll go ahead and put our mobile config in and we'll hit save there.
And then let's go to remote desktop because our L-A machine was in developers.
So let's go ahead and move that in.
So we've already deployed Monkey to our L.A. machine and it was in developer, so I'm gonna go ahead
and run this script.
And all it's doing is it's changing the client identifier to cite default.
So when we run this, we've just moved it from developers to site default.
All right.
So now both of our machines are in site default and we should be ready to run manage software on both
of these machines.
So let's go ahead and run manage software.
And we'll go ahead and do it on this machine as well.
And it's found the wallpaper.
And this one is down the wallpaper as well.
So let's go ahead and run it.
It looks like we've got a change here.
So on our New York machine, we've got New York wallpaper.
And we go to profiles, we'll see that we have the warped the wallpaper model config here and the same
thing on this machine.
We've got our L-A wallpaper and the mobile config profile will be loaded as well.
So that's how you can import a mobile config profile into monkey.
And then you scripts to manipulate it.
So your mobile config profile can react differently in different areas.
All right, so let's go ahead and review our active directory mobile config profile and how it is in
Monkey.
So when we used a R d.
What we did is we ran this script and we created a variable based off of our search domain.
And so with the location and the variable, we basically replaced our location with a token that we
put in the active directory mobile config profile so that when we downloaded it to our computer, it
had the right of you in it.
And then we imported the profile.
And then after we were on the domain, we then deleted the profile.
So with Monkey, you can see that it's basically importing the mobile config profile directly.
And we don't really have the ability to manipulate that file.
Now, when we were in Monkey and we and we manipulated the wallpaper, basically.
That was different because we ran a script to say were wallpaper was in the mobile config profile,
then pointed us to that script.
We did manipulate the mobile to fake profile.
So what we're going to need to do to use Monkey to join us to the domain and the correct value is create
a custom package.
So we're in the monkey package directory.
So let's go ahead and run.
Monkey package.
And then we will create a new package called the Joint Domain.
And let's go into that joint domain.
And then, as you recall, we've got our payload.
So let's go into the payload folder and make a directory called temp.
And let's go into that temp directory and copy the mobile config profile.
Copy the mole config profile into this temple there.
Now, what we want to do is we want to go ahead into the scripts folder.
And we're going to create a post install script.
You need to make it executable.
And then we'll we're going to want to do is copy and paste our script that we were using in a R.D..
Into the post install script.
All right.
So now what we can do is we can go ahead.
We can go ahead and build the package and now we can go ahead and import that package.
Into monkey.
So.
All right, so let's go ahead and reload, monkey.
And so we're not going to need this mobile config anymore because we know it's not going to work.
And now let's go ahead to our joint domain and we can go ahead and categorize that.
And let's.
Let's move it to production.
Let's make sure that our machines only get to work on the domain package.
So let's get into production and let's make sure that the only thing that's there is joint domain.
And let's go ahead and hit save.
Now, let's go into default.
And there's.
All right.
There's no installs.
So let's go ahead and do our joint domain package.
And then let's go ahead and hit save.
And now let's go over to applications.
And runner managed software center.
And we should be getting that domain offered Teutons.
OK.
So it worked.
So now we're on the domain and we should be on the domain with a mobile config profile.
And we are in the New York organization unit.