Converting the Windows Script Host DisconnectObject Method

Definition: Disconnects a connected object's event sources.

DisconnectObject

In Windows Script Host the DisconnectObject 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