Hi Again, I’ve been looking into different ways of invoking commands on remote machines. Here’s one that can be used in VB.NET by using WMI. First add a reference to System.Management and reference it at the start of your project:
1
Imports System.Management
Then add the guts, the code that calls WMI… Read more »
Hi, Today I found myself needing to run a PowerShell command from the command line. I ran powershell /? and had a look at the switches and there is a -Command switch. My first attempt to use the switch looked like: