Lab finding and running basic commands.
Scenario, you are preparing to complete several administrative tasks by using Windows PowerShell.
You have to discover commands that will be used in performing those tasks.
Run several commands to begin performing those tasks and learn about new Windows PowerShell features
that will enable you to complete those tasks.
Exercise one finding commands.
Task one Find commands that will accomplish specified tasks.
One Press the Windows.
Logo key.
Type PowerShell.
Right.
Click the Windows PowerShell title and click run as administrator.
To run.
Help resolve.
Or get command resolve these display a list of commands that use resolve in their names.
This should lead you to the resolve DNS Name Command.
Three Run help adapter or get command adapter.
These display a list of commands that use adapter in their names.
This should lead you to the setting at adapter command.
Then run help set net adapter to view the help for that command.
This should lead you to the MSA address parameter for run help scan.
Or get command scared.
These display a list of commands that you said in their name.
This should lead you to the Enable Schedule Task Command.
You may also find the enable scheduled task command that is similar.
Five Run get command verb block.
Or help block.
These display a list of commands.
This should lead you to the block SMB share command, then run help blocks and share to learn that the
command applies to deny entry to the file.
Share Discretionary Access Control List DCL six run help branch.
This will cause the help system to conduct a full text search because no command sees branch in their
names or run help cash.
Or get command cash.
These will display a list of commands.
Either way, you should discover the clear ABC Cache Command seven.
Run any of the following help firewall.
Or get command firewall.
Or help roll.
Or get command role.
These display a list of commands that use those keywords in their names.
This should lead you to the get that firewall rule command.
Then run help get that firewall roll fall.
This will display the help for the command.
This should let you discover the enabled parameter.
Eight.
Run.
Help.
Address.
This will display a list of commands that use address in their names.
This should lead you to the getting that IP address command.
Nine run.
Help suspend.
Or get command verb.
Suspend these.
Display a list of commands.
This should lead you to the suspend print job command.
Ten run help format.
Or get command.
Verb format.
These display a list of commands.
This should lead you to the format volume, command exercise to finding and running commands.
Task one Run commands to accomplish specified tasks.
One Ensure you are working on the 10961a lln cl.
One Virtual machine logged on as a datum backslash administrator.
Two To display a list of enabled firewall roles.
Run get nat firewall role enabled true.
Three To display a list of all local IPv4 addresses.
Run get net IP address address family ipv4 four to set the start up type of the bit service run set
service name bit startup type automatic.
Five.
To test the connection to low and DC one run test connection computer name ELO and DC one quiet.
Notice that this command returns only a true or false value without any other output.
Six to display the newest ten entries from the security event.
Log Run Get Event Log Log Name Security Newest ten Exercise three using about files task one locate
and read about help files.
One Ensure you are still on the 10961al ncl one virtual machine logged on as a data and backslash administrator
from the previous exercise.
Two To find operators used for wild card string comparison.
Run help comparison.
Then run.
Help about underscore comparison.
Underscore operators show window.
Notice the like operator in about underscore comparison underscore operators to find it in the help
windows find text box type wild and then click next.
Three.
After reading the about underscore comparison underscore operators help file.
You should learn that typical operators are not case sensitive.
Specific case sensitive operators are provided an about underscore comparison underscore operators for
to display the computer name environment variable run dollar EMV computer name.
You could read about this technique in about underscore environment, underscore variables.
Five run.
Help signing.
Then run.
Help about underscore signing.
Then read about code signing.
You should learn that make certain key is used to create a self sign digital certificate six.
Run.
Help three then run help about underscore windows underscore PowerShell.