Powershell Job seems to be typing the {Enter} key. How to make it not interact with my job?


at following link have powershell not behaving expect to.

http://codepaste.net/a7evnt

at high level script creates powershell job (script block) , runs it.

within job console.readline(). expect block , wait (forever). task completes. means (powershell itself) interacting job "typing" {enter} @ point console.readline() executes?

how make similar script block @ console.readline()?

thanks.

i don't know why powershell readline. you'll have change readkey() instead.  works, , can compare specific key if want make harder accidentally close when it's run in regular console


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source