From the course: Windows Server 2025: Manage, Monitor, and Maintain Servers

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

PowerShell remoting

PowerShell remoting

- [Instructor] We can use PowerShell when it comes to monitoring and maintaining our servers, and we can even do this remotely. So, for instance, if I am on one server, server 01, and I want to monitor and maintain DC1, I can do that by typing in enter-pssession followed by the name of the server. And because I'm logged in as the administrator on server 01, it's allowing me to log right in without a username and password. However, if I was not on the domain as the domain administrator, it would then pop up with a password and username prompt, which I would enter, and then I would have the same result. So let's say, for instance, that we're having a problem with a particular service that's running on DC1, and it's the Windows update service. So I can type stop-service followed by -name and then the name of the service. And it's always a good idea to use quotes. In some cases you don't have to, but you do definitely need to if there's any spaces within the commandlet itself. So now I'm…

Contents