does anyone know how to disable quick edit mode from within a powershell script? This question's "answer" is not an answer:
Enable programmatically the "Quick Edit Mode" in PowerShell
(Though one could set the registry setting programatically, doing so would not affect the current session).
I have looked at the $host
, $host.UI
and $host.UI.RawUI
objects and cannot find anything relevant.
To make things a bit more clear, I do not want to change the registry. In particular, I do not want to change the default behaviour. In fact, there is just one script, and really only one branch of the script, where I need to disable quick-edit. So I need to be able to disable it programatically. Or at the very least, be able to start powershell with command line options to disable quick edit.
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…