254 reputation
17
bio website meltondba.wordpress.com
location Montgomery, AL
age 36
visits member for 3 years, 5 months
seen Jan 1 at 17:59

soaking up everything I can about SQL Server and PowerShell.

Twitter

Google+

LinkedIn


Dec
22
awarded  Scholar
Dec
22
accepted PowerShell: find line but include proceeding and preceding line(s)
Dec
22
comment PowerShell: find line but include proceeding and preceding line(s)
That sounds to be more trouble than it is worth as I am trying to just keep this function as simple as possible. As I expect you are correct on the object property I think I will just pass on trying to add this functionality.
Dec
21
revised PowerShell: find line but include proceeding and preceding line(s)
added example
Dec
21
comment PowerShell: find line but include proceeding and preceding line(s)
I actually can't get this to work dealing with reading SQL Server error logs. I am reading them via SMO so don't know if that effects it, wouldn't think it would.
Dec
20
comment PowerShell: find line but include proceeding and preceding line(s)
Rereading my own question, it I a bit weak...I'd even down vote it myself.
Dec
20
asked PowerShell: find line but include proceeding and preceding line(s)
Dec
15
comment Use a variable inside a powershell string
@matt no I don't. Worked fine on my machine
Dec
15
answered Use a variable inside a powershell string
Jun
13
comment How can I both pipe and display output in Windows' command line?
Edited to simply output each line and check at the same time, setting a flag if it finds your message. As it stands your command being executed based on the message would not execute until the output is complete, which your question does state it cannot run asynchronously. However if you could use Start-Job in PowerShell to execute it outside of the current process if you need it to, then once the output is done check the status of the job with Get-Job.
Jun
13
revised How can I both pipe and display output in Windows' command line?
deleted 78 characters in body
Jun
12
answered How can I both pipe and display output in Windows' command line?
Jan
6
comment Powershell scripts works manually but not as a scheduled task
What account runs the task? Might try setting visibility to false so it starts the process but does try showing the window.
Dec
28
revised Piping all output from Get-ChildItem
added 395 characters in body
Dec
28
answered Piping all output from Get-ChildItem
Dec
18
comment Powershell opening with ridiculously tiny font (about 5) and won't change to new default settings
What OS? Are you admin on the machine?
Dec
18
awarded  Citizen Patrol
Dec
5
comment Can the default PowerShell terminal keep a command history?
blogs.msdn.com/b/powershell/archive/2006/07/01/… came across this from the architect behind Powershell. You would just need to train yourself around not tying exit or hitting the red x to close the window.
Dec
5
awarded  Commentator
Dec
5
comment Can the default PowerShell terminal keep a command history?
Why would you automatically need to save them? Do you literally need to save the exact command, or the purpose of the command? If I issue a command that I find myself using a second time then I out that command in "my notebook" or profile for use again.