Re: Is there a way...

2012-06-07 Thread Andrew S. Baker
You can try *%~f0*

* *

*ASB* *http://XeeMe.com/AndrewBaker* *Harnessing the Advantages of
Technology for the SMB market…

*



On Thu, Jun 7, 2012 at 1:45 PM, David Lum  wrote:

> Only the fact that whomever I send it to has to change it. Trivial for us,
> but I’m betting someone will screw it up and call me J
>
> ** **
>
> The %0\..\ is how you call an executable from a the same location as where
> the batch file is running if the batch file has been called via UNC. Most
> commonly seen in legacy logon batch files:
>
> ** **
>
> @echo off
>
> %0\..\wkix.exe %0\..\Login.k2k
>
> ** **
>
> As long as these two files are in the same folder that the script was
> called from, this will call WKIX.EXE and pass Login.k2k to WKIX.EXE.  It
> won’t care what domain controller the system has logged in to.
>
> ** **
>
> Dave
>
> ** **
>
> ** **
>
> *From:* Crawford, Scott [mailto:crawfo...@evangel.edu]
> *Sent:* Thursday, June 07, 2012 10:26 AM
>
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> What don’t you like about it?  seems pretty straightforward to me.
>
> ** **
>
> What’s the %0 trick, btw. As far as I know, that just returns the name of
> the batch file.
>
> ** **
>
> *From:* David Lum [mailto:david@nwea.org]
> *Sent:* Thursday, June 07, 2012 12:20 PM
>
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> That does work. I don’t like it, but it works (I need to distribute this
> batch file, but this might work OK).
>
> ** **
>
> Dave
>
> ** **
>
> *From:* Ken Cornetet [mailto:ken.corne...@kimball.com]
> *Sent:* Thursday, June 07, 2012 9:52 AM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> What about 
>
> for /f "tokens=1-5 " %%d in (‘%LOGONSERVER%\NETLOGON\FILEVER
> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set
> FLASHVER=%%g
>
> ** **
>
> ** **
>
> ** **
>
> *From:* David Lum [mailto:david@nwea.org]
> *Sent:* Thursday, June 07, 2012 12:22 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> I need to figure out a way to make this work?
>
> ** **
>
> FILEVER.EXE is in \NETLOGON.   If I map a drive it works (B: =
> \\DC\netlogon)
>
> ** **
>
> for /f "tokens=1-5 " %%d in ('B:\FILEVER
> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set
> FLASHVER=%%g
>
> * *
>
> If I try and use the %0\..\ trick it does not
>
> for /f "tokens=1-5 " %%d in ('%0\..\FILEVER
> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set
> FLASHVER=%%g
>
> ** **
>
> *David Lum*
> Systems Engineer // NWEATM
> Office 503.548.5229 //* *Cell (voice/text) 503.267.9764
>
> ** **
>
>
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way...

2012-06-07 Thread David Lum
Oh wait, I are an ID10T!   I replaced %LOGONSERVER% with my server name, making 
it no longer a variable!!  DOY.  Works fine with the variable %LOGONSERVER% in 
there too.

NEVERMIND. Thank you Scott and everyone else that contributed!

Dave

From: Crawford, Scott [mailto:crawfo...@evangel.edu]
Sent: Thursday, June 07, 2012 11:06 AM
To: NT System Admin Issues
Subject: RE: Is there a way...

What are you expecting they'll have to change?

Interesting. I'll have to play with %0 a bit, but I don't think I've had 
problems calling batch files from a UNC path that reference .exe in that same 
path.  Maybe it's an old limitation.

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, June 07, 2012 12:45 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Only the fact that whomever I send it to has to change it. Trivial for us, but 
I'm betting someone will screw it up and call me :)

The %0\..\ is how you call an executable from a the same location as where the 
batch file is running if the batch file has been called via UNC. Most commonly 
seen in legacy logon batch files:

@echo off
%0\..\wkix.exe %0\..\Login.k2k

As long as these two files are in the same folder that the script was called 
from, this will call WKIX.EXE and pass Login.k2k to WKIX.EXE.  It won't care 
what domain controller the system has logged in to.

Dave


From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, June 07, 2012 10:26 AM
To: NT System Admin Issues
Subject: RE: Is there a way...

What don't you like about it?  seems pretty straightforward to me.

What's the %0 trick, btw. As far as I know, that just returns the name of the 
batch file.

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, June 07, 2012 12:20 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

That does work. I don't like it, but it works (I need to distribute this batch 
file, but this might work OK).

Dave

From: Ken Cornetet 
[mailto:ken.corne...@kimball.com]<mailto:[mailto:ken.corne...@kimball.com]>
Sent: Thursday, June 07, 2012 9:52 AM
To: NT System Admin Issues
Subject: RE: Is there a way...

What about
for /f "tokens=1-5 " %%d in ('%LOGONSERVER%\NETLOGON\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g



From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david....@nwea.org]>
Sent: Thursday, June 07, 2012 12:22 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

I need to figure out a way to make this work?

FILEVER.EXE is in \NETLOGON.   If I map a drive it works (B: = 
\\DC\netlogon)

for /f "tokens=1-5 " %%d in ('B:\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

If I try and use the %0\..\ trick it does not
for /f "tokens=1-5 " %%d in ('%0\..\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbel

RE: Is there a way...

2012-06-07 Thread Crawford, Scott
What are you expecting they'll have to change?

Interesting. I'll have to play with %0 a bit, but I don't think I've had 
problems calling batch files from a UNC path that reference .exe in that same 
path.  Maybe it's an old limitation.

From: David Lum [mailto:david@nwea.org]
Sent: Thursday, June 07, 2012 12:45 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Only the fact that whomever I send it to has to change it. Trivial for us, but 
I'm betting someone will screw it up and call me :)

The %0\..\ is how you call an executable from a the same location as where the 
batch file is running if the batch file has been called via UNC. Most commonly 
seen in legacy logon batch files:

@echo off
%0\..\wkix.exe %0\..\Login.k2k

As long as these two files are in the same folder that the script was called 
from, this will call WKIX.EXE and pass Login.k2k to WKIX.EXE.  It won't care 
what domain controller the system has logged in to.

Dave


From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, June 07, 2012 10:26 AM
To: NT System Admin Issues
Subject: RE: Is there a way...

What don't you like about it?  seems pretty straightforward to me.

What's the %0 trick, btw. As far as I know, that just returns the name of the 
batch file.

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, June 07, 2012 12:20 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

That does work. I don't like it, but it works (I need to distribute this batch 
file, but this might work OK).

Dave

From: Ken Cornetet 
[mailto:ken.corne...@kimball.com]<mailto:[mailto:ken.corne...@kimball.com]>
Sent: Thursday, June 07, 2012 9:52 AM
To: NT System Admin Issues
Subject: RE: Is there a way...

What about
for /f "tokens=1-5 " %%d in ('%LOGONSERVER%\NETLOGON\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g



From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david....@nwea.org]>
Sent: Thursday, June 07, 2012 12:22 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

I need to figure out a way to make this work?

FILEVER.EXE is in \NETLOGON.   If I map a drive it works (B: = 
\\DC\netlogon)

for /f "tokens=1-5 " %%d in ('B:\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

If I try and use the %0\..\ trick it does not
for /f "tokens=1-5 " %%d in ('%0\..\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way...

2012-06-07 Thread David Lum
Only the fact that whomever I send it to has to change it. Trivial for us, but 
I'm betting someone will screw it up and call me :)

The %0\..\ is how you call an executable from a the same location as where the 
batch file is running if the batch file has been called via UNC. Most commonly 
seen in legacy logon batch files:

@echo off
%0\..\wkix.exe %0\..\Login.k2k

As long as these two files are in the same folder that the script was called 
from, this will call WKIX.EXE and pass Login.k2k to WKIX.EXE.  It won't care 
what domain controller the system has logged in to.

Dave


From: Crawford, Scott [mailto:crawfo...@evangel.edu]
Sent: Thursday, June 07, 2012 10:26 AM
To: NT System Admin Issues
Subject: RE: Is there a way...

What don't you like about it?  seems pretty straightforward to me.

What's the %0 trick, btw. As far as I know, that just returns the name of the 
batch file.

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, June 07, 2012 12:20 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

That does work. I don't like it, but it works (I need to distribute this batch 
file, but this might work OK).

Dave

From: Ken Cornetet 
[mailto:ken.corne...@kimball.com]<mailto:[mailto:ken.corne...@kimball.com]>
Sent: Thursday, June 07, 2012 9:52 AM
To: NT System Admin Issues
Subject: RE: Is there a way...

What about
for /f "tokens=1-5 " %%d in ('%LOGONSERVER%\NETLOGON\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g



From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, June 07, 2012 12:22 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

I need to figure out a way to make this work?

FILEVER.EXE is in \NETLOGON.   If I map a drive it works (B: = 
\\DC\netlogon)

for /f "tokens=1-5 " %%d in ('B:\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

If I try and use the %0\..\ trick it does not
for /f "tokens=1-5 " %%d in ('%0\..\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way...

2012-06-07 Thread David Lum
That does work. I don't like it, but it works (I need to distribute this batch 
file, but this might work OK).

Dave

From: Ken Cornetet [mailto:ken.corne...@kimball.com]
Sent: Thursday, June 07, 2012 9:52 AM
To: NT System Admin Issues
Subject: RE: Is there a way...

What about
for /f "tokens=1-5 " %%d in ('%LOGONSERVER%\NETLOGON\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g



From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, June 07, 2012 12:22 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

I need to figure out a way to make this work?

FILEVER.EXE is in \NETLOGON.   If I map a drive it works (B: = 
\\DC\netlogon)

for /f "tokens=1-5 " %%d in ('B:\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

If I try and use the %0\..\ trick it does not
for /f "tokens=1-5 " %%d in ('%0\..\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way...

2012-06-07 Thread Ken Cornetet
What about
for /f "tokens=1-5 " %%d in ('%LOGONSERVER%\NETLOGON\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g



From: David Lum [mailto:david@nwea.org]
Sent: Thursday, June 07, 2012 12:22 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

I need to figure out a way to make this work?

FILEVER.EXE is in \NETLOGON.   If I map a drive it works (B: = 
\\DC\netlogon)

for /f "tokens=1-5 " %%d in ('B:\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

If I try and use the %0\..\ trick it does not
for /f "tokens=1-5 " %%d in ('%0\..\FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g

David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way...

2012-06-07 Thread David Lum
4.2.2.3 is hard coded - they want Internet responsiveness and that's an IP that 
work. It's a poor test but all I can think of w/out requiring some additional 
software. PowerShell is out because I can't assume any of the XP machines will 
have it installed - this tool will go to environments I have no control over.

-Original Message-
From: Angus Scott-Fleming [mailto:angu...@geoapps.com] 
Sent: Wednesday, June 06, 2012 2:41 PM
To: NT System Admin Issues
Subject: Re: Is there a way...

On 24 May 2012 at 21:08, David Lum  wrote:

> In batch to take this output:
> ---
> W32i DLL ENU 11.2.202.235 shp flash32_11_2_202_235.ocx
> Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
> ---
> And end up with this in a .TXT file?
> ---
> 11.2.202.235 , 24ms
> ---
> I'm wondering if a FOR loop can be leveraged?

Is the 4.2.2.3 hard-coded or is that the IP of the system being checked?

FWIW on XP the FOR syntax Scott C. provided to scavenge the OCX version didn't 
work.  The following syntax works on XP from the command-line to collect the 
version number:

for /f "tokens=1-5 usebackq" %i in (`filever 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"`) do set FLashV=%m


--
Angus Scott-Fleming
GeoApps, Tucson, Arizona
1-520-290-5038
Security Blog: http://geoapps.com/





~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ 
<http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin



Re: Is there a way...

2012-06-06 Thread Angus Scott-Fleming
On 24 May 2012 at 21:08, David Lum  wrote:

> In batch to take this output:
> ---
> W32i DLL ENU 11.2.202.235 shp flash32_11_2_202_235.ocx
> Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
> ---
> And end up with this in a .TXT file?
> ---
> 11.2.202.235 , 24ms
> ---
> I'm wondering if a FOR loop can be leveraged?

Is the 4.2.2.3 hard-coded or is that the IP of the system being checked?

FWIW on XP the FOR syntax Scott C. provided to scavenge the OCX version didn't 
work.  The following syntax works on XP from the command-line to collect the 
version number:

for /f "tokens=1-5 usebackq" %i in (`filever 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"`) do set FLashV=%m


--
Angus Scott-Fleming
GeoApps, Tucson, Arizona
1-520-290-5038
Security Blog: http://geoapps.com/





~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin


Re: Is there a way...

2012-05-25 Thread Andrew S. Baker
I grew up with them as well...

* *

*ASB* *http://XeeMe.com/AndrewBaker* *Harnessing the Advantages of
Technology for the SMB market…

*



On Fri, May 25, 2012 at 5:35 PM, Micheal Espinola Jr <
michealespin...@gmail.com> wrote:

> I grew up with them, so I'm biased for them.  I do realize that they are
> intimidating to people that haven't.
>
> --
> Espi
>
>
>
>
>
> On Fri, May 25, 2012 at 2:04 PM, Andrew S. Baker wrote:
>
>> I can't say I agree with this... :)
>>
>> * *
>>
>> *ASB* *http://XeeMe.com/AndrewBaker* *Harnessing the Advantages of
>> Technology for the SMB market…
>>
>> *
>>
>>
>>
>> On Fri, May 25, 2012 at 4:10 PM, Micheal Espinola Jr <
>> michealespin...@gmail.com> wrote:
>>
>>> One thing I wish we had more of here are roundabouts.  Traffic IMO flows
>>> better, and you also get the benefit of drivers that can merge more
>>> effectively.
>>>
>>> --
>>> Espi
>>>
>>>
>>>
>>>
>>> On Fri, May 25, 2012 at 12:49 PM, Rankin, James R >> > wrote:
>>>
>>>> **
>>>> didn't really think you were being serious. Tho you'd be surprised at
>>>> the perceptions some US citizens have of us. I've been asked on more than
>>>> one occasion how well I know the Queen, for instance
>>>>
>>>> ---Blackberried
>>>> --
>>>> *From: * Micheal Espinola Jr 
>>>> *Date: *Fri, 25 May 2012 12:22:24 -0700
>>>> *To: *NT System Admin Issues
>>>> *ReplyTo: * "NT System Admin Issues" <
>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>> *Subject: *Re: Is there a way...
>>>>
>>>> I'm only teasing.  Happy Friday!
>>>>
>>>> --
>>>> Espi
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, May 25, 2012 at 11:53 AM, Rankin, James R <
>>>> kz2...@googlemail.com> wrote:
>>>>
>>>>> **
>>>>> Dunno what the US term is for it. A road with two lanes on each side
>>>>> that isn't a motorway, i.e. Not subject to traffic prohibitions, no crash
>>>>> barriers, not subject to clearway restrictions, etc.
>>>>>  ---Blackberried
>>>>> --
>>>>> *From: * Micheal Espinola Jr 
>>>>> *Date: *Fri, 25 May 2012 11:47:46 -0700
>>>>> *To: *NT System Admin Issues
>>>>> *ReplyTo: * "NT System Admin Issues" <
>>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>>> *Subject: *Re: Is there a way...
>>>>>
>>>>> You guys are still riding in carriages?
>>>>>
>>>>> --
>>>>> Espi
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, May 25, 2012 at 11:37 AM, Rankin, James R <
>>>>> kz2...@googlemail.com> wrote:
>>>>>
>>>>>> **
>>>>>> Giving my other half a lift to the pub. I just got into severe
>>>>>> trouble with her for racing a BMW M6 all the way down the dual 
>>>>>> carriageway.
>>>>>> I get to babysit now and calm down :-)
>>>>>> ---Blackberried
>>>>>> ------
>>>>>> *From: * Jonathan Link 
>>>>>> *Date: *Fri, 25 May 2012 14:27:21 -0400
>>>>>> *To: *NT System Admin Issues
>>>>>> *ReplyTo: * "NT System Admin Issues" <
>>>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>>>> *Subject: *Re: Is there a way...
>>>>>>
>>>>>> On the way to the pub?
>>>>>>
>>>>>> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R <
>>>>>> kz2...@googlemail.com> wrote:
>>>>>>
>>>>>>> I am probably mistaken as I am in the car :-o
>>>>>>> ---Blackberried
>>>>>>> --
>>>>>>> *From: * "Rankin, James R" 
>>>>>>> *Date: *Fri, 25 May 2012 17:55:35 +
>>>>>>> *To: *NT System Admin Issues
>>>>>>> *ReplyTo: * kz2...@googlemail.com
>>>>>>> *Subject: *Re: Is there a way...
>>>>>>>
>>>>>>> It is

Re: Is there a way...

2012-05-25 Thread Micheal Espinola Jr
I grew up with them, so I'm biased for them.  I do realize that they are
intimidating to people that haven't.

--
Espi




On Fri, May 25, 2012 at 2:04 PM, Andrew S. Baker  wrote:

> I can't say I agree with this... :)
>
> * *
>
> *ASB* *http://XeeMe.com/AndrewBaker* *Harnessing the Advantages of
> Technology for the SMB market…
>
> *
>
>
>
> On Fri, May 25, 2012 at 4:10 PM, Micheal Espinola Jr <
> michealespin...@gmail.com> wrote:
>
>> One thing I wish we had more of here are roundabouts.  Traffic IMO flows
>> better, and you also get the benefit of drivers that can merge more
>> effectively.
>>
>> --
>> Espi
>>
>>
>>
>>
>> On Fri, May 25, 2012 at 12:49 PM, Rankin, James R 
>> wrote:
>>
>>> **
>>> didn't really think you were being serious. Tho you'd be surprised at
>>> the perceptions some US citizens have of us. I've been asked on more than
>>> one occasion how well I know the Queen, for instance
>>>
>>> ---Blackberried
>>> --
>>> *From: * Micheal Espinola Jr 
>>> *Date: *Fri, 25 May 2012 12:22:24 -0700
>>> *To: *NT System Admin Issues
>>> *ReplyTo: * "NT System Admin Issues" <
>>> ntsysadmin@lyris.sunbelt-software.com>
>>> *Subject: *Re: Is there a way...
>>>
>>> I'm only teasing.  Happy Friday!
>>>
>>> --
>>> Espi
>>>
>>>
>>>
>>>
>>> On Fri, May 25, 2012 at 11:53 AM, Rankin, James R >> > wrote:
>>>
>>>> **
>>>> Dunno what the US term is for it. A road with two lanes on each side
>>>> that isn't a motorway, i.e. Not subject to traffic prohibitions, no crash
>>>> barriers, not subject to clearway restrictions, etc.
>>>>  ---Blackberried
>>>> --
>>>> *From: * Micheal Espinola Jr 
>>>> *Date: *Fri, 25 May 2012 11:47:46 -0700
>>>> *To: *NT System Admin Issues
>>>> *ReplyTo: * "NT System Admin Issues" <
>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>> *Subject: *Re: Is there a way...
>>>>
>>>> You guys are still riding in carriages?
>>>>
>>>> --
>>>> Espi
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, May 25, 2012 at 11:37 AM, Rankin, James R <
>>>> kz2...@googlemail.com> wrote:
>>>>
>>>>> **
>>>>> Giving my other half a lift to the pub. I just got into severe trouble
>>>>> with her for racing a BMW M6 all the way down the dual carriageway. I get
>>>>> to babysit now and calm down :-)
>>>>> ---Blackberried
>>>>> --
>>>>> *From: * Jonathan Link 
>>>>> *Date: *Fri, 25 May 2012 14:27:21 -0400
>>>>> *To: *NT System Admin Issues
>>>>> *ReplyTo: * "NT System Admin Issues" <
>>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>>> *Subject: *Re: Is there a way...
>>>>>
>>>>> On the way to the pub?
>>>>>
>>>>> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R <
>>>>> kz2...@googlemail.com> wrote:
>>>>>
>>>>>> I am probably mistaken as I am in the car :-o
>>>>>> ---Blackberried
>>>>>> --
>>>>>> *From: * "Rankin, James R" 
>>>>>> *Date: *Fri, 25 May 2012 17:55:35 +
>>>>>> *To: *NT System Admin Issues
>>>>>> *ReplyTo: * kz2...@googlemail.com
>>>>>> *Subject: *Re: Is there a way...
>>>>>>
>>>>>> It is parsing the output again with the second For command to tidy it
>>>>>> up
>>>>>>
>>>>>> ---Blackberried
>>>>>> --
>>>>>> *From: * David Lum 
>>>>>> *Date: *Fri, 25 May 2012 17:50:39 +
>>>>>> *To: *NT System Admin Issues
>>>>>> *ReplyTo: * "NT System Admin Issues" <
>>>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>>>> *Subject: *RE: Is there a way...
>>>>>>
>>>>>> OK thanks. How is it not picking up the “bytes” or “time” instead?***
>>>>>> *
>>>>>>
>>&

Re: Is there a way...

2012-05-25 Thread Andrew S. Baker
I can't say I agree with this... :)

* *

*ASB* *http://XeeMe.com/AndrewBaker* *Harnessing the Advantages of
Technology for the SMB market…

*



On Fri, May 25, 2012 at 4:10 PM, Micheal Espinola Jr <
michealespin...@gmail.com> wrote:

> One thing I wish we had more of here are roundabouts.  Traffic IMO flows
> better, and you also get the benefit of drivers that can merge more
> effectively.
>
> --
> Espi
>
>
>
>
> On Fri, May 25, 2012 at 12:49 PM, Rankin, James R 
> wrote:
>
>> **
>> didn't really think you were being serious. Tho you'd be surprised at the
>> perceptions some US citizens have of us. I've been asked on more than one
>> occasion how well I know the Queen, for instance
>>
>> ---Blackberried
>> --
>> *From: * Micheal Espinola Jr 
>> *Date: *Fri, 25 May 2012 12:22:24 -0700
>> *To: *NT System Admin Issues
>> *ReplyTo: * "NT System Admin Issues" <
>> ntsysadmin@lyris.sunbelt-software.com>
>> *Subject: *Re: Is there a way...
>>
>> I'm only teasing.  Happy Friday!
>>
>> --
>> Espi
>>
>>
>>
>>
>> On Fri, May 25, 2012 at 11:53 AM, Rankin, James R 
>> wrote:
>>
>>> **
>>> Dunno what the US term is for it. A road with two lanes on each side
>>> that isn't a motorway, i.e. Not subject to traffic prohibitions, no crash
>>> barriers, not subject to clearway restrictions, etc.
>>>  ---Blackberried
>>> --
>>> *From: * Micheal Espinola Jr 
>>> *Date: *Fri, 25 May 2012 11:47:46 -0700
>>> *To: *NT System Admin Issues
>>> *ReplyTo: * "NT System Admin Issues" <
>>> ntsysadmin@lyris.sunbelt-software.com>
>>> *Subject: *Re: Is there a way...
>>>
>>> You guys are still riding in carriages?
>>>
>>> --
>>> Espi
>>>
>>>
>>>
>>>
>>> On Fri, May 25, 2012 at 11:37 AM, Rankin, James R >> > wrote:
>>>
>>>> **
>>>> Giving my other half a lift to the pub. I just got into severe trouble
>>>> with her for racing a BMW M6 all the way down the dual carriageway. I get
>>>> to babysit now and calm down :-)
>>>> ---Blackberried
>>>> --
>>>> *From: * Jonathan Link 
>>>> *Date: *Fri, 25 May 2012 14:27:21 -0400
>>>> *To: *NT System Admin Issues
>>>> *ReplyTo: * "NT System Admin Issues" <
>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>> *Subject: *Re: Is there a way...
>>>>
>>>> On the way to the pub?
>>>>
>>>> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R >>> > wrote:
>>>>
>>>>> I am probably mistaken as I am in the car :-o
>>>>> ---Blackberried
>>>>> --
>>>>> *From: * "Rankin, James R" 
>>>>> *Date: *Fri, 25 May 2012 17:55:35 +0000
>>>>> *To: *NT System Admin Issues
>>>>> *ReplyTo: * kz2...@googlemail.com
>>>>> *Subject: *Re: Is there a way...
>>>>>
>>>>> It is parsing the output again with the second For command to tidy it
>>>>> up
>>>>>
>>>>> ---Blackberried
>>>>> --
>>>>> *From: * David Lum 
>>>>> *Date: *Fri, 25 May 2012 17:50:39 +
>>>>> *To: *NT System Admin Issues
>>>>> *ReplyTo: * "NT System Admin Issues" <
>>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>>> *Subject: *RE: Is there a way...
>>>>>
>>>>> OK thanks. How is it not picking up the “bytes” or “time” instead?
>>>>>
>>>>> ** **
>>>>>
>>>>> *From:* Rankin, James R [mailto:kz2...@googlemail.com]
>>>>> *Sent:* Friday, May 25, 2012 10:27 AM
>>>>> *To:* NT System Admin Issues
>>>>> *Subject:* Re: Is there a way...
>>>>>
>>>>> ** **
>>>>>
>>>>> Yes, The specified delimiter is an = sign. You can specify the
>>>>> delimiter or use the default (is the default a space?)
>>>>>
>>>>> You can echo the output out if you want to check what you're picking up
>>>>> 
>>>>>
>>>>> ---Blackberried
>>>>> --

RE: Is there a way...

2012-05-25 Thread Maglinger, Paul
That's just silly.  Why would anyone say something like that?

BTY... How well do you know Paul McCartney?

From: Rankin, James R [mailto:kz2...@googlemail.com]
Sent: Friday, May 25, 2012 2:50 PM
To: NT System Admin Issues
Subject: Re: Is there a way...

didn't really think you were being serious. Tho you'd be surprised at the 
perceptions some US citizens have of us. I've been asked on more than one 
occasion how well I know the Queen, for instance
---Blackberried

From: Micheal Espinola Jr 
mailto:michealespin...@gmail.com>>
Date: Fri, 25 May 2012 12:22:24 -0700
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: Re: Is there a way...

I'm only teasing.  Happy Friday!

--
Espi



On Fri, May 25, 2012 at 11:53 AM, Rankin, James R 
mailto:kz2...@googlemail.com>> wrote:
Dunno what the US term is for it. A road with two lanes on each side that isn't 
a motorway, i.e. Not subject to traffic prohibitions, no crash barriers, not 
subject to clearway restrictions, etc.
---Blackberried

From: Micheal Espinola Jr 
mailto:michealespin...@gmail.com>>
Date: Fri, 25 May 2012 11:47:46 -0700
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: Re: Is there a way...

You guys are still riding in carriages?

--
Espi



On Fri, May 25, 2012 at 11:37 AM, Rankin, James R 
mailto:kz2...@googlemail.com>> wrote:
Giving my other half a lift to the pub. I just got into severe trouble with her 
for racing a BMW M6 all the way down the dual carriageway. I get to babysit now 
and calm down :-)
---Blackberried

From: Jonathan Link mailto:jonathan.l...@gmail.com>>
Date: Fri, 25 May 2012 14:27:21 -0400
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: Re: Is there a way...

On the way to the pub?
On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
mailto:kz2...@googlemail.com>> wrote:
I am probably mistaken as I am in the car :-o
---Blackberried

From: "Rankin, James R" mailto:kz2...@googlemail.com>>
Date: Fri, 25 May 2012 17:55:35 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: kz2...@googlemail.com<mailto:kz2...@googlemail.com>
Subject: Re: Is there a way...

It is parsing the output again with the second For command to tidy it up

---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:50:39 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

OK thanks. How is it not picking up the "bytes" or "time" instead?

From: Rankin, James R 
[mailto:kz2...@googlemail.com<mailto:kz2...@googlemail.com>]
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up
---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:04:47 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3<http://4.2.2.3>: bytes=32 time=24ms TTL=53" line, but how 
the hell is it picking out the 5th entry and dropping off "time=" part? Is that 
what the delims line is doing?

Dave

From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delim

Re: Is there a way...

2012-05-25 Thread Ben Scott
On Fri, May 25, 2012 at 4:10 PM, Micheal Espinola Jr
 wrote:
> One thing I wish we had more of here are roundabouts.  Traffic IMO flows
> better, and you also get the benefit of drivers that can merge more
> effectively.

  As someone who lives and works in New England, I find the idea that
"roundabouts == drivers can merge effectively" downright laughable.

  In terms of traffic engineering, roundabouts are cost effective ways
of handling traffic interchanges under light to moderate volumes.
Under heavier traffic they fail in weird ways.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin



Re: Is there a way...

2012-05-25 Thread James Rankin
It wasn't, not when someone pulled out in front of me at about 50mph and I
was shading 140.if there'd been anything in the lane inside of me, I'd
have clipped it as my rear end started swinging about like crazy under
heavy braking

You'd think I'd have grown up by now

On 25 May 2012 20:54, Steve Kradel  wrote:

> It looks like the closest approximation in US English is "divided
> highway," although this does not strictly imply anything about access
> limitations, vehicle requirements, or clearances.
>
> Whether trying to race an M6 down a divided highway is a good idea, is
> another matter...
>
> --Steve
>
> On Fri, May 25, 2012 at 3:21 PM, Maglinger, Paul 
> wrote:
> > http://en.wikipedia.org/wiki/Dual_carriageway
> >
> >
> >
> >
> >
> > From: Rankin, James R [mailto:kz2...@googlemail.com]
> > Sent: Friday, May 25, 2012 1:53 PM
> >
> >
> > To: NT System Admin Issues
> > Subject: Re: Is there a way...
> >
> >
> >
> > Dunno what the US term is for it. A road with two lanes on each side that
> > isn't a motorway, i.e. Not subject to traffic prohibitions, no crash
> > barriers, not subject to clearway restrictions, etc.
> >
> > ---Blackberried
> >
> > ____________
> >
> > From: Micheal Espinola Jr 
> >
> > Date: Fri, 25 May 2012 11:47:46 -0700
> >
> > To: NT System Admin Issues
> >
> > ReplyTo: "NT System Admin Issues"  >
> >
> > Subject: Re: Is there a way...
> >
> >
> >
> > You guys are still riding in carriages?
> >
> > --
> > Espi
> >
> >
> >
> >
> >
> > On Fri, May 25, 2012 at 11:37 AM, Rankin, James R  >
> > wrote:
> >
> > Giving my other half a lift to the pub. I just got into severe trouble
> with
> > her for racing a BMW M6 all the way down the dual carriageway. I get to
> > babysit now and calm down :-)
> >
> > ---Blackberried
> >
> > 
> >
> > From: Jonathan Link 
> >
> > Date: Fri, 25 May 2012 14:27:21 -0400
> >
> > To: NT System Admin Issues
> >
> > ReplyTo: "NT System Admin Issues"  >
> >
> > Subject: Re: Is there a way...
> >
> >
> >
> > On the way to the pub?
> >
> > On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
> > wrote:
> >
> > I am probably mistaken as I am in the car :-o
> >
> > ---Blackberried
> >
> > ________
> >
> > From: "Rankin, James R" 
> >
> > Date: Fri, 25 May 2012 17:55:35 +
> >
> > To: NT System Admin Issues
> >
> > ReplyTo: kz2...@googlemail.com
> >
> > Subject: Re: Is there a way...
> >
> >
> >
> > It is parsing the output again with the second For command to tidy it up
> >
> >
> >
> > ---Blackberried
> >
> > 
> >
> > From: David Lum 
> >
> > Date: Fri, 25 May 2012 17:50:39 +
> >
> > To: NT System Admin Issues
> >
> > ReplyTo: "NT System Admin Issues"  >
> >
> > Subject: RE: Is there a way...
> >
> >
> >
> > OK thanks. How is it not picking up the “bytes” or “time” instead?
> >
> >
> >
> > From: Rankin, James R [mailto:kz2...@googlemail.com]
> > Sent: Friday, May 25, 2012 10:27 AM
> > To: NT System Admin Issues
> > Subject: Re: Is there a way...
> >
> >
> >
> > Yes, The specified delimiter is an = sign. You can specify the delimiter
> or
> > use the default (is the default a space?)
> >
> > You can echo the output out if you want to check what you're picking up
> >
> > ---Blackberried
> >
> > 
> >
> > From: David Lum 
> >
> > Date: Fri, 25 May 2012 17:04:47 +
> >
> > To: NT System Admin Issues
> >
> > ReplyTo: "NT System Admin Issues"  >
> >
> > Subject: RE: Is there a way...
> >
> >
> >
> > The MAP-WS.txt is the data collection point
> >
> >
> >
> > How the heck does that tokens line work? I get that it is stepping
> through
> > the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but how the
> hell
> > is it picking out the 5th entry and dropping off “time=” part? Is that
> what
> > the delims line is doing?
> >
> >
> >
> > Dave
> >
> &

Re: Is there a way...

2012-05-25 Thread Micheal Espinola Jr
One thing I wish we had more of here are roundabouts.  Traffic IMO flows
better, and you also get the benefit of drivers that can merge more
effectively.

--
Espi




On Fri, May 25, 2012 at 12:49 PM, Rankin, James R wrote:

> **
> didn't really think you were being serious. Tho you'd be surprised at the
> perceptions some US citizens have of us. I've been asked on more than one
> occasion how well I know the Queen, for instance
>
> ---Blackberried
> --
> *From: * Micheal Espinola Jr 
> *Date: *Fri, 25 May 2012 12:22:24 -0700
> *To: *NT System Admin Issues
> *ReplyTo: * "NT System Admin Issues" <
> ntsysadmin@lyris.sunbelt-software.com>
> *Subject: *Re: Is there a way...
>
> I'm only teasing.  Happy Friday!
>
> --
> Espi
>
>
>
>
> On Fri, May 25, 2012 at 11:53 AM, Rankin, James R 
> wrote:
>
>> **
>> Dunno what the US term is for it. A road with two lanes on each side that
>> isn't a motorway, i.e. Not subject to traffic prohibitions, no crash
>> barriers, not subject to clearway restrictions, etc.
>>  ---Blackberried
>> --
>> *From: * Micheal Espinola Jr 
>> *Date: *Fri, 25 May 2012 11:47:46 -0700
>> *To: *NT System Admin Issues
>> *ReplyTo: * "NT System Admin Issues" <
>> ntsysadmin@lyris.sunbelt-software.com>
>> *Subject: *Re: Is there a way...
>>
>> You guys are still riding in carriages?
>>
>> --
>> Espi
>>
>>
>>
>>
>> On Fri, May 25, 2012 at 11:37 AM, Rankin, James R 
>> wrote:
>>
>>> **
>>> Giving my other half a lift to the pub. I just got into severe trouble
>>> with her for racing a BMW M6 all the way down the dual carriageway. I get
>>> to babysit now and calm down :-)
>>> ---Blackberried
>>> --
>>> *From: * Jonathan Link 
>>> *Date: *Fri, 25 May 2012 14:27:21 -0400
>>> *To: *NT System Admin Issues
>>> *ReplyTo: * "NT System Admin Issues" <
>>> ntsysadmin@lyris.sunbelt-software.com>
>>> *Subject: *Re: Is there a way...
>>>
>>> On the way to the pub?
>>>
>>> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
>>> wrote:
>>>
>>>> I am probably mistaken as I am in the car :-o
>>>> ---Blackberried
>>>> --
>>>> *From: * "Rankin, James R" 
>>>> *Date: *Fri, 25 May 2012 17:55:35 +
>>>> *To: *NT System Admin Issues
>>>> *ReplyTo: * kz2...@googlemail.com
>>>> *Subject: *Re: Is there a way...
>>>>
>>>> It is parsing the output again with the second For command to tidy it up
>>>>
>>>> ---Blackberried
>>>> --
>>>> *From: * David Lum 
>>>> *Date: *Fri, 25 May 2012 17:50:39 +
>>>> *To: *NT System Admin Issues
>>>> *ReplyTo: * "NT System Admin Issues" <
>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>> *Subject: *RE: Is there a way...
>>>>
>>>> OK thanks. How is it not picking up the “bytes” or “time” instead?
>>>>
>>>> ** **
>>>>
>>>> *From:* Rankin, James R [mailto:kz2...@googlemail.com]
>>>> *Sent:* Friday, May 25, 2012 10:27 AM
>>>> *To:* NT System Admin Issues
>>>> *Subject:* Re: Is there a way...
>>>>
>>>> ** **
>>>>
>>>> Yes, The specified delimiter is an = sign. You can specify the
>>>> delimiter or use the default (is the default a space?)
>>>>
>>>> You can echo the output out if you want to check what you're picking up
>>>> 
>>>>
>>>> ---Blackberried
>>>> --
>>>>
>>>> *From: *David Lum  
>>>>
>>>> *Date: *Fri, 25 May 2012 17:04:47 +
>>>>
>>>> *To: *NT System Admin Issues
>>>>
>>>> *ReplyTo: *"NT System Admin Issues" <
>>>> ntsysadmin@lyris.sunbelt-software.com>
>>>>
>>>> *Subject: *RE: Is there a way...
>>>>
>>>> ** **
>>>>
>>>> The MAP-WS.txt is the data collection point
>>>>
>>>> ** **
>>>>
>>>> How the heck does that tokens line work? I get that it is stepping
>>>> through the “Reply from 4.2.2

Re: Is there a way...

2012-05-25 Thread Steve Kradel
It looks like the closest approximation in US English is "divided
highway," although this does not strictly imply anything about access
limitations, vehicle requirements, or clearances.

Whether trying to race an M6 down a divided highway is a good idea, is
another matter...

--Steve

On Fri, May 25, 2012 at 3:21 PM, Maglinger, Paul  wrote:
> http://en.wikipedia.org/wiki/Dual_carriageway
>
>
>
>
>
> From: Rankin, James R [mailto:kz2...@googlemail.com]
> Sent: Friday, May 25, 2012 1:53 PM
>
>
> To: NT System Admin Issues
> Subject: Re: Is there a way...
>
>
>
> Dunno what the US term is for it. A road with two lanes on each side that
> isn't a motorway, i.e. Not subject to traffic prohibitions, no crash
> barriers, not subject to clearway restrictions, etc.
>
> ---Blackberried
>
> 
>
> From: Micheal Espinola Jr 
>
> Date: Fri, 25 May 2012 11:47:46 -0700
>
> To: NT System Admin Issues
>
> ReplyTo: "NT System Admin Issues" 
>
> Subject: Re: Is there a way...
>
>
>
> You guys are still riding in carriages?
>
> --
> Espi
>
>
>
>
>
> On Fri, May 25, 2012 at 11:37 AM, Rankin, James R 
> wrote:
>
> Giving my other half a lift to the pub. I just got into severe trouble with
> her for racing a BMW M6 all the way down the dual carriageway. I get to
> babysit now and calm down :-)
>
> ---Blackberried
>
> ____________
>
> From: Jonathan Link 
>
> Date: Fri, 25 May 2012 14:27:21 -0400
>
> To: NT System Admin Issues
>
> ReplyTo: "NT System Admin Issues" 
>
> Subject: Re: Is there a way...
>
>
>
> On the way to the pub?
>
> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
> wrote:
>
> I am probably mistaken as I am in the car :-o
>
> ---Blackberried
>
> 
>
> From: "Rankin, James R" 
>
> Date: Fri, 25 May 2012 17:55:35 +
>
> To: NT System Admin Issues
>
> ReplyTo: kz2...@googlemail.com
>
> Subject: Re: Is there a way...
>
>
>
> It is parsing the output again with the second For command to tidy it up
>
>
>
> ---Blackberried
>
> 
>
> From: David Lum 
>
> Date: Fri, 25 May 2012 17:50:39 +
>
> To: NT System Admin Issues
>
> ReplyTo: "NT System Admin Issues" 
>
> Subject: RE: Is there a way...
>
>
>
> OK thanks. How is it not picking up the “bytes” or “time” instead?
>
>
>
> From: Rankin, James R [mailto:kz2...@googlemail.com]
> Sent: Friday, May 25, 2012 10:27 AM
> To: NT System Admin Issues
> Subject: Re: Is there a way...
>
>
>
> Yes, The specified delimiter is an = sign. You can specify the delimiter or
> use the default (is the default a space?)
>
> You can echo the output out if you want to check what you're picking up
>
> ---Blackberried
>
> 
>
> From: David Lum 
>
> Date: Fri, 25 May 2012 17:04:47 +
>
> To: NT System Admin Issues
>
> ReplyTo: "NT System Admin Issues" 
>
> Subject: RE: Is there a way...
>
>
>
> The MAP-WS.txt is the data collection point
>
>
>
> How the heck does that tokens line work? I get that it is stepping through
> the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but how the hell
> is it picking out the 5th entry and dropping off “time=” part? Is that what
> the delims line is doing?
>
>
>
> Dave
>
>
>
> From: Crawford, Scott [mailto:crawfo...@evangel.edu]
> Sent: Thursday, May 24, 2012 4:15 PM
> To: NT System Admin Issues
> Subject: RE: Is there a way...
>
>
>
> Why are you using MAP-WS_Results.txt? Just as a data collection point or do
> you possibly need more info from it later besides the 4 things you mention?
> If the only  thing you want at the end is your master list in a text file, I
> would parse the data during each command. Something like this, maybe?
>
>
>
> for /f “tokens=1-5” %%i in (‘FILEVER
> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"’) do set FlashVersion=%%m
>
> for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"')
> do set PingTime=%o
>
> echo %ComputerName%,%FlashVersion%,%PingTime%
>
>
>
> From: David Lum [mailto:david@nwea.org]
> Sent: Thursday, May 24, 2012 4:47 PM
> To: NT System Admin Issues
> Subject: RE: Is there a way...
>
>
>
> CMD only.
>
>
>
> Sorry I should have included more info. The commands I am already running
> are:
>
>
>
> FILEVER "%SystemRoot%\system32\Mac

Re: Is there a way...

2012-05-25 Thread Rankin, James R
 didn't really think you were being serious. Tho you'd be surprised at the 
perceptions some US citizens have of us. I've been asked on more than one 
occasion how well I know the Queen, for instance

---Blackberried

-Original Message-
From: Micheal Espinola Jr 
Date: Fri, 25 May 2012 12:22:24 
To: NT System Admin Issues
Reply-To: "NT System Admin Issues" 
Subject: Re: Is there a way...

I'm only teasing.  Happy Friday!

--
Espi




On Fri, May 25, 2012 at 11:53 AM, Rankin, James R wrote:

> **
> Dunno what the US term is for it. A road with two lanes on each side that
> isn't a motorway, i.e. Not subject to traffic prohibitions, no crash
> barriers, not subject to clearway restrictions, etc.
> ---Blackberried
> --
> *From: * Micheal Espinola Jr 
> *Date: *Fri, 25 May 2012 11:47:46 -0700
> *To: *NT System Admin Issues
> *ReplyTo: * "NT System Admin Issues" <
> ntsysadmin@lyris.sunbelt-software.com>
> *Subject: *Re: Is there a way...
>
> You guys are still riding in carriages?
>
> --
> Espi
>
>
>
>
> On Fri, May 25, 2012 at 11:37 AM, Rankin, James R 
> wrote:
>
>> **
>> Giving my other half a lift to the pub. I just got into severe trouble
>> with her for racing a BMW M6 all the way down the dual carriageway. I get
>> to babysit now and calm down :-)
>> ---Blackberried
>> --
>> *From: * Jonathan Link 
>> *Date: *Fri, 25 May 2012 14:27:21 -0400
>> *To: *NT System Admin Issues
>> *ReplyTo: * "NT System Admin Issues" <
>> ntsysadmin@lyris.sunbelt-software.com>
>> *Subject: *Re: Is there a way...
>>
>> On the way to the pub?
>>
>> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
>> wrote:
>>
>>> I am probably mistaken as I am in the car :-o
>>> ---Blackberried
>>> --
>>> *From: * "Rankin, James R" 
>>> *Date: *Fri, 25 May 2012 17:55:35 +
>>> *To: *NT System Admin Issues
>>> *ReplyTo: * kz2...@googlemail.com
>>> *Subject: *Re: Is there a way...
>>>
>>> It is parsing the output again with the second For command to tidy it up
>>>
>>> ---Blackberried
>>> --
>>> *From: * David Lum 
>>> *Date: *Fri, 25 May 2012 17:50:39 +
>>> *To: *NT System Admin Issues
>>> *ReplyTo: * "NT System Admin Issues" <
>>> ntsysadmin@lyris.sunbelt-software.com>
>>> *Subject: *RE: Is there a way...
>>>
>>> OK thanks. How is it not picking up the “bytes” or “time” instead?
>>>
>>> ** **
>>>
>>> *From:* Rankin, James R [mailto:kz2...@googlemail.com]
>>> *Sent:* Friday, May 25, 2012 10:27 AM
>>> *To:* NT System Admin Issues
>>> *Subject:* Re: Is there a way...
>>>
>>> ** **
>>>
>>> Yes, The specified delimiter is an = sign. You can specify the delimiter
>>> or use the default (is the default a space?)
>>>
>>> You can echo the output out if you want to check what you're picking up*
>>> ***
>>>
>>> ---Blackberried
>>> --
>>>
>>> *From: *David Lum  
>>>
>>> *Date: *Fri, 25 May 2012 17:04:47 +
>>>
>>> *To: *NT System Admin Issues
>>>
>>> *ReplyTo: *"NT System Admin Issues" <
>>> ntsysadmin@lyris.sunbelt-software.com>
>>>
>>> *Subject: *RE: Is there a way...
>>>
>>> ** **
>>>
>>> The MAP-WS.txt is the data collection point
>>>
>>> ** **
>>>
>>> How the heck does that tokens line work? I get that it is stepping
>>> through the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but
>>> how the hell is it picking out the 5th entry and dropping off “time=”
>>> part? Is that what the delims line is doing?
>>>
>>> ** **
>>>
>>> Dave
>>>
>>> ** **
>>>
>>> *From:* Crawford, Scott [mailto:crawfo...@evangel.edu]
>>> *Sent:* Thursday, May 24, 2012 4:15 PM
>>> *To:* NT System Admin Issues
>>> *Subject:* RE: Is there a way...
>>>
>>> ** **
>>>
>>> Why are you using MAP-WS_Results.txt? Just as a data collection point or
>>> do you possibly need more info from it later besides the 4 things you
>>> mention?  If the only  thing you want at the end is your master list in a
>

Re: Is there a way...

2012-05-25 Thread Rankin, James R
No, here tooI was in stationary traffic tho, in my defence

---Blackberried

-Original Message-
From: "Ziots, Edward" 
Date: Fri, 25 May 2012 15:17:13 
To: NT System Admin Issues
Reply-To: "NT System Admin Issues" 
Subject: RE: Is there a way...

Write him a ticket for Texting while driving... ohh shoot that is only
in the USA...

 

Z

 

Edward Ziots

CISSP, Security +, Network +

Security Engineer

Lifespan Organization

ezi...@lifespan.org

 

From: Jonathan Link [mailto:jonathan.l...@gmail.com] 
Sent: Friday, May 25, 2012 2:27 PM
To: NT System Admin Issues
Subject: Re: Is there a way...

 

On the way to the pub?

On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
wrote:

I am probably mistaken as I am in the car :-o

---Blackberried



From: "Rankin, James R"  

Date: Fri, 25 May 2012 17:55:35 +

To: NT System Admin Issues

ReplyTo: kz2...@googlemail.com 

Subject: Re: Is there a way...

 

It is parsing the output again with the second For command to tidy it up

 

---Blackberried



From: David Lum  

Date: Fri, 25 May 2012 17:50:39 +

To: NT System Admin Issues

ReplyTo: "NT System Admin Issues"


Subject: RE: Is there a way...

 

OK thanks. How is it not picking up the "bytes" or "time" instead?

 

From: Rankin, James R [mailto:kz2...@googlemail.com] 
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

 

Yes, The specified delimiter is an = sign. You can specify the delimiter
or use the default (is the default a space?)

You can echo the output out if you want to check what you're picking up

---Blackberried



From: David Lum  

Date: Fri, 25 May 2012 17:04:47 +

To: NT System Admin Issues

ReplyTo: "NT System Admin Issues"


Subject: RE: Is there a way...

 

The MAP-WS.txt is the data collection point

 

How the heck does that tokens line work? I get that it is stepping
through the "Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but
how the hell is it picking out the 5th entry and dropping off "time="
part? Is that what the delims line is doing?

 

Dave

 

From: Crawford, Scott [mailto:crawfo...@evangel.edu] 
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

 

Why are you using MAP-WS_Results.txt? Just as a data collection point or
do you possibly need more info from it later besides the 4 things you
mention?  If the only  thing you want at the end is your master list in
a text file, I would parse the data during each command. Something like
this, maybe?

 

for /f "tokens=1-5" %%i in ('FILEVER
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set
FlashVersion=%%m

for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i
"reply"') do set PingTime=%o

echo %ComputerName%,%FlashVersion%,%PingTime%

 

From: David Lum [mailto:david@nwea.org] 
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

 

CMD only.

 

Sorry I should have included more info. The commands I am already
running are:

 

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >>
"b:\wsdata\MAP-WS_Results.txt"

Echo. >> "b:\wsdata\MAP-WS_Results.txt"

ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

 

So what you saw was the contents of MAP-WS_Results.txt.

 

Ultimately I'm looking to have say, 50 machines run that batch file and
end up with something like this in a .TXT/.CSV

***

Machine name, OS, Flash version, ping

JOEBOB-XP, Windows XP,  11.2.202.235,24ms

MARYLOUWIN7,Windows 7,10.0.1,23ms

***

 

From: Michael B. Smith [mailto:mich...@smithcons.com] 
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

 

BAT/CMD only? Or is PowerShell an option?

 

From: David Lum [mailto:david@nwea.org] 
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

 

In batch to take this output:

---

W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

 

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53

---

And end up with this in a .TXT file?

---
11.2.202.235 , 24ms

---

 

I'm wondering if a FOR loop can be leveraged?

David Lum 
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resourc

Re: Is there a way...

2012-05-25 Thread Pete Howard
Drunken texting while driving on the wrong side of the street no less!




 From: "Ziots, Edward" 
To: NT System Admin Issues  
Sent: Friday, May 25, 2012 3:17 PM
Subject: RE: Is there a way...
 

Write him a ticket for Texting while driving… ohh shoot that is only in the USA…
 
Z
 
Edward Ziots
CISSP, Security +, Network +
Security Engineer
Lifespan Organization
ezi...@lifespan.org
 
From:Jonathan Link [mailto:jonathan.l...@gmail.com] 
Sent: Friday, May 25, 2012 2:27 PM
To: NT System Admin Issues
Subject: Re: Is there a way...
 
On the way to the pub?
On Fri, May 25, 2012 at 2:03 PM, Rankin, James R  wrote:
I am probably mistaken as I am in the car :-o
---Blackberried



From: "Rankin, James R"  
Date: Fri, 25 May 2012 17:55:35 +
To: NT System Admin Issues
ReplyTo: kz2...@googlemail.com 
Subject: Re: Is there a way...
 
It is parsing the output again with the second For command to tidy it up
 
---Blackberried



From: David Lum  
Date: Fri, 25 May 2012 17:50:39 +
To: NT System Admin Issues
ReplyTo: "NT System Admin Issues" 
Subject: RE: Is there a way...
 
OK thanks. How is it not picking up the “bytes” or “time” instead?
 
From:Rankin, James R [mailto:kz2...@googlemail.com] 
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...
 
Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up
---Blackberried



From: David Lum  
Date: Fri, 25 May 2012 17:04:47 +
To: NT System Admin Issues
ReplyTo: "NT System Admin Issues" 
Subject: RE: Is there a way...
 
The MAP-WS.txt is the data collection point
 
How the heck does that tokens line work? I get that it is stepping through the 
“Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but how the hell is it 
picking out the 5th entry and dropping off “time=” part? Is that what the 
delims line is doing?
 
Dave
 
From:Crawford, Scott [mailto:crawfo...@evangel.edu] 
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...
 
Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?
 
for /f “tokens=1-5” %%i in (‘FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"’) do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%
 
From:David Lum [mailto:david@nwea.org] 
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...
 
CMD only.
 
Sorry I should have included more info. The commands I am already running are:
 
FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"
 
So what you saw was the contents of MAP-WS_Results.txt.
 
Ultimately I’m looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***
 
From:Michael B. Smith [mailto:mich...@smithcons.com] 
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...
 
BAT/CMD only? Or is PowerShell an option?
 
From:David Lum [mailto:david@nwea.org] 
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...
 
In batch to take this output:
---
W32i   DLL ENU    11.2.202.235 shp flash32_11_2_202_235.ocx
 
Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---
 
I’m wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229//Cell (voice/text) 503.267.9764
 
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyri

Re: Is there a way...

2012-05-25 Thread Micheal Espinola Jr
I'm only teasing.  Happy Friday!

--
Espi




On Fri, May 25, 2012 at 11:53 AM, Rankin, James R wrote:

> **
> Dunno what the US term is for it. A road with two lanes on each side that
> isn't a motorway, i.e. Not subject to traffic prohibitions, no crash
> barriers, not subject to clearway restrictions, etc.
> ---Blackberried
> --
> *From: * Micheal Espinola Jr 
> *Date: *Fri, 25 May 2012 11:47:46 -0700
> *To: *NT System Admin Issues
> *ReplyTo: * "NT System Admin Issues" <
> ntsysadmin@lyris.sunbelt-software.com>
> *Subject: *Re: Is there a way...
>
> You guys are still riding in carriages?
>
> --
> Espi
>
>
>
>
> On Fri, May 25, 2012 at 11:37 AM, Rankin, James R 
> wrote:
>
>> **
>> Giving my other half a lift to the pub. I just got into severe trouble
>> with her for racing a BMW M6 all the way down the dual carriageway. I get
>> to babysit now and calm down :-)
>> ---Blackberried
>> --
>> *From: * Jonathan Link 
>> *Date: *Fri, 25 May 2012 14:27:21 -0400
>> *To: *NT System Admin Issues
>> *ReplyTo: * "NT System Admin Issues" <
>> ntsysadmin@lyris.sunbelt-software.com>
>> *Subject: *Re: Is there a way...
>>
>> On the way to the pub?
>>
>> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
>> wrote:
>>
>>> I am probably mistaken as I am in the car :-o
>>> ---Blackberried
>>> --
>>> *From: * "Rankin, James R" 
>>> *Date: *Fri, 25 May 2012 17:55:35 +
>>> *To: *NT System Admin Issues
>>> *ReplyTo: * kz2...@googlemail.com
>>> *Subject: *Re: Is there a way...
>>>
>>> It is parsing the output again with the second For command to tidy it up
>>>
>>> ---Blackberried
>>> --
>>> *From: * David Lum 
>>> *Date: *Fri, 25 May 2012 17:50:39 +
>>> *To: *NT System Admin Issues
>>> *ReplyTo: * "NT System Admin Issues" <
>>> ntsysadmin@lyris.sunbelt-software.com>
>>> *Subject: *RE: Is there a way...
>>>
>>> OK thanks. How is it not picking up the “bytes” or “time” instead?
>>>
>>> ** **
>>>
>>> *From:* Rankin, James R [mailto:kz2...@googlemail.com]
>>> *Sent:* Friday, May 25, 2012 10:27 AM
>>> *To:* NT System Admin Issues
>>> *Subject:* Re: Is there a way...
>>>
>>> ** **
>>>
>>> Yes, The specified delimiter is an = sign. You can specify the delimiter
>>> or use the default (is the default a space?)
>>>
>>> You can echo the output out if you want to check what you're picking up*
>>> ***
>>>
>>> ---Blackberried
>>> --
>>>
>>> *From: *David Lum  
>>>
>>> *Date: *Fri, 25 May 2012 17:04:47 +
>>>
>>> *To: *NT System Admin Issues
>>>
>>> *ReplyTo: *"NT System Admin Issues" <
>>> ntsysadmin@lyris.sunbelt-software.com>
>>>
>>> *Subject: *RE: Is there a way...
>>>
>>> ** **
>>>
>>> The MAP-WS.txt is the data collection point
>>>
>>> ** **
>>>
>>> How the heck does that tokens line work? I get that it is stepping
>>> through the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but
>>> how the hell is it picking out the 5th entry and dropping off “time=”
>>> part? Is that what the delims line is doing?
>>>
>>> ** **
>>>
>>> Dave
>>>
>>> ** **
>>>
>>> *From:* Crawford, Scott [mailto:crawfo...@evangel.edu]
>>> *Sent:* Thursday, May 24, 2012 4:15 PM
>>> *To:* NT System Admin Issues
>>> *Subject:* RE: Is there a way...
>>>
>>> ** **
>>>
>>> Why are you using MAP-WS_Results.txt? Just as a data collection point or
>>> do you possibly need more info from it later besides the 4 things you
>>> mention?  If the only  thing you want at the end is your master list in a
>>> text file, I would parse the data during each command. Something like this,
>>> maybe?
>>>
>>> ** **
>>>
>>> for /f “tokens=1-5” %%i in (‘FILEVER
>>> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"’) do set FlashVersion=%%m
>>> 
>>>
>>> for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /

RE: Is there a way...

2012-05-25 Thread Maglinger, Paul
http://en.wikipedia.org/wiki/Dual_carriageway


From: Rankin, James R [mailto:kz2...@googlemail.com]
Sent: Friday, May 25, 2012 1:53 PM
To: NT System Admin Issues
Subject: Re: Is there a way...

Dunno what the US term is for it. A road with two lanes on each side that isn't 
a motorway, i.e. Not subject to traffic prohibitions, no crash barriers, not 
subject to clearway restrictions, etc.
---Blackberried

From: Micheal Espinola Jr 
mailto:michealespin...@gmail.com>>
Date: Fri, 25 May 2012 11:47:46 -0700
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: Re: Is there a way...

You guys are still riding in carriages?

--
Espi



On Fri, May 25, 2012 at 11:37 AM, Rankin, James R 
mailto:kz2...@googlemail.com>> wrote:
Giving my other half a lift to the pub. I just got into severe trouble with her 
for racing a BMW M6 all the way down the dual carriageway. I get to babysit now 
and calm down :-)
---Blackberried

From: Jonathan Link mailto:jonathan.l...@gmail.com>>
Date: Fri, 25 May 2012 14:27:21 -0400
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: Re: Is there a way...

On the way to the pub?
On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
mailto:kz2...@googlemail.com>> wrote:
I am probably mistaken as I am in the car :-o
---Blackberried

From: "Rankin, James R" mailto:kz2...@googlemail.com>>
Date: Fri, 25 May 2012 17:55:35 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: kz2...@googlemail.com<mailto:kz2...@googlemail.com>
Subject: Re: Is there a way...

It is parsing the output again with the second For command to tidy it up

---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:50:39 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

OK thanks. How is it not picking up the "bytes" or "time" instead?

From: Rankin, James R 
[mailto:kz2...@googlemail.com<mailto:kz2...@googlemail.com>]
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up
---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:04:47 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3<http://4.2.2.3>: bytes=32 time=24ms TTL=53" line, but how 
the hell is it picking out the 5th entry and dropping off "time=" part? Is that 
what the delims line is doing?

Dave

From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say

RE: Is there a way...

2012-05-25 Thread Ziots, Edward
Write him a ticket for Texting while driving... ohh shoot that is only
in the USA...

 

Z

 

Edward Ziots

CISSP, Security +, Network +

Security Engineer

Lifespan Organization

ezi...@lifespan.org

 

From: Jonathan Link [mailto:jonathan.l...@gmail.com] 
Sent: Friday, May 25, 2012 2:27 PM
To: NT System Admin Issues
Subject: Re: Is there a way...

 

On the way to the pub?

On Fri, May 25, 2012 at 2:03 PM, Rankin, James R 
wrote:

I am probably mistaken as I am in the car :-o

---Blackberried



From: "Rankin, James R"  

Date: Fri, 25 May 2012 17:55:35 +

To: NT System Admin Issues

ReplyTo: kz2...@googlemail.com 

Subject: Re: Is there a way...

 

It is parsing the output again with the second For command to tidy it up

 

---Blackberried



From: David Lum  

Date: Fri, 25 May 2012 17:50:39 +

To: NT System Admin Issues

ReplyTo: "NT System Admin Issues"


Subject: RE: Is there a way...

 

OK thanks. How is it not picking up the "bytes" or "time" instead?

 

From: Rankin, James R [mailto:kz2...@googlemail.com] 
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

 

Yes, The specified delimiter is an = sign. You can specify the delimiter
or use the default (is the default a space?)

You can echo the output out if you want to check what you're picking up

---Blackberried



From: David Lum  

Date: Fri, 25 May 2012 17:04:47 +

To: NT System Admin Issues

ReplyTo: "NT System Admin Issues"


Subject: RE: Is there a way...

 

The MAP-WS.txt is the data collection point

 

How the heck does that tokens line work? I get that it is stepping
through the "Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but
how the hell is it picking out the 5th entry and dropping off "time="
part? Is that what the delims line is doing?

 

Dave

 

From: Crawford, Scott [mailto:crawfo...@evangel.edu] 
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

 

Why are you using MAP-WS_Results.txt? Just as a data collection point or
do you possibly need more info from it later besides the 4 things you
mention?  If the only  thing you want at the end is your master list in
a text file, I would parse the data during each command. Something like
this, maybe?

 

for /f "tokens=1-5" %%i in ('FILEVER
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set
FlashVersion=%%m

for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i
"reply"') do set PingTime=%o

echo %ComputerName%,%FlashVersion%,%PingTime%

 

From: David Lum [mailto:david@nwea.org] 
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

 

CMD only.

 

Sorry I should have included more info. The commands I am already
running are:

 

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >>
"b:\wsdata\MAP-WS_Results.txt"

Echo. >> "b:\wsdata\MAP-WS_Results.txt"

ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

 

So what you saw was the contents of MAP-WS_Results.txt.

 

Ultimately I'm looking to have say, 50 machines run that batch file and
end up with something like this in a .TXT/.CSV

***

Machine name, OS, Flash version, ping

JOEBOB-XP, Windows XP,  11.2.202.235,24ms

MARYLOUWIN7,Windows 7,10.0.1,23ms

***

 

From: Michael B. Smith [mailto:mich...@smithcons.com] 
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

 

BAT/CMD only? Or is PowerShell an option?

 

From: David Lum [mailto:david@nwea.org] 
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

 

In batch to take this output:

---

W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

 

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53

---

And end up with this in a .TXT file?

---
11.2.202.235 , 24ms

---

 

I'm wondering if a FOR loop can be leveraged?

David Lum 
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

~ Final

Re: Is there a way...

2012-05-25 Thread Rankin, James R
FWIW, although I still use the for command regularly, if you're unfamiliar with 
it you're probably better off trying to learn how to do these sorts of things 
in PowerShell, IMHO

---Blackberried

-Original Message-
From: "Crawford, Scott" 
Date: Fri, 25 May 2012 17:59:23 
To: NT System Admin Issues
Reply-To: "NT System Admin Issues" 
Subject: RE: Is there a way...

Its returning the 7th (%o) token at the end.

For /? has tons of good info.  I'd take a working line, like the one I gave 
you, study it against for /? and modify it to see what changes so you can get a 
good understanding of what's going on.

From: David Lum [mailto:david@nwea.org]
Sent: Friday, May 25, 2012 12:51 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

OK thanks. How is it not picking up the "bytes" or "time" instead?

From: Rankin, James R 
[mailto:kz2...@googlemail.com]<mailto:[mailto:kz2...@googlemail.com]>
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up
---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:04:47 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but how the hell is it 
picking out the 5th entry and dropping off "time=" part? Is that what the 
delims line is doing?

Dave

From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith 
[mailto:mich...@smithcons.com]<mailto:[mailto:mich...@smithcons.com]>
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-sof

Re: Is there a way...

2012-05-25 Thread Rankin, James R
Dunno what the US term is for it. A road with two lanes on each side that isn't 
a motorway, i.e.  Not subject to traffic prohibitions, no crash barriers, not 
subject to clearway restrictions, etc.

---Blackberried

-Original Message-
From: Micheal Espinola Jr 
Date: Fri, 25 May 2012 11:47:46 
To: NT System Admin Issues
Reply-To: "NT System Admin Issues" 
Subject: Re: Is there a way...

You guys are still riding in carriages?

--
Espi




On Fri, May 25, 2012 at 11:37 AM, Rankin, James R wrote:

> **
> Giving my other half a lift to the pub. I just got into severe trouble
> with her for racing a BMW M6 all the way down the dual carriageway. I get
> to babysit now and calm down :-)
> ---Blackberried
> --
> *From: * Jonathan Link 
> *Date: *Fri, 25 May 2012 14:27:21 -0400
> *To: *NT System Admin Issues
> *ReplyTo: * "NT System Admin Issues" <
> ntsysadmin@lyris.sunbelt-software.com>
> *Subject: *Re: Is there a way...
>
> On the way to the pub?
>
> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R wrote:
>
>> I am probably mistaken as I am in the car :-o
>> ---Blackberried
>> --
>> *From: * "Rankin, James R" 
>> *Date: *Fri, 25 May 2012 17:55:35 +
>> *To: *NT System Admin Issues
>> *ReplyTo: * kz2...@googlemail.com
>> *Subject: *Re: Is there a way...
>>
>> It is parsing the output again with the second For command to tidy it up
>>
>> ---Blackberried
>> --
>> *From: * David Lum 
>> *Date: *Fri, 25 May 2012 17:50:39 +
>> *To: *NT System Admin Issues
>> *ReplyTo: * "NT System Admin Issues" <
>> ntsysadmin@lyris.sunbelt-software.com>
>> *Subject: *RE: Is there a way...
>>
>> OK thanks. How is it not picking up the “bytes” or “time” instead?
>>
>> ** **
>>
>> *From:* Rankin, James R [mailto:kz2...@googlemail.com]
>> *Sent:* Friday, May 25, 2012 10:27 AM
>> *To:* NT System Admin Issues
>> *Subject:* Re: Is there a way...
>>
>> ** **
>>
>> Yes, The specified delimiter is an = sign. You can specify the delimiter
>> or use the default (is the default a space?)
>>
>> You can echo the output out if you want to check what you're picking up**
>> **
>>
>> ---Blackberried
>> --
>>
>> *From: *David Lum  
>>
>> *Date: *Fri, 25 May 2012 17:04:47 +
>>
>> *To: *NT System Admin Issues
>>
>> *ReplyTo: *"NT System Admin Issues" <
>> ntsysadmin@lyris.sunbelt-software.com>
>>
>> *Subject: *RE: Is there a way...
>>
>> ** **
>>
>> The MAP-WS.txt is the data collection point
>>
>> ** **
>>
>> How the heck does that tokens line work? I get that it is stepping
>> through the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but
>> how the hell is it picking out the 5th entry and dropping off “time=”
>> part? Is that what the delims line is doing?
>>
>> ** **
>>
>> Dave
>>
>> ** **
>>
>> *From:* Crawford, Scott [mailto:crawfo...@evangel.edu]
>> *Sent:* Thursday, May 24, 2012 4:15 PM
>> *To:* NT System Admin Issues
>> *Subject:* RE: Is there a way...
>>
>> ** **
>>
>> Why are you using MAP-WS_Results.txt? Just as a data collection point or
>> do you possibly need more info from it later besides the 4 things you
>> mention?  If the only  thing you want at the end is your master list in a
>> text file, I would parse the data during each command. Something like this,
>> maybe?
>>
>> ** **
>>
>> for /f “tokens=1-5” %%i in (‘FILEVER
>> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"’) do set FlashVersion=%%m
>> 
>>
>> for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i
>> "reply"') do set PingTime=%o
>>
>> echo %ComputerName%,%FlashVersion%,%PingTime%
>>
>> ** **
>>
>> *From:* David Lum [mailto:david@nwea.org]
>> *Sent:* Thursday, May 24, 2012 4:47 PM
>> *To:* NT System Admin Issues
>> *Subject:* RE: Is there a way...
>>
>> ** **
>>
>> CMD only.
>>
>> ** **
>>
>> Sorry I should have included more info. The commands I am already running
>> are:
>>
>> ** **
>>
>> FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >>
>> "b:\wsdata\MAP-WS_Results.txt"

Re: Is there a way...

2012-05-25 Thread Micheal Espinola Jr
You guys are still riding in carriages?

--
Espi




On Fri, May 25, 2012 at 11:37 AM, Rankin, James R wrote:

> **
> Giving my other half a lift to the pub. I just got into severe trouble
> with her for racing a BMW M6 all the way down the dual carriageway. I get
> to babysit now and calm down :-)
> ---Blackberried
> --
> *From: * Jonathan Link 
> *Date: *Fri, 25 May 2012 14:27:21 -0400
> *To: *NT System Admin Issues
> *ReplyTo: * "NT System Admin Issues" <
> ntsysadmin@lyris.sunbelt-software.com>
> *Subject: *Re: Is there a way...
>
> On the way to the pub?
>
> On Fri, May 25, 2012 at 2:03 PM, Rankin, James R wrote:
>
>> I am probably mistaken as I am in the car :-o
>> ---Blackberried
>> --
>> *From: * "Rankin, James R" 
>> *Date: *Fri, 25 May 2012 17:55:35 +
>> *To: *NT System Admin Issues
>> *ReplyTo: * kz2...@googlemail.com
>> *Subject: *Re: Is there a way...
>>
>> It is parsing the output again with the second For command to tidy it up
>>
>> ---Blackberried
>> --
>> *From: * David Lum 
>> *Date: *Fri, 25 May 2012 17:50:39 +
>> *To: *NT System Admin Issues
>> *ReplyTo: * "NT System Admin Issues" <
>> ntsysadmin@lyris.sunbelt-software.com>
>> *Subject: *RE: Is there a way...
>>
>> OK thanks. How is it not picking up the “bytes” or “time” instead?
>>
>> ** **
>>
>> *From:* Rankin, James R [mailto:kz2...@googlemail.com]
>> *Sent:* Friday, May 25, 2012 10:27 AM
>> *To:* NT System Admin Issues
>> *Subject:* Re: Is there a way...
>>
>> ** **
>>
>> Yes, The specified delimiter is an = sign. You can specify the delimiter
>> or use the default (is the default a space?)
>>
>> You can echo the output out if you want to check what you're picking up**
>> **
>>
>> ---Blackberried
>> --
>>
>> *From: *David Lum  
>>
>> *Date: *Fri, 25 May 2012 17:04:47 +
>>
>> *To: *NT System Admin Issues
>>
>> *ReplyTo: *"NT System Admin Issues" <
>> ntsysadmin@lyris.sunbelt-software.com>
>>
>> *Subject: *RE: Is there a way...
>>
>> ** **
>>
>> The MAP-WS.txt is the data collection point
>>
>> ** **
>>
>> How the heck does that tokens line work? I get that it is stepping
>> through the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but
>> how the hell is it picking out the 5th entry and dropping off “time=”
>> part? Is that what the delims line is doing?
>>
>> ** **
>>
>> Dave
>>
>> ** **
>>
>> *From:* Crawford, Scott [mailto:crawfo...@evangel.edu]
>> *Sent:* Thursday, May 24, 2012 4:15 PM
>> *To:* NT System Admin Issues
>> *Subject:* RE: Is there a way...
>>
>> ** **
>>
>> Why are you using MAP-WS_Results.txt? Just as a data collection point or
>> do you possibly need more info from it later besides the 4 things you
>> mention?  If the only  thing you want at the end is your master list in a
>> text file, I would parse the data during each command. Something like this,
>> maybe?
>>
>> ** **
>>
>> for /f “tokens=1-5” %%i in (‘FILEVER
>> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"’) do set FlashVersion=%%m
>> 
>>
>> for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i
>> "reply"') do set PingTime=%o
>>
>> echo %ComputerName%,%FlashVersion%,%PingTime%
>>
>> ** **
>>
>> *From:* David Lum [mailto:david@nwea.org]
>> *Sent:* Thursday, May 24, 2012 4:47 PM
>> *To:* NT System Admin Issues
>> *Subject:* RE: Is there a way...
>>
>> ** **
>>
>> CMD only.
>>
>> ** **
>>
>> Sorry I should have included more info. The commands I am already running
>> are:
>>
>> ** **
>>
>> FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >>
>> "b:\wsdata\MAP-WS_Results.txt"
>>
>> Echo. >> "b:\wsdata\MAP-WS_Results.txt"****
>>
>> ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"
>>
>> ** **
>>
>> So what you saw was the contents of MAP-WS_Results.txt.
>>
>> ** **
>>
>> Ultimately I’m looking to have say, 50 machines run tha

Re: Is there a way...

2012-05-25 Thread Rankin, James R
Giving my other half a lift to the pub. I just got into severe trouble with her 
for racing a BMW M6 all the way down the dual carriageway. I get to babysit now 
and calm down :-)

---Blackberried

-Original Message-
From: Jonathan Link 
Date: Fri, 25 May 2012 14:27:21 
To: NT System Admin Issues
Reply-To: "NT System Admin Issues" 
Subject: Re: Is there a way...

On the way to the pub?

On Fri, May 25, 2012 at 2:03 PM, Rankin, James R wrote:

> I am probably mistaken as I am in the car :-o
> ---Blackberried
> --
> *From: * "Rankin, James R" 
> *Date: *Fri, 25 May 2012 17:55:35 +
> *To: *NT System Admin Issues
> *ReplyTo: * kz2...@googlemail.com
> *Subject: *Re: Is there a way...
>
> It is parsing the output again with the second For command to tidy it up
>
> ---Blackberried
> --
> *From: * David Lum 
> *Date: *Fri, 25 May 2012 17:50:39 +
> *To: *NT System Admin Issues
> *ReplyTo: * "NT System Admin Issues" <
> ntsysadmin@lyris.sunbelt-software.com>
> *Subject: *RE: Is there a way...
>
> OK thanks. How is it not picking up the “bytes” or “time” instead?
>
> ** **
>
> *From:* Rankin, James R [mailto:kz2...@googlemail.com]
> *Sent:* Friday, May 25, 2012 10:27 AM
> *To:* NT System Admin Issues
> *Subject:* Re: Is there a way...
>
> ** **
>
> Yes, The specified delimiter is an = sign. You can specify the delimiter
> or use the default (is the default a space?)
>
> You can echo the output out if you want to check what you're picking up***
> *
>
> ---Blackberried
> --
>
> *From: *David Lum  ****
>
> *Date: *Fri, 25 May 2012 17:04:47 +
>
> *To: *NT System Admin Issues
>
> *ReplyTo: *"NT System Admin Issues"  >
>
> *Subject: *RE: Is there a way...
>
> ** **
>
> The MAP-WS.txt is the data collection point
>
> ** **
>
> How the heck does that tokens line work? I get that it is stepping through
> the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but how the
> hell is it picking out the 5th entry and dropping off “time=” part? Is
> that what the delims line is doing?
>
> ** **
>
> Dave
>
> ** **
>
> *From:* Crawford, Scott [mailto:crawfo...@evangel.edu]
> *Sent:* Thursday, May 24, 2012 4:15 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> Why are you using MAP-WS_Results.txt? Just as a data collection point or
> do you possibly need more info from it later besides the 4 things you
> mention?  If the only  thing you want at the end is your master list in a
> text file, I would parse the data during each command. Something like this,
> maybe?
>
> ** **
>
> for /f “tokens=1-5” %%i in (‘FILEVER
> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"’) do set FlashVersion=%%m
> ****
>
> for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i
> "reply"') do set PingTime=%o
>
> echo %ComputerName%,%FlashVersion%,%PingTime%
>
> ** **
>
> *From:* David Lum [mailto:david@nwea.org]
> *Sent:* Thursday, May 24, 2012 4:47 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> CMD only.
>
> ** **
>
> Sorry I should have included more info. The commands I am already running
> are:
>
> ** **
>
> FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >>
> "b:\wsdata\MAP-WS_Results.txt"
>
> Echo. >> "b:\wsdata\MAP-WS_Results.txt"
>
> ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"
>
> ** **
>
> So what you saw was the contents of MAP-WS_Results.txt.
>
> ** **
>
> Ultimately I’m looking to have say, 50 machines run that batch file and
> end up with something like this in a .TXT/.CSV
>
> ***
>
> Machine name, OS, Flash version, ping
>
> JOEBOB-XP, Windows XP,  11.2.202.235,24ms
>
> MARYLOUWIN7,Windows 7,10.0.1,23ms
>
> ***
>
> ** **
>
> *From:* Michael B. Smith [mailto:mich...@smithcons.com]
> *Sent:* Thursday, May 24, 2012 2:13 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> BAT/CMD only? Or is PowerShell an option?
>
> ** **
>
> *From:* David Lum [mailto:david@nwea.org]
> *Sent:* Thursday, May 24, 2012 5:08 PM
> *To:* NT System Admin Issues
> *Subject:* Is there a way...
>
> ** **
>
> In batch to take this output:
>
> ---
>
> W32i

Re: Is there a way...

2012-05-25 Thread Jonathan Link
On the way to the pub?

On Fri, May 25, 2012 at 2:03 PM, Rankin, James R wrote:

> I am probably mistaken as I am in the car :-o
> ---Blackberried
> --
> *From: * "Rankin, James R" 
> *Date: *Fri, 25 May 2012 17:55:35 +
> *To: *NT System Admin Issues
> *ReplyTo: * kz2...@googlemail.com
> *Subject: *Re: Is there a way...
>
> It is parsing the output again with the second For command to tidy it up
>
> ---Blackberried
> --
> *From: * David Lum 
> *Date: *Fri, 25 May 2012 17:50:39 +
> *To: *NT System Admin Issues
> *ReplyTo: * "NT System Admin Issues" <
> ntsysadmin@lyris.sunbelt-software.com>
> *Subject: *RE: Is there a way...
>
> OK thanks. How is it not picking up the “bytes” or “time” instead?
>
> ** **
>
> *From:* Rankin, James R [mailto:kz2...@googlemail.com]
> *Sent:* Friday, May 25, 2012 10:27 AM
> *To:* NT System Admin Issues
> *Subject:* Re: Is there a way...
>
> ** **
>
> Yes, The specified delimiter is an = sign. You can specify the delimiter
> or use the default (is the default a space?)
>
> You can echo the output out if you want to check what you're picking up***
> *
>
> ---Blackberried
> --
>
> *From: *David Lum  ****
>
> *Date: *Fri, 25 May 2012 17:04:47 +
>
> *To: *NT System Admin Issues
>
> *ReplyTo: *"NT System Admin Issues"  >
>
> *Subject: *RE: Is there a way...
>
> ** **
>
> The MAP-WS.txt is the data collection point
>
> ** **
>
> How the heck does that tokens line work? I get that it is stepping through
> the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but how the
> hell is it picking out the 5th entry and dropping off “time=” part? Is
> that what the delims line is doing?
>
> ** **
>
> Dave
>
> ** **
>
> *From:* Crawford, Scott [mailto:crawfo...@evangel.edu]
> *Sent:* Thursday, May 24, 2012 4:15 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> Why are you using MAP-WS_Results.txt? Just as a data collection point or
> do you possibly need more info from it later besides the 4 things you
> mention?  If the only  thing you want at the end is your master list in a
> text file, I would parse the data during each command. Something like this,
> maybe?
>
> ** **
>
> for /f “tokens=1-5” %%i in (‘FILEVER
> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"’) do set FlashVersion=%%m
> 
>
> for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i
> "reply"') do set PingTime=%o
>
> echo %ComputerName%,%FlashVersion%,%PingTime%
>
> ** **
>
> *From:* David Lum [mailto:david@nwea.org]
> *Sent:* Thursday, May 24, 2012 4:47 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> CMD only.
>
> ** **
>
> Sorry I should have included more info. The commands I am already running
> are:
>
> ** **
>
> FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >>
> "b:\wsdata\MAP-WS_Results.txt"
>
> Echo. >> "b:\wsdata\MAP-WS_Results.txt"
>
> ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"
>
> ** **
>
> So what you saw was the contents of MAP-WS_Results.txt.
>
> ** **
>
> Ultimately I’m looking to have say, 50 machines run that batch file and
> end up with something like this in a .TXT/.CSV
>
> ***
>
> Machine name, OS, Flash version, ping
>
> JOEBOB-XP, Windows XP,  11.2.202.235,24ms
>
> MARYLOUWIN7,Windows 7,10.0.1,23ms
>
> ***
>
> ** **
>
> *From:* Michael B. Smith [mailto:mich...@smithcons.com]
> *Sent:* Thursday, May 24, 2012 2:13 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> BAT/CMD only? Or is PowerShell an option?
>
> ** **
>
> *From:* David Lum [mailto:david@nwea.org]
> *Sent:* Thursday, May 24, 2012 5:08 PM
> *To:* NT System Admin Issues
> *Subject:* Is there a way...
>
> ** **
>
> In batch to take this output:
>
> ---
>
> W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx
>
> ** **
>
> Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
>
> ---
>
> And end up with this in a .TXT file?
>
> ---
> 11.2.202.235 , 24ms
>
> ---
>
> ** **
>
> I’m wondering if a FOR loop can be leveraged?
>
> *David Lum*
> Systems Engin

Re: Is there a way...

2012-05-25 Thread Rankin, James R
I am probably mistaken as I am in the car :-o
---Blackberried

-Original Message-
From: "Rankin, James R" 
Date: Fri, 25 May 2012 17:55:35 
To: NT System Admin Issues
Reply-To: kz2...@googlemail.com
Subject: Re: Is there a way...

It is parsing the output again with the second For command to tidy it up

---Blackberried

-Original Message-
From: David Lum 
Date: Fri, 25 May 2012 17:50:39 
To: NT System Admin Issues
Reply-To: "NT System Admin Issues" 
Subject: RE: Is there a way...

OK thanks. How is it not picking up the "bytes" or "time" instead?

From: Rankin, James R [mailto:kz2...@googlemail.com]
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up
---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:04:47 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but how the hell is it 
picking out the 5th entry and dropping off "time=" part? Is that what the 
delims line is doing?

Dave

From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith 
[mailto:mich...@smithcons.com]<mailto:[mailto:mich...@smithcons.com]>
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To ma

RE: Is there a way...

2012-05-25 Thread Crawford, Scott
Its returning the 7th (%o) token at the end.

For /? has tons of good info.  I'd take a working line, like the one I gave 
you, study it against for /? and modify it to see what changes so you can get a 
good understanding of what's going on.

From: David Lum [mailto:david@nwea.org]
Sent: Friday, May 25, 2012 12:51 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

OK thanks. How is it not picking up the "bytes" or "time" instead?

From: Rankin, James R 
[mailto:kz2...@googlemail.com]<mailto:[mailto:kz2...@googlemail.com]>
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up
---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:04:47 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but how the hell is it 
picking out the 5th entry and dropping off "time=" part? Is that what the 
delims line is doing?

Dave

From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith 
[mailto:mich...@smithcons.com]<mailto:[mailto:mich...@smithcons.com]>
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_fo

Re: Is there a way...

2012-05-25 Thread Rankin, James R
It is parsing the output again with the second For command to tidy it up

---Blackberried

-Original Message-
From: David Lum 
Date: Fri, 25 May 2012 17:50:39 
To: NT System Admin Issues
Reply-To: "NT System Admin Issues" 
Subject: RE: Is there a way...

OK thanks. How is it not picking up the "bytes" or "time" instead?

From: Rankin, James R [mailto:kz2...@googlemail.com]
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up
---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:04:47 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but how the hell is it 
picking out the 5th entry and dropping off "time=" part? Is that what the 
delims line is doing?

Dave

From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith 
[mailto:mich...@smithcons.com]<mailto:[mailto:mich...@smithcons.com]>
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ 

Re: Is there a way...

2012-05-25 Thread Andrew S. Baker
The default is SPACE and TAB

* *

*ASB* *http://XeeMe.com/AndrewBaker* *Harnessing the Advantages of
Technology for the SMB market…

*



On Fri, May 25, 2012 at 1:26 PM, Rankin, James R wrote:

> Yes, The specified delimiter is an = sign. You can specify the delimiter
> or use the default (is the default a space?)
>
> You can echo the output out if you want to check what you're picking up
> ---Blackberried
> --
> *From: * David Lum 
> *Date: *Fri, 25 May 2012 17:04:47 +
> *To: *NT System Admin Issues
> *ReplyTo: * "NT System Admin Issues" <
> ntsysadmin@lyris.sunbelt-software.com>
> *Subject: *RE: Is there a way...
>
> The MAP-WS.txt is the data collection point
>
> ** **
>
> How the heck does that tokens line work? I get that it is stepping through
> the “Reply from 4.2.2.3: bytes=32 time=24ms TTL=53“ line, but how the
> hell is it picking out the 5th entry and dropping off “time=” part? Is
> that what the delims line is doing?
>
> ** **
>
> Dave
>
> ** **
>
> *From:* Crawford, Scott [mailto:crawfo...@evangel.edu]
> *Sent:* Thursday, May 24, 2012 4:15 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> Why are you using MAP-WS_Results.txt? Just as a data collection point or
> do you possibly need more info from it later besides the 4 things you
> mention?  If the only  thing you want at the end is your master list in a
> text file, I would parse the data during each command. Something like this,
> maybe?
>
> ** **
>
> for /f “tokens=1-5” %%i in (‘FILEVER
> "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"’) do set FlashVersion=%%m
> 
>
> for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i
> "reply"') do set PingTime=%o****
>
> echo %ComputerName%,%FlashVersion%,%PingTime%
>
> ** **
>
> *From:* David Lum [mailto:david@nwea.org]
> *Sent:* Thursday, May 24, 2012 4:47 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> CMD only.
>
> ** **
>
> Sorry I should have included more info. The commands I am already running
> are:
>
> ** **
>
> FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >>
> "b:\wsdata\MAP-WS_Results.txt"
>
> Echo. >> "b:\wsdata\MAP-WS_Results.txt"
>
> ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"
>
> ** **
>
> So what you saw was the contents of MAP-WS_Results.txt.
>
> ** **
>
> Ultimately I’m looking to have say, 50 machines run that batch file and
> end up with something like this in a .TXT/.CSV
>
> ***
>
> Machine name, OS, Flash version, ping
>
> JOEBOB-XP, Windows XP,  11.2.202.235,24ms
>
> MARYLOUWIN7,Windows 7,10.0.1,23ms****
>
> ***
>
> ** **
>
> *From:* Michael B. Smith [mailto:mich...@smithcons.com]
> *Sent:* Thursday, May 24, 2012 2:13 PM
> *To:* NT System Admin Issues
> *Subject:* RE: Is there a way...
>
> ** **
>
> BAT/CMD only? Or is PowerShell an option?
>
> ** **
>
> *From:* David Lum [mailto:david@nwea.org]
> *Sent:* Thursday, May 24, 2012 5:08 PM
> *To:* NT System Admin Issues
> *Subject:* Is there a way...
>
> ** **
>
> In batch to take this output:
>
> ---
>
> W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx
>
> ** **
>
> Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
>
> ---
>
> And end up with this in a .TXT file?
>
> ---
> 11.2.202.235 , 24ms
>
> ---
>
> ** **
>
> I’m wondering if a FOR loop can be leveraged?
>
> *David Lum*
> Systems Engineer // NWEATM
> Office 503.548.5229 //* *Cell (voice/text) 503.267.9764
>
> ** **
>
>
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way...

2012-05-25 Thread David Lum
OK thanks. How is it not picking up the "bytes" or "time" instead?

From: Rankin, James R [mailto:kz2...@googlemail.com]
Sent: Friday, May 25, 2012 10:27 AM
To: NT System Admin Issues
Subject: Re: Is there a way...

Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up
---Blackberried

From: David Lum mailto:david@nwea.org>>
Date: Fri, 25 May 2012 17:04:47 +
To: NT System Admin 
Issuesmailto:ntsysadmin@lyris.sunbelt-software.com>>
ReplyTo: "NT System Admin Issues" 
mailto:ntsysadmin@lyris.sunbelt-software.com>>
Subject: RE: Is there a way...

The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but how the hell is it 
picking out the 5th entry and dropping off "time=" part? Is that what the 
delims line is doing?

Dave

From: Crawford, Scott 
[mailto:crawfo...@evangel.edu]<mailto:[mailto:crawfo...@evangel.edu]>
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david....@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith 
[mailto:mich...@smithcons.com]<mailto:[mailto:mich...@smithcons.com]>
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware

Re: Is there a way...

2012-05-25 Thread Rankin, James R
Yes, The specified delimiter is an = sign. You can specify the delimiter or use 
the default (is the default a space?)

You can echo the output out if you want to check what you're picking up

---Blackberried

-Original Message-
From: David Lum 
Date: Fri, 25 May 2012 17:04:47 
To: NT System Admin Issues
Reply-To: "NT System Admin Issues" 
Subject: RE: Is there a way...

The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but how the hell is it 
picking out the 5th entry and dropping off "time=" part? Is that what the 
delims line is doing?

Dave

From: Crawford, Scott [mailto:crawfo...@evangel.edu]
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david....@nwea.org]>
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith 
[mailto:mich...@smithcons.com]<mailto:[mailto:mich...@smithcons.com]>
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubs

RE: Is there a way...

2012-05-25 Thread David Lum
The MAP-WS.txt is the data collection point

How the heck does that tokens line work? I get that it is stepping through the 
"Reply from 4.2.2.3: bytes=32 time=24ms TTL=53" line, but how the hell is it 
picking out the 5th entry and dropping off "time=" part? Is that what the 
delims line is doing?

Dave

From: Crawford, Scott [mailto:crawfo...@evangel.edu]
Sent: Thursday, May 24, 2012 4:15 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith 
[mailto:mich...@smithcons.com]<mailto:[mailto:mich...@smithcons.com]>
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way...

2012-05-24 Thread Crawford, Scott
Why are you using MAP-WS_Results.txt? Just as a data collection point or do you 
possibly need more info from it later besides the 4 things you mention?  If the 
only  thing you want at the end is your master list in a text file, I would 
parse the data during each command. Something like this, maybe?

for /f "tokens=1-5" %%i in ('FILEVER 
"%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"') do set FlashVersion=%%m
for /f "tokens=1-7 delims== " %i in ('ping -n 1 4.2.2.3 ^| find /i "reply"') do 
set PingTime=%o
echo %ComputerName%,%FlashVersion%,%PingTime%

From: David Lum [mailto:david@nwea.org]
Sent: Thursday, May 24, 2012 4:47 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith 
[mailto:mich...@smithcons.com]<mailto:[mailto:mich...@smithcons.com]>
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Re: Is there a way...

2012-05-24 Thread Ben Scott
On Thu, May 24, 2012 at 5:47 PM, David Lum  wrote:
> FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >>
> "b:\wsdata\MAP-WS_Results.txt"
>
> Echo. >> "b:\wsdata\MAP-WS_Results.txt"
>
> ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

  You should probabbly wrap each command in a FOR /F, capture the
fields you want into environment variables, and then write those to
the log file.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin


RE: Is there a way...

2012-05-24 Thread David Lum
CMD only.

Sorry I should have included more info. The commands I am already running are:

FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D >> 
"b:\wsdata\MAP-WS_Results.txt"
Echo. >> "b:\wsdata\MAP-WS_Results.txt"
ping -n 1 4.2.2.3 | find /i "reply" >> "b:\wsdata\MAP-WS_Results.txt"

So what you saw was the contents of MAP-WS_Results.txt.

Ultimately I'm looking to have say, 50 machines run that batch file and end up 
with something like this in a .TXT/.CSV
***
Machine name, OS, Flash version, ping
JOEBOB-XP, Windows XP,  11.2.202.235,24ms
MARYLOUWIN7,Windows 7,10.0.1,23ms
***

From: Michael B. Smith [mailto:mich...@smithcons.com]
Sent: Thursday, May 24, 2012 2:13 PM
To: NT System Admin Issues
Subject: RE: Is there a way...

BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]<mailto:[mailto:david@nwea.org]>
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Re: Is there a way...

2012-05-24 Thread Ben Scott
On Thu, May 24, 2012 at 5:08 PM, David Lum  wrote:
> In batch to take this output:
> W32i   DLL ENU    11.2.202.235 shp flash32_11_2_202_235.ocx
> Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
> And end up with this in a .TXT file?
> 11.2.202.235 , 24ms

  Yes.  Look into the FOR /F command, especially the "delims" option.
You may have to nest things.  It can get ugly quick, but it's very
doable.

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin



RE: Is there a way...

2012-05-24 Thread Crawford, Scott
Sure

snip
Echo 11.2.202.235, 24ms > textfile.txt
snip

But, I imagine that's not exactly what you're looking for.  What's generating 
the input? Is it always in a certain form?  Whats the goal?  Checking ping time 
on computers with a certain version of flash?

From: David Lum [mailto:david@nwea.org]
Sent: Thursday, May 24, 2012 4:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way...

2012-05-24 Thread Michael B. Smith
BAT/CMD only? Or is PowerShell an option?

From: David Lum [mailto:david@nwea.org]
Sent: Thursday, May 24, 2012 5:08 PM
To: NT System Admin Issues
Subject: Is there a way...

In batch to take this output:
---
W32i   DLL ENU11.2.202.235 shp flash32_11_2_202_235.ocx

Reply from 4.2.2.3: bytes=32 time=24ms TTL=53
---
And end up with this in a .TXT file?
---
11.2.202.235 , 24ms
---

I'm wondering if a FOR loop can be leveraged?
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-29 Thread Michael B. Smith
I have investigated, at length. Unfortunately, other than looking at the
registry, or at the event log when MSExchangeIS starts, I do not know of any
other way to make that determination.

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Tim Evans [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 29, 2008 5:56 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack
of a Microsoft Exchange Server?

 

Cool trick, Michael.

Do you have anything similar to determine standard vs Enterprise versions,
besides searching the registry?

 

.Tim

 

From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 10:23 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack
of a Microsoft Exchange Server?

 

You made me think on a Saturday! Shame on you!

 

No, that won't help you. MAPI/CDO have nothing to do with WMI.

 

Really, the easiest way to do this is to use dsquery or adfind. This is what
I recommend to the OP.

 

To wit:

 

C:\Temp>adfind -config -f objectcategory=msexchexchangeserver dn
serialnumber

 

AdFind V01.37.00cpp Joe Richards ([EMAIL PROTECTED]) June 2007

 

Using server: win2003-dc.essential.local:389

Directory: Windows Server 2003

Base DN: CN=Configuration,DC=essential,DC=local

 

dn:CN=WIN2003-EXCH,CN=Servers,CN=First Administrative
Group,CN=Administrative Groups,CN=First Organization,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 6.5 (Build 7638.2: Service Pack 2)

 

dn:CN=WIN2008-EXCH,CN=Servers,CN=Exchange Administrative Group
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First
Organization,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 8.1 (Build 30240.6)

 

 

2 Objects returned

 

C:\Temp>

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Carl Houseman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 12:07 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack
of a Microsoft Exchange Server?

 

Doesn't this make it possible to use the same script against Exchange 2007?

 

http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-
bff2-0a110307611e
<http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9
-bff2-0a110307611e&displaylang=en> &displaylang=en

 

Granted, you'll have to identify all the 2007 servers and add this to them,
but I guess the ones which don't respond to the CDOEXM scripting will take
care of that.

 

Carl

 

-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack
of a Microsoft Exchange Server?

 

As long as there are no 2007 servers in the mix...

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

 

-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED] 

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service pack

of a Microsoft Exchange Server?

 

Hmm, Exchange question.  Does Sunbelt operate an Exchange list?

 

Should be able to distill something here into what you need:

 

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.
mspx

 

 

 

Carl

 

-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED] 

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack of a

Microsoft Exchange Server?

 

Microsoft publishes the following manual method for determining the version

of Exchange:  http://support.microsoft.com/kb/152439

 

Is there a programmatic way to capture this information so I can run it

against 200 Exchange servers? 

 

 

 

 

 

 

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-29 Thread Tim Evans
Cool trick, Michael.

Do you have anything similar to determine standard vs Enterprise
versions, besides searching the registry?

 

...Tim

 

From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 10:23 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service
pack of a Microsoft Exchange Server?

 

You made me think on a Saturday! Shame on you!

 

No, that won't help you. MAPI/CDO have nothing to do with WMI.

 

Really, the easiest way to do this is to use dsquery or adfind. This is
what I recommend to the OP.

 

To wit:

 

C:\Temp>adfind -config -f objectcategory=msexchexchangeserver dn
serialnumber

 

AdFind V01.37.00cpp Joe Richards ([EMAIL PROTECTED]) June 2007

 

Using server: win2003-dc.essential.local:389

Directory: Windows Server 2003

Base DN: CN=Configuration,DC=essential,DC=local

 

dn:CN=WIN2003-EXCH,CN=Servers,CN=First Administrative
Group,CN=Administrative Groups,CN=First Organization,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 6.5 (Build 7638.2: Service Pack 2)

 

dn:CN=WIN2008-EXCH,CN=Servers,CN=Exchange Administrative Group
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First
Organization,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 8.1 (Build 30240.6)

 

 

2 Objects returned

 

C:\Temp>

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Carl Houseman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 12:07 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service
pack of a Microsoft Exchange Server?

 

Doesn't this make it possible to use the same script against Exchange
2007?

 

http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-4
3a9-bff2-0a110307611e&displaylang=en

 

Granted, you'll have to identify all the 2007 servers and add this to
them, but I guess the ones which don't respond to the CDOEXM scripting
will take care of that.

 

Carl

 

-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service
pack of a Microsoft Exchange Server?

 

As long as there are no 2007 servers in the mix...

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

 

-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED] 

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service
pack

of a Microsoft Exchange Server?

 

Hmm, Exchange question.  Does Sunbelt operate an Exchange list?

 

Should be able to distill something here into what you need:

 

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2k
wsh.mspx

 

 

 

Carl

 

-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED] 

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack
of a

Microsoft Exchange Server?

 

Microsoft publishes the following manual method for determining the
version

of Exchange:  http://support.microsoft.com/kb/152439

 

Is there a programmatic way to capture this information so I can run it

against 200 Exchange servers? 

 

 

 

 

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Re: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-28 Thread Rubens Almeida
The easiest way I found to do that was using PowerShell:

gwmi -class ExchangeServerState -namespace
root\cimv2\applications\exchange -computername ANYEXCHSERVER |
select-object Name,version | ft -auto -hide >> "AllExchServers.txt"

And if you want to filter by version and sp levels:
gwmi -class ExchangeServerState -namespace
root\cimv2\applications\exchange -computername ANYEXCHSERVER -filter
"Version>'6944'" | select-object Name,version | ft -auto -hide >>
"AllE2k3Servers.txt"

Here you can find details about versions and its sp levels:
http://support.microsoft.com/?kbid=158530

Hope that helps

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~   ~


RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-27 Thread Michael Ross
Psinfo -s?

-Original Message-
From: Bryan Garmon [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 25, 2008 10:14 PM
To: NT System Admin Issues
Subject: Is there a way to remotely gather the version and service pack of a
Microsoft Exchange Server?

Microsoft publishes the following manual method for determining the version
of Exchange:  http://support.microsoft.com/kb/152439

Is there a programmatic way to capture this information so I can run it
against 200 Exchange servers? 


~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~



~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~


Re: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread John Cook
Mucho gracias - go have a drink!
Painstakingly sent to you from my Blackberry.


From: Michael B. Smith
To: NT System Admin Issues
Sent: Sat Apr 26 17:05:19 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?
Yes, there is an A/D provider in V2, and it’s pretty nice.

There is also a (free) A/D provider from Quest, and free A/D cmdlets available 
as part of PSCX (PowerShell Community Extensions).

It’s covered, but I can’t assume that everyone has those installed. ☺

Regards,

Michael B. Smith
MCSE/Exchange MVP
http://TheEssentialExchange.com

From: John Cook [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 5:03 PM
To: NT System Admin Issues
Subject: Re: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?


Is this something that will be addressed in V2 (if it's even worth it) , just 
curious.
Painstakingly sent to you from my Blackberry.


From: Michael B. Smith
To: NT System Admin Issues
Sent: Sat Apr 26 16:49:29 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?
I can do it in PS, but because there is no A/D provider in PS 1.0, I have to 
use System.DirectoryServices() in order to do the query. That makes it several 
lines longer, of slightly confusing code (or one really long line of REALLY 
confusing code).

Regards,

Michael B. Smith
MCSE/Exchange MVP
http://TheEssentialExchange.com

From: John Cook [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 3:21 PM
To: NT System Admin Issues
Subject: Re: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?


What? No PoSh script?
Painstakingly sent to you from my Blackberry.


From: Michael B. Smith
To: NT System Admin Issues
Sent: Sat Apr 26 13:23:15 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?
You made me think on a Saturday! Shame on you!

No, that won’t help you. MAPI/CDO have nothing to do with WMI.

Really, the easiest way to do this is to use dsquery or adfind. This is what I 
recommend to the OP.

To wit:

C:\Temp>adfind -config -f objectcategory=msexchexchangeserver dn serialnumber

AdFind V01.37.00cpp Joe Richards ([EMAIL PROTECTED]) June 2007

Using server: win2003-dc.essential.local:389
Directory: Windows Server 2003
Base DN: CN=Configuration,DC=essential,DC=local

dn:CN=WIN2003-EXCH,CN=Servers,CN=First Administrative Group,CN=Administrative 
Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local
>serialNumber: Version 6.5 (Build 7638.2: Service Pack 2)

dn:CN=WIN2008-EXCH,CN=Servers,CN=Exchange Administrative Group 
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local
>serialNumber: Version 8.1 (Build 30240.6)


2 Objects returned

C:\Temp>

Regards,

Michael B. Smith
MCSE/Exchange MVP
http://TheEssentialExchange.com

From: Carl Houseman [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 12:07 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?


Doesn't this make it possible to use the same script against Exchange 2007?



http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&displaylang=en



Granted, you'll have to identify all the 2007 servers and add this to them, but 
I guess the ones which don't respond to the CDOEXM scripting will take care of 
that.



Carl



-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?



As long as there are no 2007 servers in the mix...



Regards,



Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com





-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED]

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service pack

of a Microsoft Exchange Server?



Hmm, Exchange question.  Does Sunbelt operate an Exchange list?



Should be able to distill something here into what you need:



http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.mspx







Carl



-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED]

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack of a

Microsoft Exchange Server?



Microsoft publishes the following manual method for determining the version

of Exchan

RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread Michael B. Smith
Yes, there is an A/D provider in V2, and it’s pretty nice.

 

There is also a (free) A/D provider from Quest, and free A/D cmdlets available 
as part of PSCX (PowerShell Community Extensions).

 

It’s covered, but I can’t assume that everyone has those installed. J

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: John Cook [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 5:03 PM
To: NT System Admin Issues
Subject: Re: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?

 

Is this something that will be addressed in V2 (if it's even worth it) , just 
curious. 
Painstakingly sent to you from my Blackberry. 

  _  

From: Michael B. Smith 
To: NT System Admin Issues 
Sent: Sat Apr 26 16:49:29 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server? 

I can do it in PS, but because there is no A/D provider in PS 1.0, I have to 
use System.DirectoryServices() in order to do the query. That makes it several 
lines longer, of slightly confusing code (or one really long line of REALLY 
confusing code).

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: John Cook [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 3:21 PM
To: NT System Admin Issues
Subject: Re: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?

 

What? No PoSh script? 
Painstakingly sent to you from my Blackberry. 

  _  

From: Michael B. Smith 
To: NT System Admin Issues 
Sent: Sat Apr 26 13:23:15 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server? 

You made me think on a Saturday! Shame on you!

 

No, that won’t help you. MAPI/CDO have nothing to do with WMI.

 

Really, the easiest way to do this is to use dsquery or adfind. This is what I 
recommend to the OP.

 

To wit:

 

C:\Temp>adfind -config -f objectcategory=msexchexchangeserver dn serialnumber

 

AdFind V01.37.00cpp Joe Richards ([EMAIL PROTECTED]) June 2007

 

Using server: win2003-dc.essential.local:389

Directory: Windows Server 2003

Base DN: CN=Configuration,DC=essential,DC=local

 

dn:CN=WIN2003-EXCH,CN=Servers,CN=First Administrative Group,CN=Administrative 
Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 6.5 (Build 7638.2: Service Pack 2)

 

dn:CN=WIN2008-EXCH,CN=Servers,CN=Exchange Administrative Group 
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 8.1 (Build 30240.6)

 

 

2 Objects returned

 

C:\Temp>

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Carl Houseman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 12:07 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?

 

Doesn't this make it possible to use the same script against Exchange 2007?

 

http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e
 
<http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&displaylang=en>
 &displaylang=en

 

Granted, you'll have to identify all the 2007 servers and add this to them, but 
I guess the ones which don't respond to the CDOEXM scripting will take care of 
that.

 

Carl

 

-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?

 

As long as there are no 2007 servers in the mix...

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

 

-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED] 

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service pack

of a Microsoft Exchange Server?

 

Hmm, Exchange question.  Does Sunbelt operate an Exchange list?

 

Should be able to distill something here into what you need:

 

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.mspx

 

 

 

Carl

 

-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED] 

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack of a

Microsoft Exchange Server?

 

Microsoft publishes the following manual method for determining the version

of Exchange:  http://support.microsoft.com/kb/152439

 

Is there a programmatic way to capture this information

Re: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread John Cook
Is this something that will be addressed in V2 (if it's even worth it) , just 
curious.
Painstakingly sent to you from my Blackberry.


From: Michael B. Smith
To: NT System Admin Issues
Sent: Sat Apr 26 16:49:29 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?
I can do it in PS, but because there is no A/D provider in PS 1.0, I have to 
use System.DirectoryServices() in order to do the query. That makes it several 
lines longer, of slightly confusing code (or one really long line of REALLY 
confusing code).

Regards,

Michael B. Smith
MCSE/Exchange MVP
http://TheEssentialExchange.com

From: John Cook [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 3:21 PM
To: NT System Admin Issues
Subject: Re: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?


What? No PoSh script?
Painstakingly sent to you from my Blackberry.


From: Michael B. Smith
To: NT System Admin Issues
Sent: Sat Apr 26 13:23:15 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?
You made me think on a Saturday! Shame on you!

No, that won’t help you. MAPI/CDO have nothing to do with WMI.

Really, the easiest way to do this is to use dsquery or adfind. This is what I 
recommend to the OP.

To wit:

C:\Temp>adfind -config -f objectcategory=msexchexchangeserver dn serialnumber

AdFind V01.37.00cpp Joe Richards ([EMAIL PROTECTED]) June 2007

Using server: win2003-dc.essential.local:389
Directory: Windows Server 2003
Base DN: CN=Configuration,DC=essential,DC=local

dn:CN=WIN2003-EXCH,CN=Servers,CN=First Administrative Group,CN=Administrative 
Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local
>serialNumber: Version 6.5 (Build 7638.2: Service Pack 2)

dn:CN=WIN2008-EXCH,CN=Servers,CN=Exchange Administrative Group 
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local
>serialNumber: Version 8.1 (Build 30240.6)


2 Objects returned

C:\Temp>

Regards,

Michael B. Smith
MCSE/Exchange MVP
http://TheEssentialExchange.com

From: Carl Houseman [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 12:07 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?


Doesn't this make it possible to use the same script against Exchange 2007?



http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&displaylang=en



Granted, you'll have to identify all the 2007 servers and add this to them, but 
I guess the ones which don't respond to the CDOEXM scripting will take care of 
that.



Carl



-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?



As long as there are no 2007 servers in the mix...



Regards,



Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com





-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED]

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service pack

of a Microsoft Exchange Server?



Hmm, Exchange question.  Does Sunbelt operate an Exchange list?



Should be able to distill something here into what you need:



http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.mspx







Carl



-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED]

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack of a

Microsoft Exchange Server?



Microsoft publishes the following manual method for determining the version

of Exchange:  http://support.microsoft.com/kb/152439



Is there a programmatic way to capture this information so I can run it

against 200 Exchange servers?























~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~


RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread Michael B. Smith
I can do it in PS, but because there is no A/D provider in PS 1.0, I have to 
use System.DirectoryServices() in order to do the query. That makes it several 
lines longer, of slightly confusing code (or one really long line of REALLY 
confusing code).

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: John Cook [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 3:21 PM
To: NT System Admin Issues
Subject: Re: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?

 

What? No PoSh script? 
Painstakingly sent to you from my Blackberry. 

  _  

From: Michael B. Smith 
To: NT System Admin Issues 
Sent: Sat Apr 26 13:23:15 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server? 

You made me think on a Saturday! Shame on you!

 

No, that won’t help you. MAPI/CDO have nothing to do with WMI.

 

Really, the easiest way to do this is to use dsquery or adfind. This is what I 
recommend to the OP.

 

To wit:

 

C:\Temp>adfind -config -f objectcategory=msexchexchangeserver dn serialnumber

 

AdFind V01.37.00cpp Joe Richards ([EMAIL PROTECTED]) June 2007

 

Using server: win2003-dc.essential.local:389

Directory: Windows Server 2003

Base DN: CN=Configuration,DC=essential,DC=local

 

dn:CN=WIN2003-EXCH,CN=Servers,CN=First Administrative Group,CN=Administrative 
Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 6.5 (Build 7638.2: Service Pack 2)

 

dn:CN=WIN2008-EXCH,CN=Servers,CN=Exchange Administrative Group 
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 8.1 (Build 30240.6)

 

 

2 Objects returned

 

C:\Temp>

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Carl Houseman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 12:07 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?

 

Doesn't this make it possible to use the same script against Exchange 2007?

 

http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e
 
<http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&displaylang=en>
 &displaylang=en

 

Granted, you'll have to identify all the 2007 servers and add this to them, but 
I guess the ones which don't respond to the CDOEXM scripting will take care of 
that.

 

Carl

 

-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?

 

As long as there are no 2007 servers in the mix...

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

 

-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED] 

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service pack

of a Microsoft Exchange Server?

 

Hmm, Exchange question.  Does Sunbelt operate an Exchange list?

 

Should be able to distill something here into what you need:

 

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.mspx

 

 

 

Carl

 

-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED] 

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack of a

Microsoft Exchange Server?

 

Microsoft publishes the following manual method for determining the version

of Exchange:  http://support.microsoft.com/kb/152439

 

Is there a programmatic way to capture this information so I can run it

against 200 Exchange servers? 

 

 

 

 







 

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Re: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread John Cook
What? No PoSh script?
Painstakingly sent to you from my Blackberry.


From: Michael B. Smith
To: NT System Admin Issues
Sent: Sat Apr 26 13:23:15 2008
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?
You made me think on a Saturday! Shame on you!

No, that won’t help you. MAPI/CDO have nothing to do with WMI.

Really, the easiest way to do this is to use dsquery or adfind. This is what I 
recommend to the OP.

To wit:

C:\Temp>adfind -config -f objectcategory=msexchexchangeserver dn serialnumber

AdFind V01.37.00cpp Joe Richards ([EMAIL PROTECTED]) June 2007

Using server: win2003-dc.essential.local:389
Directory: Windows Server 2003
Base DN: CN=Configuration,DC=essential,DC=local

dn:CN=WIN2003-EXCH,CN=Servers,CN=First Administrative Group,CN=Administrative 
Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local
>serialNumber: Version 6.5 (Build 7638.2: Service Pack 2)

dn:CN=WIN2008-EXCH,CN=Servers,CN=Exchange Administrative Group 
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft 
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local
>serialNumber: Version 8.1 (Build 30240.6)


2 Objects returned

C:\Temp>

Regards,

Michael B. Smith
MCSE/Exchange MVP
http://TheEssentialExchange.com

From: Carl Houseman [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 12:07 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?


Doesn't this make it possible to use the same script against Exchange 2007?



http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&displaylang=en



Granted, you'll have to identify all the 2007 servers and add this to them, but 
I guess the ones which don't respond to the CDOEXM scripting will take care of 
that.



Carl



-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack of 
a Microsoft Exchange Server?



As long as there are no 2007 servers in the mix...



Regards,



Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com





-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED]

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service pack

of a Microsoft Exchange Server?



Hmm, Exchange question.  Does Sunbelt operate an Exchange list?



Should be able to distill something here into what you need:



http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.mspx







Carl



-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED]

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack of a

Microsoft Exchange Server?



Microsoft publishes the following manual method for determining the version

of Exchange:  http://support.microsoft.com/kb/152439



Is there a programmatic way to capture this information so I can run it

against 200 Exchange servers?













~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~


RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread Michael B. Smith
You made me think on a Saturday! Shame on you!

 

No, that won't help you. MAPI/CDO have nothing to do with WMI.

 

Really, the easiest way to do this is to use dsquery or adfind. This is what
I recommend to the OP.

 

To wit:

 

C:\Temp>adfind -config -f objectcategory=msexchexchangeserver dn
serialnumber

 

AdFind V01.37.00cpp Joe Richards ([EMAIL PROTECTED]) June 2007

 

Using server: win2003-dc.essential.local:389

Directory: Windows Server 2003

Base DN: CN=Configuration,DC=essential,DC=local

 

dn:CN=WIN2003-EXCH,CN=Servers,CN=First Administrative
Group,CN=Administrative Groups,CN=First Organization,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 6.5 (Build 7638.2: Service Pack 2)

 

dn:CN=WIN2008-EXCH,CN=Servers,CN=Exchange Administrative Group
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First
Organization,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=essential,DC=local

>serialNumber: Version 8.1 (Build 30240.6)

 

 

2 Objects returned

 

C:\Temp>

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Carl Houseman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 12:07 PM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack
of a Microsoft Exchange Server?

 

Doesn't this make it possible to use the same script against Exchange 2007?

 

http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-
bff2-0a110307611e
<http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9
-bff2-0a110307611e&displaylang=en> &displaylang=en

 

Granted, you'll have to identify all the 2007 servers and add this to them,
but I guess the ones which don't respond to the CDOEXM scripting will take
care of that.

 

Carl

 

-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack
of a Microsoft Exchange Server?

 

As long as there are no 2007 servers in the mix...

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

 

-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED] 

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service pack

of a Microsoft Exchange Server?

 

Hmm, Exchange question.  Does Sunbelt operate an Exchange list?

 

Should be able to distill something here into what you need:

 

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.
mspx

 

 

 

Carl

 

-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED] 

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack of a

Microsoft Exchange Server?

 

Microsoft publishes the following manual method for determining the version

of Exchange:  http://support.microsoft.com/kb/152439

 

Is there a programmatic way to capture this information so I can run it

against 200 Exchange servers? 

 

 

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread Carl Houseman
Doesn't this make it possible to use the same script against Exchange 2007?

 

http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-
bff2-0a110307611e
<http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9
-bff2-0a110307611e&displaylang=en> &displaylang=en

 

Granted, you'll have to identify all the 2007 servers and add this to them,
but I guess the ones which don't respond to the CDOEXM scripting will take
care of that.

 

Carl

 

-Original Message-
From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 11:20 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack
of a Microsoft Exchange Server?

 

As long as there are no 2007 servers in the mix...

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

 

-Original Message-

From: Carl Houseman [mailto:[EMAIL PROTECTED] 

Sent: Saturday, April 26, 2008 11:07 AM

To: NT System Admin Issues

Subject: RE: Is there a way to remotely gather the version and service pack

of a Microsoft Exchange Server?

 

Hmm, Exchange question.  Does Sunbelt operate an Exchange list?

 

Should be able to distill something here into what you need:

 

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.

mspx

 

 

Carl

 

-Original Message-

From: Bryan Garmon [mailto:[EMAIL PROTECTED] 

Sent: Friday, April 25, 2008 11:14 PM

To: NT System Admin Issues

Subject: Is there a way to remotely gather the version and service pack of a

Microsoft Exchange Server?

 

Microsoft publishes the following manual method for determining the version

of Exchange:  http://support.microsoft.com/kb/152439

 

Is there a programmatic way to capture this information so I can run it

against 200 Exchange servers? 


~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread Michael B. Smith
As long as there are no 2007 servers in the mix...

Regards,

Michael B. Smith
MCSE/Exchange MVP
http://TheEssentialExchange.com


-Original Message-
From: Carl Houseman [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 26, 2008 11:07 AM
To: NT System Admin Issues
Subject: RE: Is there a way to remotely gather the version and service pack
of a Microsoft Exchange Server?

Hmm, Exchange question.  Does Sunbelt operate an Exchange list?

Should be able to distill something here into what you need:

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.
mspx


Carl

-Original Message-
From: Bryan Garmon [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 25, 2008 11:14 PM
To: NT System Admin Issues
Subject: Is there a way to remotely gather the version and service pack of a
Microsoft Exchange Server?

Microsoft publishes the following manual method for determining the version
of Exchange:  http://support.microsoft.com/kb/152439

Is there a programmatic way to capture this information so I can run it
against 200 Exchange servers? 


~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~


~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~


RE: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-26 Thread Carl Houseman
Hmm, Exchange question.  Does Sunbelt operate an Exchange list?

Should be able to distill something here into what you need:

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/ex2kwsh.
mspx

Carl

-Original Message-
From: Bryan Garmon [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 25, 2008 11:14 PM
To: NT System Admin Issues
Subject: Is there a way to remotely gather the version and service pack of a
Microsoft Exchange Server?

Microsoft publishes the following manual method for determining the version
of Exchange:  http://support.microsoft.com/kb/152439

Is there a programmatic way to capture this information so I can run it
against 200 Exchange servers? 


~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~


Re: Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-25 Thread Micheal Espinola Jr
I cant recall the appropriete file to check, but IIRC you can use a
utility such as FILEVER.EXE to check for version info.

On Fri, Apr 25, 2008 at 11:14 PM, Bryan Garmon <[EMAIL PROTECTED]> wrote:
> Microsoft publishes the following manual method for determining the version
> of Exchange:  http://support.microsoft.com/kb/152439
>
> Is there a programmatic way to capture this information so I can run it
> against 200 Exchange servers?
>
>
> ~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
> ~   ~
>



-- 
ME2

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~   ~


Is there a way to remotely gather the version and service pack of a Microsoft Exchange Server?

2008-04-25 Thread Bryan Garmon
Microsoft publishes the following manual method for determining the version
of Exchange:  http://support.microsoft.com/kb/152439

Is there a programmatic way to capture this information so I can run it
against 200 Exchange servers? 


~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~   ~


Is there a way to add users from a trusted domain to a group via ldap calls

2008-04-17 Thread Ski Kacoroski
Hi,

I am writing an application that automatically populates our AD with
accounts and groups from the student records and HR systems.  I can
create users and groups and add users to groups if they are in the same
domain, but have not yet figured out how to do it if the group is in
domain A and the user in domain B and there is a two way trust between
domains A & B.  From the GUI it is easy and I see that an entry gets
created in cn=foreignsecurityprincipals.  However when I try to create
this entry from via ldap calls I get a "will not perform" error and if
I just try to add the SID of the user to the group I get a "no object"
error.

Thanks for your advice.

cheers,

ski

-- 
"When we try to pick out anything by itself, we find it
 connected to the entire universe"John Muir

Chris "Ski" Kacoroski, [EMAIL PROTECTED], 206-501-9803
or ski98033 on most IM services and gizmo

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!~
~   ~