Converting the Windows Script Host ConnectObject Method

Definition: Connects the object's event sources to functions with a given prefix.

ConnectObject

In Windows Script Host the ConnectObject method is used when starting and running scripts on a remote computer. In Windows PowerShell 1.0 there is no built-in mechanism for executing scripts and/or commands on remote machines. This capability does exist in the Community Technology Preview (CTP) releases of Windows PowerShell 2.0; however, the exact procedures used to carry out these commands or execute these scripts hinges on the version of the CTP you are running. For more information, see the Script Center’s Windows PowerShell 2.0 home page.

See conversions of other Windows Script Host methods and properties. Return to the VBScript to Windows PowerShell home page