| Author | Messages | |
James_Day
Posts:13
 | | 07/29/2008 2:45 PM |
| Return Receipt
Your [ActiveDir] OT: Script Request: Event Log Sizes document:
was James_Day@contractor.nps.gov received by:
at: 07/29/2008 02:41:46 PM
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
| | | |
| amulnick
Posts:138
 | | 07/29/2008 2:59 PM |
| Why? Wouldn't you rather set via gpo?
On 7/29/08, Mark Parris (L) <lists@baseit.co.uk> wrote: > Does anyone have a script that will list all windows event log sizes against > a list of servers? > > It does not need to detail anything more than server name logfile and event > log size. > > Many thanks > > > > > > Regards, > > Mark Parris > > > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: http://www.activedir.org/ma/default.aspx >
-- Sent from Gmail for mobile | mobile.google.com List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
| | | |
| darren
Posts:168
 | | 07/29/2008 3:05 PM |
| If you're ok with using PowerShell, this one-liner will work:
gwmi win32_nteventlogfile -ComputerName <nameofcomputer>
you can use any number of ways to feed that a list of computer names
Darren
-----Original Message----- From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Mark Parris (L) Sent: Tuesday, July 29, 2008 11:42 AM To: ActiveDir Subject: [ActiveDir] OT: Script Request: Event Log Sizes
Does anyone have a script that will list all windows event log sizes against a list of servers?
It does not need to detail anything more than server name logfile and event log size.
Many thanks
Regards,
Mark Parris
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
| | | |
| hboogz
Posts:30
 | | 07/29/2008 3:15 PM |
| silly question: But i'm running a win2k3 domain with some w2k servers and a mix of wxp sp2 workstations and w2k sp4 clients, what do i need to install, if possible, to work with Powershell ?
On Tue, Jul 29, 2008 at 3:05 PM, Darren Mar-Elia <darren@sdmsoftware.com>wrote:
> If you're ok with using PowerShell, this one-liner will work: > > gwmi win32_nteventlogfile -ComputerName <nameofcomputer> > > you can use any number of ways to feed that a list of computer names > > Darren > > -----Original Message----- > From: ActiveDir-owner@mail.activedir.org > [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Mark Parris (L) > Sent: Tuesday, July 29, 2008 11:42 AM > To: ActiveDir > Subject: [ActiveDir] OT: Script Request: Event Log Sizes > > Does anyone have a script that will list all windows event log sizes > against > a list of servers? > > It does not need to detail anything more than server name logfile and event > log size. > > Many thanks > > > > > > Regards, > > Mark Parris > > > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: http://www.activedir.org/ma/default.aspx > > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: http://www.activedir.org/ma/default.aspx >
| | | |
| sbradcpa
Posts:320
 | | 07/29/2008 3:19 PM |
| Download PowerShell. :-)
Harry Singh wrote: > silly question: But i'm running a win2k3 domain with some w2k servers > and a mix of wxp sp2 workstations and w2k sp4 clients, what do i need > to install, if possible, to work with Powershell ? > > > > On Tue, Jul 29, 2008 at 3:05 PM, Darren Mar-Elia > <darren@sdmsoftware.com <mailto:darren@sdmsoftware.com>> wrote: > > If you're ok with using PowerShell, this one-liner will work: > > gwmi win32_nteventlogfile -ComputerName <nameofcomputer> > > you can use any number of ways to feed that a list of computer names > > Darren > > -----Original Message----- > From: ActiveDir-owner@mail.activedir.org > <mailto:ActiveDir-owner@mail.activedir.org> > [mailto:ActiveDir-owner@mail.activedir.org > <mailto:ActiveDir-owner@mail.activedir.org>] On Behalf Of Mark > Parris (L) > Sent: Tuesday, July 29, 2008 11:42 AM > To: ActiveDir > Subject: [ActiveDir] OT: Script Request: Event Log Sizes > > Does anyone have a script that will list all windows event log > sizes against > a list of servers? > > It does not need to detail anything more than server name logfile > and event > log size. > > Many thanks > > > > > > Regards, > > Mark Parris > > > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: http://www.activedir.org/ma/default.aspx > > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: http://www.activedir.org/ma/default.aspx > > List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
| | | |
| bsonposh
Posts:171
 | | 07/29/2008 3:25 PM |
