Let's move on with IRS administration with the help of Paul shell command.
Let's Anton this video will log into the domain controller and through server manager will add to servers
which are our core one and core two.
And then we'll access these Server Windows Server score addition through our shell and the IRS administrator
module.
So as usual to follow along you've got to have a domain domain controller and two Windows servers core
addition join to this domain.
And of course don't forget.
Well again with administrative privileges now will long log in to service D.C. one server and on the
server manner server manager will click all servers lan will go to manage menu in the server manager
and open at servers the ad server or absorption will add to your remote sorrow and can be managed with
Windows Server 2016 server manager once we click on Add servers you'll get the ad servers window you
can out a remote server with three different options Active Directory searches for the computer name
and DNS searches for either the name or or IP address and imports the computer name and IP.
If you have one or more than one server I'll select the DNS step and add the names of two windows server
scorer edition which are core 1 and core to two other servers to the right pane which is selected you
can either double click the source name or IP or click this arrow right arrow bottom when we click Okay.
In the all source window we'll have added the core one and core to servers.
Now you can right click on the server and click on manage as it will open a new authentication window
called Windows security for core server you can type in for example the local administrator password
here by type and local host backslash administrator.
This could be useful if you have for example Nanos server and it is not added to your domain unit manages
to manage it with your local host administrator or second.
For now I'll click cancel.
You can also right click on core 1 which is listed in the server manager window and you'll get a pop
up you can click on the power shell option and it'll again ask you the administrator username and password
for core server.
In my case the Sora reason the domain and I don't need to enter the credentials the administrative windows
power shall console instantly launches and I can enter their commands to administer this remote server
I can check that I have servers installed on this particular server by typing in get windows feature
vamp and the wildcard for all the features contained in web vert and I as I as you can see this server
is there the role of web server is there now I can type in get a side and see that it'll bring all listed
sites and this core one instance.
Now let's switch over to power shall I see and reviewed several examples which could be useful for you
in terms of manage an AI as with power show.
So as you remember we can declare the variable which will contain all the servers we want to manage
it will be servers and two servers will will be managing core WAN and core to then they are read in
and other variable which contain the Command European session.
What means that they are creating a power shell a remote session to these computers which are contained
in variable servers and we can invoke command.
Basically it's a run in command on this servers will type invoke commands session session variable session
and the command itself the syntax this should be script block and the command in currently braces will
get all the sites run and all this to servers as you can see there out it is very detailed contained
in all the configuration of the websites run in on core one and core to let's say that we want to select
only the name of the website and the computer routers is running on.
So in this case we allowed buy up and former table by name and when it pays computer or name property
to select the server on which this site is run and on and it will reveal only the name which is default
website and to the computer name core WAN and core to we can also add state property to see if the website
is run and or stopped.
Now if we want to stop all the Web sites running on lists to servers in this case we can run the following
command interval command session script blog get I aside and pipe it to stop I site and curly braces.
So you get the idea.
Now if we run the same request to see the state of these two websites will see that they are stopped
now.
Let's start them again.
My running start this ISIS command.