Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1740

PowerShell Plugin vs. PShell

$
0
0
Launch Internet Explorer, then display the date on the console;
Code:
timer pshell /s "$ie11 = New-Object -ComObject InternetExplorer.Application.1;$ie11.Visible = $true;Get-Date"
0.636
0.560
0.654

Code:
timer echo %_psdate
0.002
0.001
0.001

Running PowerShell code via a TCC Plugin appears to be much faster than using PSHELL.

Excerpt from the plugin;
Code:
// Create a PowerShell instance
    PowerShell^ ps = PowerShell::Create();
    ps->AddScript("$ie11 = New-Object -ComObject...

Read more

Viewing all articles
Browse latest Browse all 1740

Trending Articles