Powershell Error - VisualCron - Forum

Community forum

Danny van Oijen
2019-04-10T13:39:42Z
Hi,

After the latest update all my poertshell tasks are failing.
They get a error output:
A command that prompts the user failed because the host program or the command type does not support user interaction. Try a host program that supports user interaction, such as the Windows PowerShell Console or Windows PowerShell ISE, and remove prompt-related commands from command types that do not support user interaction, such as Windows PowerShell workflows.

A workaround is editing the job and deselecting Non zero exit code.
The version before had no issues.

To give an example, connecting to vcenter server alone gives this error:

# Connect to VC
Get-Module –ListAvailable VM* | Import-Module | Out-Null
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null
Connect-VIServer <VCENTER SERVER> -User <USERNAME> -Password <PASSWORD> -WarningAction SilentlyContinue | Out-Null
Support
2019-04-11T22:02:48Z
Can you try this build? https://www.visualcron.c....aspx?g=posts&t=9428 

I guess it is related to the " | Out-Null"
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Danny van Oijen
2019-04-12T06:25:08Z
Henrik,

Unfortunatly still the same.
Support
2019-04-14T14:14:05Z
Did you remove the | OutNull?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Danny van Oijen
2019-04-15T06:51:19Z
Support
2019-04-15T09:51:58Z
Originally Posted by: Danny van Oijen 

Yes, same result.



Which exact line is causing the issue? (if you remove one, execute, then remove).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top