Invoke Command Examples
If you aren’t using Invoke-Command on your network, you should really think about upgrading your life and enabling WinRM in your environment. Here are a few examples of Invoke-Command used in PowerShell: Note: replace targethostname with the hostname of the computer you are targeting. This will get the ipconfig information of the computer. invoke-command -ComputerName