Remote Computing Overview in Windows PowerShell

Q

How to manage remote computers in Windows PowerShell?

✍: FYIcenter.com

A

Windows PowerShell allows you to manage remote computers by using various technologies, including WMI, RPC, and WS-Management. You can run commands on one or hundreds of computers with a single Windows PowerShell command.

Windows PowerShell offers two ways to interact with remote computers:

1. Running session-less cmdlets targeting remote computers. Windows PowerShell allows you to run the following cmdlets against remote computers:

Restart-Computer
Test-Connection    
Clear-EventLog
Get-EventLog
Get-HotFix
Get-Process
Get-Service
Set-Service
Get-WinEvent
Get-WmiObject

2. Running a single command with one-time sessions with remote computers. The "Invoke-Command" allows you to run a single command or script on one or many remote computers with a temporary session. For example:

invoke-command india-server {query user}

3. Running a persistent session with interactive commands on a single remote computer. For example:

Enter-PSSession india-server
[india-server]... Interactive commands ...
[india-server]... 
[india-server] Exit-PSSession

 

"Test-Connection" Cmdlet in Windows PowerShell

Managing Remote Computer with Windows PowerShell

Managing Remote Computer with Windows PowerShell

⇑⇑ Windows PowerShell Tutorials

2016-10-17, 1686🔥, 0💬