Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

A pop-history Cmdl

Closed Thread
 
Thread Tools Display Modes
Old 09-30-2007   #1 (permalink)
Ger F.
Guest


 

A pop-history Cmdl

Hello all together,
Maybe a good note, when you startup a PS script with a lot of input for
instance "Yes" or "No" or "add or delete", etc., etc. and after completion
you need to start again for an other client, you must back and back by the up
arrow, because all the input from the shell is in the history. When there is
a Cmdl pop-history that delete the last history that I can place after the
use of the data from read-host. Now I close every time Windows PowerShell and
start it again with an empty history.
I hope that maybe other Windows PowerShell users who have the same
experience with big forms give a good response at this item.
Cheers Ger

--
I thank you in advance for your reaction.
Ger

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/communities...ows.powershell
Old 09-30-2007   #2 (permalink)
Jon
Guest


 

Re: A pop-history Cmdl


"Ger F." <GerF@xxxxxx> wrote in message
news:9A939CEA-793B-4D11-A67D-7BBB2EDF741F@xxxxxx
Quote:

> Hello all together,
> Maybe a good note, when you startup a PS script with a lot of input for
> instance "Yes" or "No" or "add or delete", etc., etc. and after completion
> you need to start again for an other client, you must back and back by the
> up
> arrow, because all the input from the shell is in the history. When there
> is
> a Cmdl pop-history that delete the last history that I can place after the
> use of the data from read-host. Now I close every time Windows PowerShell
> and
> start it again with an empty history.
> I hope that maybe other Windows PowerShell users who have the same
> experience with big forms give a good response at this item.
> Cheers Ger
>
> --
> I thank you in advance for your reaction.
> Ger
>


See if this blog entry helps.

Perserving Command History Across Sessions
http://blogs.msdn.com/powershell/arc...01/653194.aspx

--
Jon


Old 09-30-2007   #3 (permalink)
Kiron
Guest


 

Re: A pop-history Cmdl

Try Invoke-History or its alias 'ihy'

Quoting from (help ihy):

"If you type characters, Invoke-History matches the most recent commands first. If you omit this parameter, Invoke-History runs the last (mostrecent) command. The parameter name ("-id") is optional. To find the ID number of a command, use Get-History."

You would only need to type ihy to run the script again.

--
Kiron
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: No History in IE 7.0 Robert Aldwinckle Vista General 0 07-14-2008 11:53 PM
ie history bigsista21 Vista security 2 06-29-2008 06:57 PM
Re: IE7 History Gone! Robert Aldwinckle Vista performance & maintenance 0 02-27-2008 04:53 PM
History- Wayne L. Vista General 2 05-13-2007 08:09 PM
History and Where are we Now? SysAdminTH Vista General 23 03-13-2007 03:07 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50