I'm running into a real road block. I need to execute a method on a .NET COM object remotely. The only way I know to do this on a remote computer is through invoke-command. The problem is security My knowledgeable VB guy says that he can do it through a VB script with no prerequisites. The environment I'm running my invoke-command on absolutely has not had enable-psremoting run on their endpoints. So invoke-command is now useless. The only option I can come up with is to download PSEXEC and use that to enable psremoting. I just hate that solution.
In case you're wondering, my command is:
invoke-command -computer computername -scriptblock {(New-Object -Comobject Obiwan.Kenobi)update(1)}
Works fine if the target computer has had enable-psremoting run on it. If it has not, I'm SOL.
↧
My Options for Invoke-Command
↧