►
Description
PowerShell Saturday is a training event for all things PowerShell. The event was held in Raleigh, North Carolina and hosted by Research Triangle PowerShell User Group.
Jeffery goes into detail about the PSReadline Module. PSReadline is a improvement to the command line interface, providing colored syntax, history, and much more. Learn how to make PSReadline a powerful tool in your PowerShell arsenal.
The files for Jeffery's slides and code can be found on our github page:
https://github.com/rtpsug/PowerShell-Saturday/tree/master/2019-NC.State/
A
Start
so
I'm
going
to
be
telling
you
why
you
should
use
PS
read
line
everyday.
Basically,
the
best
thing
I
can
tell
you
is:
has
there
been
a
time
where
you
type
something
in
on
the
console
and
then
two
weeks
later,
like
ma'am,
what
did
I?
What
does
that
command
that
I
typed
in
so
PS
read
line,
saves
your
history,
so
all
of
that
gets
saved
in
the
text
file.
You
can
pull
it
up.
I'm
gonna
show
you
how
to
do
this
first
off.
A
Thanks
to
the
sponsors
we
couldn't
do
this
without
them,
and
also
the
speakers
that
are,
you
know,
giving
their
time
to
present
the
stuff
a
little
bit
about
me.
My
name
is
Jeffrey
hates
I
got
into
PowerShell
about
eight
years
ago,
when
I
was
working
at
a
place
called
for
tanks
and
basically
just
doing
Active
Directory
administration
on
behalf
of
Microsoft
for
customers.
Helpdesk
daily
bread,
butter,
wins
exchange
management,
console
which
ever
done
Active
Directory.
A
I'm,
a
jack
of
all
trades
master
of
just
get
help
get
command
in
Google
right
Ben,
it's
City
of
Austin
for
about
five
years
now
started
at
the
help
desk
and
get
up
to
system
administration.
Lately
a
lot
of
my
jobs
in
managing
our
SolarWinds
infrastructure
for
monitoring
of
servers,
applications,
networking
which
is
really
fun,
because
it's
getting
a
lot
of
different
people
together
on
the
same
page
also
office,
365
and
Active
Directory
administration
and
various
tasks
about
to
be
a
father
and
2020
of
March.
A
So
this,
my
being
my
fiance's
first
kid
so
and
I'm
pretty
much
one
of
the
only
PowerShell
gurus
like
on
my
team.
You
know
like
they're.
Always
they
hate
this
script.
What's
it
doing
or
hey,
can
you
help
me
do
this?
So
if
you
want
to
follow
along,
go
to
this
link,
it's
going
to
take
you
to
the
PS
Red
Line
and
github
repository
on
there
under
PS
red
line.
There
is
one
that
says:
PS
red
line
sample
or
sample
PS
read
that
profile.
A
A
B
A
A
You
know:
Windows
Emacs
and
then
I'm,
just
gonna
discuss
Windows
and
Emacs,
because
if
I
got
in
vim
might
be
stuck
there
in
the
entire
time
fully
customizable,
there's
so
much
you
can
do
with
this
I'm
just
scratching
the
surface,
all
right.
So,
of
course
you
can
now
read
the
help.
It
has
a
ton
of
info
on
it.
A
So
is
it
reduced
in
5.0
provides
a
bunch
of
different
things.
You
have
cursor
movements
and
in
command
mode,
and
does
this
and
Emacs
its
end
or
ctrl,
F
and
so
forth.
These
will
be
made
after
the
demo.
You
can
go
forward
in
words,
lots
of
great
things
that
you
can
get
done
with
this.
That
makes
it
easier
to
write
code
in
the
console.
A
A
A
So
now,
if
you
open
your
profile,
I
should
say
something
like
this
to
where,
like
mine,
papa
gates,
PowerShell,
Saturday,
environment,
loaded,
yay,
so
I'm,
one
of
the
first
commands
it's
get,
PS
read
line,
option
told
you
the
editing
mode.
Top
Emacs
is
simpler,
similar
very
much
like
bash
and
the
key
bindings.
A
A
A
C
A
A
A
D
A
C
A
All
right
so
that
opened
that
up
and
just
you
know,
default
web
browser.
You
can
change
this
up
to
do
anything
and
to
set
that
what
I
did
was
all
right
there
so
set
PS
read
line
key
handler,
you
give
it
a
key,
you
give
it
the
constraints.
I
did
ctrl
alt
and
C
brief
description,
open,
PowerShell,
Saturday
and
then
under
it.
What
this
is
saying
is
the
red
line
answer
a
couple
of
gotchas:
if
you
don't
have
the
double
quotes
and
this
it
will
not
work.
C
A
Then
the
accept
line
is
basically
like
hitting
Enter.
This
is
a
bit
more
advanced,
but
this
is
what
you
can
do
to
it
on
your
history
file.
One
of
the
big
things
that's
been
going
on
is,
if
you
have
secured
strings
of
your
passing,
sometimes
you
might
not
want
to
put
that
in
a
history
file.
If
it's
something
that
you
have
in
you
know
secure
text,
that's
a
password
or
something
so
to
avoid
that.
A
A
A
So
this
one's
playing
around
with
earlier
today,
it's
basically
trying
to
change
the
prompt
and
message
here.
What
this
is
doing
right
here
so
I
want
to
change
it
from
Emacs
to
Windows
right.
So
I
can
just
go
up
arrow
key
and
just
change
the
verbage
that's
in
here
and
now
it
says
that
and
if
I
just
do
the
up
arrow
key
again,
because
I
have
the
history
there,
it's
going
to
show
it
and
awesomeness
it
makes
it
really
easy.
A
D
A
D
A
E
A
Errors
in
real
time,
okay,
so
similar
to
tab
there
we
go,
but
now
you
see
the
menu
of
all
the
options
you
can
have
with
your
child
item
path.
Hidden
everything
really
useful
if
you're
trying
to
learn
more
about
Commandments
and
everything
else.
The
way
that
I
always
learned
was
just
doing
can
get
help
on
everything
and
just
reading
the
examples,
because
there's
a
lot
of
great
information
in
the
help
here.
A
C
A
That's
to
basically
set
your
history,
so
anything's
there
is
saved
and
up
and
down
right
here
is
the
one
where
it's
going.
It's
from
2017,
oh
okay,
cool!
It's
going
and
it's
saying
any
lines
of
history:
let's
see
what
there
is
if
it's
a
function
or
whatnot
and
pop
put
it
in
grid
view,
so
with
that,
of
course,
other
window.
D
A
A
A
I
could
just
pull
it
for
my
history
and
then
reload
it
and
have
it
there,
because
it's
not
something
I'd
be
doing
in
a
second
to
create.
It
start
the
expert
process.
Everything
like
that,
it's
going
to
give
us
the
results.
We
hope
it's
still
running,
I
put
a
in
the
script
up
here,
we'll
see
taking
a
break
30
seconds
so
that
I
can
actually
pull
it
all
in.
A
A
But
what's
helpful
about
that,
it
was
like
when
my
boss-
or
someone
asked
me
for
hey.
What's
that
thing,
you
got
that
report
for
all
the
file
shares
you
know,
I
can
go
back
and
I
can
say:
oh
yeah
here
it
is
and
pull
it
up.
It
makes
it
easier
to
to
not
forget
what
you've
done
right,
because
how
many
times
that
somebody
worked
on
something
all
day
and
then
leave
and
then
Monday
comes
around
and
you're
like
wait
or
is
that
file
or
where
is
that
script?
A
This
is
saved
my
butt
so
many
times
lately,
where
I'm
doing
the
same
thing.
But
it's
you
know.
Oh
hey
Jack
wanted
this
info
and
then
two
weeks
later,
Bobby
wants
the
same
info.
You
know
it's
so
much
easier
to
just
set
the
profile
and
then
just
have
this
all
the
time
and
then
the
filter
line
you
can
type
in
what
the
query
was
or
what
you
were
doing.
Also.
A
Controlled
space
we
talk
about
that
and
miscellaneous
functions.
I
really
haven't
used,
my
show
other
than
like
your
screen,
but
lets
you
see
a
lot
for
that
control.
A
windows
of
course,
will
select
all
probably
one
of
my
favorite
things
on
like
the
windows
version
of
it,
where
you
can
copy
and
paste
stuff
into
actual
console,
whereas
during
the
Emacs
one
sometimes
it
works.
Sometimes
it
tells
you
new.
A
Hey
there's
a
tick,
so
these
are
all
the
ones
and
if
we
do
get
PS
read
line
option
okay,
so
this
is
Emacs
mode.
This
is
where
the
history
file
is
saved
under
safe
style.
They
have
save
into
anchor.
Incrementally
no
save
as
well.
Audible
is
the
Bell
style.
You
can
change
that
to
visual
if
you
don't
like
the
actual
beeps,
when
you
type
something
incorrectly
I
like
hearing
the
beeps
I
just
leave
it
there.
A
A
D
A
A
A
A
A
A
A
A
The
more
fo
there's
a
good
help
and
then
there's
the
console
help
and
then
about
on
the
model.
One
week
commands
where
D
said,
discuss
how
to
prevent
sends
information
from
getting
into
the
history
file
more
info.
There's
dogs
here,
there's
two
great
blog
posts.
They'll
talk
about
it.
This
started
them.
The
very
early
fills
got
a
blog
as
well
as
one
of
my
favorite
scriptures.
A
Dr.
script,
Oh,
which
is
Ed
Wilson.
Basically
any
idea
of
this
stem
from
hey,
there's
a
problem:
the
windows
console
and
it's
how
you
can
make
it
user
easier
right.
They
wanted
to
get
better
syntax
coloring
in
so
that
they
know
hey.
If
you're,
if
we
jump
back
here,
you
can
see
like
hey.
This
is
yellow,
instead
of
just
plain
text,
helpful
visually,
being
able
just
to
see
the
differences.
D
A
D
A
A
B
A
D
B
E
B
A
Tried
that
using
like
onedrive
and
github
and
I
would
just
get
errors,
because
any
time
the
file
would
update
with
something
onedrive
would
tell
me
hey.
You
have
two
different
versions
of
this.
It
would
literally
duplicate
the
file
over
and
over
again,
so
usually,
what
I'll
do
is
anything
that
is
in
my
history
file
that
I
want
to
pull
out.
You
know
I'll
take
the
morning
or
any
afternoon
and
just
copy
that
and
save
it
to
a
function
or
a
script
and
load
those
in
if
it's
something
I'm
doing
repetitively.
B
A
I've
learned
that
the
hard
way
yeah
the
other
thing
that
I
used
to
save
everything
to
my
H
Drive,
which
is
just
network
sharing
my
work
machine.
What
ended
up
happening
was
I'm
gonna,
upgrade
it
from
windows
7
to
Windows
10.
It
was
like
hey
your
H
Drive.
You
can't
run
scripts
from
there
in
the
ISE,
that's
how
it
got
more
than
a
coating
on
it.
So
that
was
super
fun
where
it
just
I
try
to
open
the
file,
and
it's
like
no
and
I
think
of
eventually
aware
round.
D
A
A
A
A
C
A
D
A
I
was
trying
to
drag
an
icon
over
now.
I
can't
find
it
you
know
of
that.
We
have
two-factor
authentication
for
office
365.
So
when
I
go
to
logon
to
like
the
office
365
administration
portal,
it's
already
on
powershell
5.0
seppius
lines
already
there.
So
anything
I've
typed
in
with
like
creating
mailboxes
and
stuff
that's
saved.
Let's
see.