Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Different behavior of "Get-Content -Wait" on Windows Server 2008

Reply
 
Old 04-18-2009   #1 (permalink)
Christian Schindler


 
 

Different behavior of "Get-Content -Wait" on Windows Server 2008

I use "Get-Content -Wait <Logfile>" in situations where I have to
troubleshoot
transport issues on my Exchange Server 2007.

When running on Windows Server 2003, the command opens the Logfile, then
keeps it open and displays new content in the logfile immediately.

When running on Windows Server 2008, the logfile is opened, kept open, but
new content is not displayed.

What am I missing here? I tried running PS as adminsitrator - with no
succes.

Any ideas what I can do? Is this a known issue?`

TIA

--
Christian Schindler


My System SpecsSystem Spec
Old 04-20-2009   #2 (permalink)
Bob Landau


 
 

RE: Different behavior of "Get-Content -Wait" on Windows Server 2008

Are you using the same version of Exchange of both machine?

Does Exchange always append to the log or will it modify exiting records.
Does this depend on the size of the log.

Exchange like most services likely do cache the log entries and do a lazy
write. Which means nothing goes to disk till after the write. If you can
force a write do so.

Can you reproduce this outside of Exchange 2007?

i.e.
using notepad create a file, write to it, save it
gc <file> -wait
either reopen the file in notepad or if its still open append to the end of
the file and
save it

If the works or you think this may be related to exchange you should
probably repost there.

"Christian Schindler" wrote:
Quote:

> I use "Get-Content -Wait <Logfile>" in situations where I have to
> troubleshoot
> transport issues on my Exchange Server 2007.
>
> When running on Windows Server 2003, the command opens the Logfile, then
> keeps it open and displays new content in the logfile immediately.
>
> When running on Windows Server 2008, the logfile is opened, kept open, but
> new content is not displayed.
>
> What am I missing here? I tried running PS as adminsitrator - with no
> succes.
>
> Any ideas what I can do? Is this a known issue?`
>
> TIA
>
> --
> Christian Schindler
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: "Virtual Server 2005 R2 SP1" on "Windows Web Server 2008" host? Virtual Server
TcpClient throws "invalid pointer address" exception on Server 2008 .NET General
how to make the email content text indexed by "Windows Desktop Search 4.0" ? Live Mail
MS Hyper-V Server install as VM on Windows 2008 Ent error - "No active network adapters found" Virtual Server
Message "Wait while Windows configures..." when I launch applicati Vista performance & maintenance


Vista Forums 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 Ltd

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