...
This cmdlet tests whether the WinRM service is running on the remote computer.
The script below reads the contents of the C:\ directory on a remote computer
| Code Block | ||
|---|---|---|
| ||
Invoke-Command -ComputerName COMPUTER -ScriptBlock { Get-ChildItem C:\ } -credential USERNAME |


