0
Completed

Document missing function in PowerShell script using ISE

Adam van Vliet 9 years ago updated by anonymous 8 years ago 1

The ConfigureEventBrokerChangesActivity.ps1 script makes use of the host.UI.RawUI.ReadKey function. When running under ISE the function isn't made available and the belowexception is thrown. A troubleshooting article should explain that the script is not intended to run under ISE, and that the line can be removed if required.

PS C:\FIM Installers> C:\FIM Installers\FIMEventBrokerWorkflow.ps1

PS C:\FIM Installers> C:\FIM Installers\ConfigureEventBrokerChangesActivity.ps1
This script will add the required Activity Information Configuration to the FIM instance for the Event Broker Changes Activity. Press any key to continue.
Exception calling "ReadKey" with "1" argument(s): "The method or operation is not implemented."
At C:\FIM Installers\ConfigureEventBrokerChangesActivity.ps1:37 char:1
+ $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : NotImplementedException
 
Import complete. Verify that the Event Broker Changes Activity is correctly listed in the Activity Information Configuration. Press any key to finish.
Exception calling "ReadKey" with "1" argument(s): "The method or operation is not implemented."
At C:\FIM Installers\ConfigureEventBrokerChangesActivity.ps1:68 char:1
+ $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : NotImplementedException

Migrated to Visual Studio Online.