windows - Powershell Script fails with "Read and Prompt Functionality is not available" -


i running series of remove-netipaddress , new-netipaddress powershell commands. run fine in interactive mode locally on machines.

when run through ansible, fail prompt user confirm actions.

i have tried -force, -confirm:$false no avail. when use them, plays hang.

does know how "interactive" powershell commands working?

i don't have access cmdlets atm if indeed behaves in such way can't prevent prompt work around it:

  • run command in background job , kill after time period (this not job done said sometimes prompts @ least have script unblocked).
  • implement 1 of console automation methods described here.

Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -