Does PowerShell_ISE 3.0 CTP2 support Register-EngineEvent?
i have job saves current command history when type 'exit' powershell session. works under standard powershell console , powershell_ise v2.0. no longer works under powershell_ise v3.0...
register-engineevent -sourceidentifier powershell.exiting -action { get-history -count $maximumhistorycount | export-clixml "$env:userprofile\$((get-process -id $pid).starttime.tostring('yyyymmdd-hhmm'))-$pid.xml" } | out-null
is there changed , missed in documentation?
--greg
sadly, not bug... i've complained how works , im
told that’s how is. cant safely use , expect
to catch types of exits.
if in habit of doing exit, i'd suggest making quit
function handles you, , @ least have exit event
call quit, way cover couple basis..
justin rich
http://jrich523.wordpress.com
powershell v3 guide (technet)
please remember mark replies answers if , unmark them if provide no help.
Windows Server > Windows PowerShell
Comments
Post a Comment