246 reputation
16
bio website meltondba.wordpress.com
location Montgomery, AL
age 35
visits member for 2 years, 11 months
seen Jun 30 at 20:02

soaking up everything I can about SQL Server and PowerShell.

Twitter

Google+

LinkedIn


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.
Dec
5
comment Can the default PowerShell terminal keep a command history?
If you need it to recall commands you use over and over why not use profiles? You can also look at using Start-Transcript.
Nov
25
comment PowerShell - copying a file to multiple locations
When calling it from the batch file follow this question, has a few options to choose from in order to get elevated privileged stackoverflow.com/questions/7690994/…
Nov
25
comment PowerShell - copying a file to multiple locations
Are you executing the script through the administrator console or by Group Policy?
Nov
25
awarded  Yearling
Nov
23
awarded  Editor
Nov
23
revised PowerShell - copying a file to multiple locations
added 918 characters in body
Nov
23
answered PowerShell - copying a file to multiple locations
Nov
13
comment Equivalent of cmd's “where” in powershell
Interesting reading I found sometime back on Where.exe and Get-ChildItem: blogs.technet.com/b/heyscriptingguy/archive/2010/07/24/…
Nov
13
comment Run a script with an interactive prompt on login
Might check this question on SO: stackoverflow.com/questions/8050298/…