馃攳
What is Windows PE? ( + How to Get It ) - YouTube
Channel: ThioJoe
[0]
There is a version of Windows that you probably
have never heard of before, but have used
[4]
without realizing it.
[5]
It's called Windows PE.
[7]
Now, when I say a version of Windows, you
might be thinking something like Windows 10
[11]
Pro or Home, but I don't mean that kind of
version.
[13]
On the contrary, Windows PE is not made for
just general daily computer use at all, but
[18]
it is still very useful.
[20]
For example, for creating bootable USB rescue
drives that you can use to save your computer
[25]
if it is broken and won't boot, or something
like that.
[28]
So in this video, I'm going to explain what
is Windows PE all about, and also how you
[32]
can create your very own Windows PE bootable
disk, if you want, from your own computer,
[36]
so stick around.
[37]
But before we continue, I want to thank today's
sponsor, Morning Brew, the free, high-quality,
[42]
daily newsletter that will keep you up to
date on the latest in tech, business, and
[46]
finance in just five minutes from Monday to
Sunday.
[49]
It's a much better way to start the day than
what I used to do, which I don't know about
[52]
you, was mostly just spending a bunch of time
reading useless crap on social media.
[57]
Unlike traditional media though, Morning Brew
only curates the most relevant and informative
[61]
stories.
[62]
For example, just the other day I was reading
it and learned that Las Vegas is apparently
[65]
getting the world's first cloud 5G network,
which is the latest marketing buzz, which
[70]
means that companies are going to start building
backbones of 5G networks on Amazon's Web Services
[75]
in the cloud, not just using their own data
centers.
[78]
So this could potentially allow the faster
rollout of additional 5G networks around the
[83]
nation.
[84]
Good to know.
[85]
To sign up for Morning Brew, which again is
completely free, just go to the link in the
[88]
description and then enter the email address
you want to get the daily newsletter delivered
[92]
to, and that's it.
[93]
And so, with all that being said, let's continue.
[95]
All right.
[96]
So what exactly is Windows PE anyway?
[98]
Well, it stands for pre-installation environment,
and it's basically a very stripped down, lightweight
[104]
version of Windows.
[105]
It's mostly used for things like deployment
of Windows, meaning the installation of Windows,
[109]
maybe on hundreds of computers for an organization
or just one computer, your installation.
[114]
Or it can be used for troubleshooting and
running outside of the normal Windows installation,
[119]
if it won't run.
[120]
Because unlike a full version of Windows,
Windows PE is designed to be so lightweight
[124]
that it can be booted from a portable device
such as a USB drive, and it can be as small
[129]
as just 300 megabytes to run.
[131]
And these Windows PE installations are created
using the so-called Windows Assessment and
[135]
Deployment Kit or ADK, which is a tool that
is free to download from Microsoft off their
[140]
website.
[141]
And like I said before, you probably have
actually used a version of Windows PE before,
[145]
without realizing it.
[146]
For example, the installation of Windows,
when you insert the Windows installation disk
[151]
or USB disk, that actually boots up using
Windows PE, and then installs it from there
[156]
to the full version.
[158]
Or the Windows recovery environment.
[160]
If Windows fails to boot up, then it brings
up a bunch of tools and stuff, and that's
[164]
all running in Windows PE, which kind of makes
sense.
[166]
It's good to have a super alternative, lightweight
operating system that can boot up if the main
[171]
one isn't working, and that can potentially
be used to fix the main one.
[174]
If you saw one of my previous videos talking
about different USB boot drive and rescue
[178]
disks you can create, you might've heard me
talk about Hiren Boot CD, which is a rescue
[183]
disk that has a bunch of tools on it, and
that actually is built using Windows PE.
[187]
It looks like Windows 10 and they added stuff
in like the shell to make it actually look
[191]
like that and all those other tools.
[193]
But even though it looks like a regular version
of Windows with the whole full desktop interface
[197]
and stuff, make no mistake, it's not a full
version of Windows, and it's very limited.
[201]
It's really only good for some of the bare
basics, like maybe web browsing.
[205]
This is not something you could use for daily
browsing and daily usage because it doesn't
[209]
have, for example, all the dynamic link libraries
and backend software that Windows has, that
[215]
a lot of software relies on.
[217]
So you're not going to be playing any games
or anything like this, or running complicated
[220]
software.
[221]
You can't even install anything to it because
it doesn't have all the stuff that all those
[225]
other softwares rely on.
[226]
The reason you can add tools and stuff to
it is because a lot of those tools have portable
[231]
versions where everything needed to run those
programs is contained with it, alongside it,
[236]
but stuff that you have to actually download
and install probably wouldn't work.
[239]
But again, it's still very useful because
it's able to run a lot of those useful tools
[244]
outside of Windows.
[245]
So why don't I go over how you can build your
very own USB boot drive with Windows PE on
[250]
it.
[251]
Again, it's going to be kind of limited, so
you might just be better off downloading a
[253]
pre-made one with a bunch of tools added,
but this will still be pretty interesting
[256]
because it goes over a lot of stuff you probably
didn't even know was in Windows and maybe
[260]
better understanding in the future could potentially
mean that you can fix things better in the
[264]
future.
[265]
So the first thing you're going to have to
do is go on Microsoft's website.
[267]
Again, I'll put the links in the description
and download the Windows ADK, Assessment and
[271]
Deployment Toolkit.
[272]
After you download and run it, it may actually
say that you already have Windows ADK installed
[277]
in which case you could uninstall it and re-install
this one to update it, or you could try the
[282]
rest of this without updating.
[283]
I don't know how well it'll work.
[284]
Anyway, I realized that apparently I did have
it installed already, so I just uninstalled
[288]
that one, and re-installed this new one I
just got.
[290]
When you run the installer, just select to
install it to this computer and then take
[293]
note of that install path.
[295]
And then just go next until you get to the
feature section, you can just do all the defaults
[299]
or if you want, you can check them all and
install everything if you want, and then it'll
[303]
just go and install.
[304]
After that though, you'll also have to download
the separate Windows PE add-on for the ADK.
[309]
It's not actually included in that, you have
to download a separate thing, I'll put that
[313]
link of course, too.
[314]
So just run that installer now, select "install
for this computer" again, and then go until
[319]
it says select features, which there is only
one available, the Windows PE thing.
[322]
It's about 5.5 GB, and then do the same thing,
install it.
[326]
And then it's going to go into this directory,
the Program Files (x86) > Windows kits > 10
[331]
> and then Assessment and Deployment Toolkit.
[333]
So now that's installed.
[334]
To actually use it, you go into the start
menu and do a search for "deployment and imaging
[339]
tools environment".
[340]
It should come up, and then run that as an
admin.
[343]
So note that it opens to the same installed
directory as a CMD command prompt window,
[348]
but this is not the same as just opening CMD
and going to that directory.
[353]
For some reason, you have to actually make
sure that this environment program running
[357]
like is shown being in the window title.
[360]
So after that window is open, the command
we're going to use is copype.
[364]
So if you just type that in, it's going to
show some info about it and the syntax, and
[367]
you can see that in the brackets, some of
the parameters you're going to need are the
[371]
different CPU architectures.
[373]
Most of you will just use amd64, which is
just 64 bit processors.
[377]
Even if it's Intel, it's still going to be
called amd64.
[381]
And x86 is for 32 bit processors, which aren't
really that common anymore.
[386]
And you can check if you want to be sure if
you go to about PC and it says x64-based processor,
[392]
that's amd64.
[393]
The next parameter will be the working directory,
which is basically the location it's going
[396]
to put the files temporarily.
[398]
And that can be wherever.
[400]
So all put together, the command I'm going
to use is copype and then amd64, and then
[405]
the location I'm going to put it is in the
top level directory C:\WinPE is all I'm going
[411]
to call it.
[412]
One thing to understand is this working directory
is not where it's actually installing this
[415]
USB bootable thing to.
[417]
So don't set this location to the USB flash
drive.
[421]
Think of it like baking a cake, where you
get all the ingredients together and put everything
[425]
in a pan first, before you put it in the oven.
[428]
That's basically what we're doing here.
[429]
The working directory is basically the pan
where you put all the ingredients in and then
[433]
once everything's added, then you can burn
it to the actual USB, and that would be where
[437]
you're putting it in the oven in our analogy.
[439]
So we're just preparing things in this working
directory first.
[442]
So don't set it to the USB drive, it won't
work.
[445]
After you run this command, it will simply
say success.
[447]
And then you can see that the folder is there
where I set.
[449]
Now at this point, the next step is just going
to be running the program to actually take
[453]
those files and burn it onto the USB drive
in a special way so it'll actually work.
[457]
But you could, at this stage, also add stuff
into the Windows PE installation.
[462]
However, if you do it using the official Windows
methods that is on Microsoft's website, it's
[467]
actually extremely complicated and you have
to basically install certain packages after
[472]
mounting .WIM files, I forget what they stand
for, and you have to copy packages from one
[477]
into the other.
[478]
It's kind of a nightmare and they're not actually
any really useful packages anyway, for most
[483]
people.
[484]
So you can read about that on Microsoft's
website if you want to be able to do this,
[487]
but for this example, we're just going to
do the most basic version.
[491]
So to actually put this onto the USB drive,
make sure you have an empty USB drive that
[496]
you don't care about any of the data on it,
because this is going to be completely wiped
[499]
and formatted.
[500]
So make sure that's plugged in, and then we're
going to go back into that same ADK window
[503]
we were using before.
[504]
The command we're going to be using is MakeWinPEMedia.
[508]
And again, if we just type it in like that,
it's going to show some info about it and
[511]
the syntax.
[512]
And you can see that it says it creates a
bootable Win PE flash drive or ISO, and I'm
[518]
paraphrasing there.
[519]
You can either do the parameter /UFD or /ISO.
[521]
UFD stands for USB Flash Drive.
[523]
And in that case, the whole drive is going
to be formatted, just used for Windows PE.
[528]
And for ISO though, it's going to make an
ISO that you can later use to burn onto one
[533]
or multiple USB disks or CDs.
[536]
Then the two locations we put our first, the
working directory, then the destination.
[540]
So the thumb drive or the ISO location.
[543]
Note the order here, don't mix them up or
you could risk formatting the entire wrong
[547]
hard drive or something like that.
[549]
So first we can do the super basic version,
which is just formatting a whole drive, and
[552]
then we'll do the ISO, which is actually probably
better, and I'll show you why after that.
[556]
So for this, we can put in our own parameters
as MakeWinPE /ufd C:\WinPE, that's our working
[565]
directory, and then my flash drive is in drive
M: Double check again, to make sure that the
[569]
drive letter is correct, it will say it to
confirm it.
[573]
And then once you run it, it's just going
to copy the files over.
[576]
And then you can see once it's done, that
the Win PE directory is only about 300 megabytes.
[580]
So at this point you could just plug that
USB in and it'll boot to Win PE, but let me
[584]
show you next, how to do the ISO version and
why I think this is actually probably better.
[588]
So this time the command will be, MakeWinPEMedia
/iso, and then the location of the working
[593]
directory.
[594]
Again, C:\WinPE and then where I'm going to
put the ISO, I'll just put it in there again,
[600]
C:\WinPE and call it winpe.iso.
[603]
Take note that for the ISO location, you have
to write out the whole thing, including the
[606]
name you want to call it, and you also have
to choose a directory that already exists,
[611]
or else you'll get an error.
[612]
It's not going to create a new folder if the
one you put doesn't exist yet, for example.
[616]
But after you run it, you can see it's in
there.
[617]
It was pretty much instant for me, maybe because
I have an SSD, but way faster than making
[621]
the USB.
[622]
Now, at this point, you could just burn the
ISO onto the USB drive with another program,
[627]
and then it would basically be like the other
one we made directly, but there's actually
[630]
a better option I recently found out about
called Ventoy.
[634]
It's a software that everyone was telling
me about in the comments of my USB boot drive
[638]
video.
[639]
And basically, it allows you to create a multiple
bootable USB drive.
[643]
So instead of just having to make one USB
drive per bootable disk, you can actually
[648]
put as many as you want, as will fit on one
drive, and you can select that when you're
[653]
booting up the computer, which is way awesome.
[655]
I'll put the link of that in the description,
but once you run Ventoy and use it to set
[659]
up a USB drive, it'll create a bunch of partitions.
[661]
Some of them you won't be able to see, but
for the one that is visible, called Ventoy,
[665]
literally all you do is copy and paste ISOs
into that USB drive, and then those are the
[672]
ones that will be selectable and bootable
from the screen when you boot up the computer.
[675]
Quick note, however, one reason you might
choose not to use Ventoy though, is because
[679]
it might not play well with something called
Secure Boot, which is basically a security
[683]
feature in a lot of computers these days that
only boots using certain signed softwares.
[689]
Now with the Windows PE standalone disk or
most other standalone disks, that's all signed,
[693]
so you shouldn't have any problem, really.
[695]
But with Ventoy, you might have to either
disable secure boot on your BIOS settings,
[700]
which isn't too hard, but you might not know
how to do it.
[702]
Or alternatively, Ventoy does actually support
Secure Boot, but you have to go through a
[705]
couple of extra steps, for example, enabling
it and choosing to enable it when you set
[710]
up the USB drive initially, and you're going
to have to go through several steps on the
[714]
first time you've run it on a particular computer.
[716]
All those instructions will be on Ventoy's
website, and I was able to follow them and
[720]
get it working.
[721]
But you might not want to have to deal with
that.
[723]
You might be scared of looking at some of
the complicated stuff, but it's not too hard
[726]
if you just follow it.
[727]
So it'll still work.
[728]
You just have to be aware of that.
[729]
Now in any case, no matter how you're going
to boot up, whether with Ventoy or just making
[732]
a standalone disk, it should be good to go.
[735]
You plug it in, you boot into it, and then
what you'll see is...
[738]
A command prompt window, and that's basically
it.
[740]
So yes, it is more bare bones than maybe you
were even expecting.
[743]
However, that doesn't mean that just because
it's command line, that is not useful.
[747]
In fact, there are several tools that are
normally built into Windows that you can now
[750]
access from here and could potentially be
used to fix your computer.
[753]
For example, there's disk part for messing
around with disk partitions and stuff.
[757]
There's DISM, which can be used to validate
the integrity of different system files and
[762]
stuff like that.
[763]
Same with SFC, that's also a very similar
system file checker, same use, and even BCD
[768]
edit for changing the boot records and stuff
like that.
[771]
There are plenty more though.
[772]
If you do the command DIR and then the filter
*.exe, this will show you all the different
[779]
exe that you can run right from this command
line.
[781]
Now this is going to show all the executables
here, so some are just background, not actually
[785]
tools, but it will show some utilities too.
[787]
So you can see 'chkdsk' in there for example,
I forgot to mention that one.
[790]
So yeah, this is cool and all, though it is
limited.
[793]
There's not even really a desktop.
[794]
However, you can actually technically access
Windows Explorer if you run Notepad.
[799]
Yes, that's in here too.
[800]
And then if you go to file open, well, there's
your Explorer window right there.
[803]
You can actually navigate through there, delete
stuff, copy stuff, whatever.
[806]
It just might not be what you're usually used
to, but it might still work.
[809]
All right, so that's pretty cool.
[810]
But what if you wanted to create, again, your
own Windows PE boot drive, but do want to
[815]
add certain custom programs and stuff?
[817]
Well, the easiest way to probably do that
would be using a program called Win10XPE.
[822]
This program basically lets you create a customized
Win PE boot disk, and it allows you to choose
[826]
from a whole bunch of different tools that
have been pre-prepared for Windows PE, you
[830]
just select which one you want to add.
[832]
When you do run it, you'll see it's called
WinBuilder, that's because I believe the Win10XPE
[836]
is the name of the project and it uses Win
Builder.
[839]
But anyway, it's the same thing.
[840]
Keep in mind though, to get this program actually
working and to actually use it, you will have
[844]
to disable your antivirus because there are
a couple of false positives that might show
[848]
up.
[849]
Now that being said, everything I've read
about it indicates that it's completely safe
[852]
and they are indeed false positives.
[853]
I have not heard anyone saying that it actually
is a secret virus.
[857]
It's a pretty popular program and I ran it
myself.
[859]
So if it still sketches you out, maybe don't
run it, but just know that you are going to
[863]
have to disable your antivirus to run.
[865]
So anyway, first it's going to have you download
a specific ISO for a version of Windows, and
[871]
it's going to have links to where you can
download that.
[873]
After you do download and then select the
ISO, you then go in and simply choose the
[877]
programs you want to add and include or not.
[880]
So you can see me going through a whole bunch
of these in here, and there's all sorts of
[884]
different categories like antivirus, utilities,
networking and stuff.
[888]
There's some media ones, for example, there's
Media Player Classic and VLC Media player
[893]
in there that weren't selected by default,
so I added those in.
[896]
Also it didn't have Firefox selected, only
Google Chrome.
[899]
So I figured why not add that in.
[901]
I pretty much selected everything except for
a couple that I knew would be kind of useless,
[905]
because I did really intend to use this as
a potential future rescue disk for my own
[909]
self.
[910]
After you select all the programs, there are
a ton more customizations.
[914]
You can choose the profile picture, the wallpaper,
all sorts of themes and stuff.
[918]
I'm not going to get into that.
[919]
Just know that those options are there if
you really want to dig down into it.
[922]
But once you have everything selected, you
simply click the play button and that's going
[926]
to go through and compile and create this
boot disk and put it into an ISO that can
[931]
then be used and burned onto the drive in
a number of ways.
[934]
So this could take a while, if you get any
breaking error messages or something, it probably
[938]
is your antivirus blocking it, but I'll just
fast forward anyway.
[941]
So anyway, once it's done, you'll see the
ISO is in the same folder as the program we
[945]
just ran.
[946]
So again, you can make this bootable in any
number of ways, either using Ventoy or just
[950]
using a regular ISO burner to put it on a
CD or a USB.
[954]
I'm just going to use Ventoy again, maybe
I'll rename these to something a little bit
[957]
more easier to recognize.
[958]
So anyway, once you boot it up, it's going
to look a lot more familiar, like the regular
[961]
Windows 10 that I'm used to, and you can see
it does have all those tools and stuff that
[966]
I selected.
[967]
It's all either on the desktop or in the start
menu and stuff like that.
[970]
You got the full Windows Explorer, you can
look through the different drives.
[973]
Very, very useful, could come in handy.
[975]
So obviously Windows PE is very useful, but
you don't actually have to go through the
[979]
whole hassle of creating your own Windows
PE boot drive, whether you're using the official
[983]
Microsoft tools or even using this Win10XPE
software.
[986]
Instead, you could just go online and search
for "Windows 10 PE rescue disks", and there
[991]
are several projects people have made.
[993]
And since they are pre-made, usually they
just come as pre-packaged ISOs, so they're
[997]
extremely easy to install.
[998]
You can either burn it directly or again,
run it off Ventoy, so no building or compiling
[1002]
or anything required.
[1003]
Like I mentioned, I'd probably get Hiren Boot
CD PE is probably the one I'm the most familiar
[1007]
with.
[1008]
So that's really the only one I'm going to
mention.
[1009]
I haven't used any other ones, but you might
be able to find it.
[1012]
But in any case, now you know a little bit
more about how Windows works and you probably
[1015]
came out of this with a new rescue disk that
you could use the next time disaster strikes
[1020]
on your computer.
[1021]
So thanks again to Morning Brew for sponsoring
this video.
[1023]
Again, be sure to click the link in the description
and sign up for Morning Brew's daily newsletter,
[1027]
so you can stay up to date on the latest in
tech, business and finance.
[1030]
If you guys want to keep watching, the next
video I recommend is that previous video I
[1034]
mentioned, where I go over four different
bootable USB drives that you should probably
[1038]
make before it's too late, and they could
really come in handy.
[1040]
So you can just click that right there, and
thanks for watching, guys.
[1043]
I'll see you in the next one.
Most Recent Videos:
You can go back to the homepage right here: Homepage