| You can do most things remotely so I do not think you need to install Powershell on the remote machines.
On Tue, Jul 29, 2008 at 3:12 PM, Harry Singh <hboogz@gmail.com> wrote:
> silly question: But i'm running a win2k3 domain with some w2k servers and a > mix of wxp sp2 workstations and w2k sp4 clients, what do i need to install, > if possible, to work with Powershell ? > > > > > On Tue, Jul 29, 2008 at 3:05 PM, Darren Mar-Elia <darren@sdmsoftware.com>wrote: > >> If you're ok with using PowerShell, this one-liner will work: >> >> gwmi win32_nteventlogfile -ComputerName <nameofcomputer> >> >> you can use any number of ways to feed that a list of computer names >> >> Darren >> >> -----Original Message----- >> From: ActiveDir-owner@mail.activedir.org >> [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Mark Parris (L) >> Sent: Tuesday, July 29, 2008 11:42 AM >> To: ActiveDir >> Subject: [ActiveDir] OT: Script Request: Event Log Sizes >> >> Does anyone have a script that will list all windows event log sizes >> against >> a list of servers? >> >> It does not need to detail anything more than server name logfile and >> event >> log size. >> >> Many thanks >> >> >> >> >> >> Regards, >> >> Mark Parris >> >> >> List info : http://www.activedir.org/List.aspx >> List FAQ : http://www.activedir.org/ListFAQ.aspx >> List archive: http://www.activedir.org/ma/default.aspx >> >> List info : http://www.activedir.org/List.aspx >> List FAQ : http://www.activedir.org/ListFAQ.aspx >> List archive: http://www.activedir.org/ma/default.aspx >> > >
| | | |
| hboogz
Posts:30
 | | 07/29/2008 3:27 PM |
| Did i mention it was silly ?
It's also safe to assume that, for example, if i wanted to run the one-liner provided by Darren on a few of my servers, those servers would need to have Powershell installed as well ?
On Tue, Jul 29, 2008 at 3:17 PM, Susan Bradley, CPA <sbradcpa@pacbell.net>wrote:
> Download PowerShell. :-) > > Harry Singh wrote: > >> silly question: But i'm running a win2k3 domain with some w2k servers and >> a mix of wxp sp2 workstations and w2k sp4 clients, what do i need to >> install, if possible, to work with Powershell ? >> >> >> >> On Tue, Jul 29, 2008 at 3:05 PM, Darren Mar-Elia <darren@sdmsoftware.com<mailto: >> darren@sdmsoftware.com>> wrote: >> >> If you're ok with using PowerShell, this one-liner will work: >> >> gwmi win32_nteventlogfile -ComputerName <nameofcomputer> >> >> you can use any number of ways to feed that a list of computer names >> >> Darren >> >> -----Original Message----- >> From: ActiveDir-owner@mail.activedir.org >> <mailto:ActiveDir-owner@mail.activedir.org> >> [mailto:ActiveDir-owner@mail.activedir.org >> <mailto:ActiveDir-owner@mail.activedir.org>] On Behalf Of Mark >> Parris (L) >> Sent: Tuesday, July 29, 2008 11:42 AM >> To: ActiveDir >> Subject: [ActiveDir] OT: Script Request: Event Log Sizes >> >> Does anyone have a script that will list all windows event log >> sizes against >> a list of servers? >> >> It does not need to detail anything more than server name logfile >> and event >> log size. >> >> Many thanks >> >> >> >> >> >> Regards, >> >> Mark Parris >> >> >> List info : http://www.activedir.org/List.aspx >> List FAQ : http://www.activedir.org/ListFAQ.aspx >> List archive: http://www.activedir.org/ma/default.aspx >> >> List info : http://www.activedir.org/List.aspx >> List FAQ : http://www.activedir.org/ListFAQ.aspx >> List archive: http://www.activedir.org/ma/default.aspx >> >> >> List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: http://www.activedir.org/ma/default.aspx >
| | | |
| Ravi.Sabharanjak@barclaysglobal.com
Posts:70
 | | 07/29/2008 3:33 PM |
| Only the machine that you run the script from has to have powershell installed.
________________________________
From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Harry Singh Sent: Tuesday, July 29, 2008 12:26 PM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] OT: Script Request: Event Log Sizes
Did i mention it was silly ?
It's also safe to assume that, for example, if i wanted to run the one-liner provided by Darren on a few of my servers, those servers would need to have Powershell installed as well ?
On Tue, Jul 29, 2008 at 3:17 PM, Susan Bradley, CPA <sbradcpa@pacbell.net> wrote:
Download PowerShell. :-)
Harry Singh wrote:
silly question: But i'm running a win2k3 domain with some w2k servers and a mix of wxp sp2 workstations and w2k sp4 clients, what do i need to install, if possible, to work with Powershell ?
On Tue, Jul 29, 2008 at 3:05 PM, Darren Mar-Elia <darren@sdmsoftware.com <mailto:darren@sdmsoftware.com>> wrote:
If you're ok with using PowerShell, this one-liner will work:
gwmi win32_nteventlogfile -ComputerName <nameofcomputer>
you can use any number of ways to feed that a list of computer names
Darren
-----Original Message----- From: ActiveDir-owner@mail.activedir.org <mailto:ActiveDir-owner@mail.activedir.org> [mailto:ActiveDir-owner@mail.activedir.org <mailto:ActiveDir-owner@mail.activedir.org>] On Behalf Of Mark Parris (L) Sent: Tuesday, July 29, 2008 11:42 AM To: ActiveDir Subject: [ActiveDir] OT: Script Request: Event Log Sizes
Does anyone have a script that will list all windows event log sizes against a list of servers?
It does not need to detail anything more than server name logfile and event log size.
Many thanks
Regards,
Mark Parris
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
--
This message and any attachments are confidential, proprietary, and may be privileged. If this message was misdirected, Barclays Global Investors (BGI) does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BGI, unless the author is authorized by BGI to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BGI. Although BGI operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.
| | | |
| bsonposh
Posts:171
 | | 07/29/2008 3:39 PM |
