Version 3 hasn't got Readkey() implemented
the following code:
$x = $host.ui.rawui.readkey("noecho,includekeydown")
...works in version 2 session, gives following error in version 3:
exception calling "readkey" "1" argument(s): "the method or operation not implemented."
@ line:1 char:1
+ $key = $host.ui.rawui.readkey("noecho,includekeydown")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ categoryinfo : notspecified: (:) [], methodinvocationexception
+ fullyqualifiederrorid : notimplementedexception
can else verify 'issue'?
([string](0..9|%{[char][int](32+("39826578846355658268").substring(($_*2),2))})).replace(' ','')
rich prescott | infrastructure architect, windows engineer , powershell blogger | mcitp, mcts, mcp
engineering efficiency
@rich_prescott
client system administration tool
ad user creation tool
Windows Server > Windows PowerShell
Comments
Post a Comment