[powershell] Two questions in one? Score!

2018-01-05 Thread Kurt Buff
Hi all, Very simple, and almost certainly obvious to you guys what I'm doing wrong, but first a question about Get-DFSRBacklog: Why am I seeing blank lines in the output for this cmdlet? Anyone have a clue on that? The output is always the same for this cmdlet - that is, if I run the script severa

RE: [powershell] Two questions in one? Score!

2018-01-05 Thread Michael B. Smith
What is $_? You probably meant to use $Line there. And you probably want to skip entries that are blank. -Original Message- From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Kurt Buff Sent: Friday, January 5, 2018 6:27 PM To: powershell@lists.myit

Re: [powershell] Two questions in one? Score!

2018-01-05 Thread Kurt Buff
Thanks for the help! I figured out the blank lines - the output from Get-DfsrBacklog has lines in it with version vector tombstone data, which isn't the same as the rest of the output, and doesn't include the fullpathname, so that field is blank. So, I changed the first line of the script to this

RE: [powershell] Two questions in one? Score!

2018-01-05 Thread Michael B. Smith
Save the error and look at the innerexception. -Original Message- From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Kurt Buff Sent: Friday, January 5, 2018 8:07 PM To: powershell@lists.myitforum.com Subject: Re: [powershell] Two questions in one? Sc