| They would not... the would how ever need win32_nteventlogfile As Per http://msdn.microsoft.com/en-us/library/aa394225(VS.85).aspx
Client Requires Windows Vista, Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0 SP4 and later. Server Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0 SP4 and later.
On Tue, Jul 29, 2008 at 3:26 PM, Harry Singh <hboogz@gmail.com> wrote:
> Did i mention it was silly ? > > It's also safe to assume that, for example, if i wanted to run the > one-liner provided by Darren on a few of my servers, those servers would > need to have Powershell installed as well ? > > On Tue, Jul 29, 2008 at 3:17 PM, Susan Bradley, CPA <sbradcpa@pacbell.net>wrote: > >> Download PowerShell. :-) >> >> Harry Singh wrote: >> >>> silly question: But i'm running a win2k3 domain with some w2k servers >>> and a mix of wxp sp2 workstations and w2k sp4 clients, what do i need to >>> install, if possible, to work with Powershell ? >>> >>> >>> >>> On Tue, Jul 29, 2008 at 3:05 PM, Darren Mar-Elia < >>> darren@sdmsoftware.com <mailto:darren@sdmsoftware.com>> wrote: >>> >>> If you're ok with using PowerShell, this one-liner will work: >>> >>> gwmi win32_nteventlogfile -ComputerName <nameofcomputer> >>> >>> you can use any number of ways to feed that a list of computer names >>> >>> Darren >>> >>> -----Original Message----- >>> From: ActiveDir-owner@mail.activedir.org >>> <mailto:ActiveDir-owner@mail.activedir.org> >>> [mailto:ActiveDir-owner@mail.activedir.org >>> <mailto:ActiveDir-owner@mail.activedir.org>] On Behalf Of Mark >>> Parris (L) >>> Sent: Tuesday, July 29, 2008 11:42 AM >>> To: ActiveDir >>> Subject: [ActiveDir] OT: Script Request: Event Log Sizes >>> >>> Does anyone have a script that will list all windows event log >>> sizes against >>> a list of servers? >>> >>> It does not need to detail anything more than server name logfile >>> and event >>> log size. >>> >>> Many thanks >>> >>> >>> >>> >>> >>> Regards, >>> >>> Mark Parris >>> >>> >>> List info : http://www.activedir.org/List.aspx >>> List FAQ : http://www.activedir.org/ListFAQ.aspx >>> List archive: http://www.activedir.org/ma/default.aspx >>> >>> List info : http://www.activedir.org/List.aspx >>> List FAQ : http://www.activedir.org/ListFAQ.aspx >>> List archive: http://www.activedir.org/ma/default.aspx >>> >>> >>> List info : http://www.activedir.org/List.aspx >> List FAQ : http://www.activedir.org/ListFAQ.aspx >> List archive: http://www.activedir.org/ma/default.aspx >> > >
| | | |
| MThommes
Posts:76
 | | 07/29/2008 3:43 PM |
| Or just from the command prompt without Powershell:
wmic nteventlog get filename,filesize
Mike Thommes
________________________________
From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Harry Singh Sent: Tuesday, July 29, 2008 2:26 PM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] OT: Script Request: Event Log Sizes
Did i mention it was silly ?
It's also safe to assume that, for example, if i wanted to run the one-liner provided by Darren on a few of my servers, those servers would need to have Powershell installed as well ?
On Tue, Jul 29, 2008 at 3:17 PM, Susan Bradley, CPA <sbradcpa@pacbell.net> wrote:
Download PowerShell. :-)
Harry Singh wrote:
silly question: But i'm running a win2k3 domain with some w2k servers and a mix of wxp sp2 workstations and w2k sp4 clients, what do i need to install, if possible, to work with Powershell ?
On Tue, Jul 29, 2008 at 3:05 PM, Darren Mar-Elia <darren@sdmsoftware.com <mailto:darren@sdmsoftware.com>> wrote:
If you're ok with using PowerShell, this one-liner will work:
gwmi win32_nteventlogfile -ComputerName <nameofcomputer>
you can use any number of ways to feed that a list of computer names
Darren
-----Original Message----- From: ActiveDir-owner@mail.activedir.org <mailto:ActiveDir-owner@mail.activedir.org> [mailto:ActiveDir-owner@mail.activedir.org <mailto:ActiveDir-owner@mail.activedir.org>] On Behalf Of Mark Parris (L) Sent: Tuesday, July 29, 2008 11:42 AM To: ActiveDir Subject: [ActiveDir] OT: Script Request: Event Log Sizes
Does anyone have a script that will list all windows event log sizes against a list of servers?
It does not need to detail anything more than server name logfile and event log size.
Many thanks
Regards,
Mark Parris
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.activedir.org/ma/default.aspx
| | | |
|
|