0

I have gone through various links on SO regarding RDP to a windows machine but still can't understand how to execute for test, ipconfig command on remote machine and gather the results in a text file.

I can't get beyond Mstsc which creates the gui and asks for password and username.

Zanam
  • 4,607
  • 13
  • 67
  • 143
  • Your best choice is to use `Invoke-Command` in `PowerShell`. If the `Invoke-Command` statement you create does not work, then copy it into a question here in order to ask. – lit May 15 '18 at 20:04
  • Can you please point me to some reference code? – Zanam May 16 '18 at 13:19
  • Complete with examples. https://learn.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Core/Invoke-Command?view=powershell-5.1 – lit May 16 '18 at 13:24

0 Answers0