Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This cmdlet tests whether the WinRM service is running on the remote computer.

Image Removed

 Image Added


The script below reads the contents of the C:\ directory on a remote computer 

Code Block
languagepowershell
Invoke-Command -ComputerName COMPUTER -ScriptBlock { Get-ChildItem C:\ } -credential USERNAME

Image Modified