PowerShell for IT Professionals [#10] – Remote management with PowerShell
In this lesson we’re going to learn how to do one-to-one and one-to-many remote management with PowerShell. There’s no need for telnet, ssh or psexec as PowerShell has its own protocol that’s built in right into Windows. We will look at how to create interactive sessions and send commands to multiple servers at once.
- With Enter-PSSesion, Remote to remote server and restart “Windows update” service
- With Invoke-Command find out the remote computers last boot up/startup time
- List all running processes on remote server without using Enter-PsSession or Invoke-Command
- If you have a Domain Controller available, use Invoke-Command to list all computers on that network (you can use * for filter), remember that you need to provide all necessary parameters with your command in the script block so command just runs and doesn’t prompt for any additional information.