Error: The handle is invalid when running in powershell
Posted: Wed 16 Feb 2011 20:37
The same command line works just fine from a regular dos window. Powershell commands:
$ScriptBlock = { C:\"Program Files"\Devart\"dbForge Data Compare for MySQL"\datacompare.com /datacompare /source host:localhost database:test1 user:root password:hidden /target host:localhost database:test2 user:root password:hidden }
Invoke-Command $ScriptBlock
I can't seem to find any reference to this error anywhere on the site.
$ScriptBlock = { C:\"Program Files"\Devart\"dbForge Data Compare for MySQL"\datacompare.com /datacompare /source host:localhost database:test1 user:root password:hidden /target host:localhost database:test2 user:root password:hidden }
Invoke-Command $ScriptBlock
I can't seem to find any reference to this error anywhere on the site.