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

Azure MFA with Azure AD and RDS

Failed to setup initiator portal. Error status is given in the dump data.

Invalid pointer on gpresult /h gpreport.html